mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Migrate to edition 2021
This commit is contained in:
parent
6aeeb4ef33
commit
1294bfce86
56 changed files with 48 additions and 71 deletions
|
@ -1,6 +1,5 @@
|
|||
//! See [`CargoWorkspace`].
|
||||
|
||||
use std::convert::{TryFrom, TryInto};
|
||||
use std::iter;
|
||||
use std::path::PathBuf;
|
||||
use std::{ops, process::Command};
|
||||
|
|
|
@ -28,7 +28,6 @@ mod build_scripts;
|
|||
mod tests;
|
||||
|
||||
use std::{
|
||||
convert::{TryFrom, TryInto},
|
||||
fs::{self, read_dir, ReadDir},
|
||||
io,
|
||||
process::Command,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//! See [`ManifestPath`].
|
||||
use std::{convert::TryFrom, ops, path::Path};
|
||||
use std::{ops, path::Path};
|
||||
|
||||
use paths::{AbsPath, AbsPathBuf};
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//! but we can't process `.rlib` and need source code instead. The source code
|
||||
//! is typically installed with `rustup component add rust-src` command.
|
||||
|
||||
use std::{convert::TryFrom, env, fs, iter, ops, path::PathBuf, process::Command};
|
||||
use std::{env, fs, iter, ops, path::PathBuf, process::Command};
|
||||
|
||||
use anyhow::{format_err, Result};
|
||||
use la_arena::{Arena, Idx};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
//! metadata` or `rust-project.json`) into representation stored in the salsa
|
||||
//! database -- `CrateGraph`.
|
||||
|
||||
use std::{collections::VecDeque, convert::TryFrom, fmt, fs, process::Command};
|
||||
use std::{collections::VecDeque, fmt, fs, process::Command};
|
||||
|
||||
use anyhow::{format_err, Context, Result};
|
||||
use base_db::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue