Skip to content

Commit 748d354

Browse files
committed
Auto merge of #56600 - ljedrz:fix_edition, r=Mark-Simulacrum
bootstrap: fix edition A byproduct of work on #56595; done with `cargo fix --edition`.
2 parents 93c2f05 + a5a3da5 commit 748d354

21 files changed

+99
-97
lines changed

src/bootstrap/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
authors = ["The Rust Project Developers"]
33
name = "bootstrap"
44
version = "0.0.0"
5+
edition = "2018"
56

67
[lib]
78
name = "bootstrap"

src/bootstrap/builder.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ use std::path::{Path, PathBuf};
2121
use std::process::Command;
2222
use std::time::{Duration, Instant};
2323

24-
use cache::{Cache, Interned, INTERNER};
25-
use check;
26-
use compile;
27-
use dist;
28-
use doc;
29-
use flags::Subcommand;
30-
use install;
31-
use native;
32-
use test;
33-
use tool;
34-
use util::{add_lib_path, exe, libdir};
35-
use {Build, DocTests, Mode, GitRepo};
36-
37-
pub use Compiler;
24+
use crate::cache::{Cache, Interned, INTERNER};
25+
use crate::check;
26+
use crate::compile;
27+
use crate::dist;
28+
use crate::doc;
29+
use crate::flags::Subcommand;
30+
use crate::install;
31+
use crate::native;
32+
use crate::test;
33+
use crate::tool;
34+
use crate::util::{add_lib_path, exe, libdir};
35+
use crate::{Build, DocTests, Mode, GitRepo};
36+
37+
pub use crate::Compiler;
3838

3939
use petgraph::graph::NodeIndex;
4040
use petgraph::Graph;
@@ -1252,7 +1252,7 @@ impl<'a> Builder<'a> {
12521252
#[cfg(test)]
12531253
mod __test {
12541254
use super::*;
1255-
use config::Config;
1255+
use crate::config::Config;
12561256
use std::thread;
12571257

12581258
fn configure(host: &[&str], target: &[&str]) -> Config {

src/bootstrap/cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use std::path::{Path, PathBuf};
2323
use std::sync::Mutex;
2424
use std::cmp::{PartialOrd, Ord, Ordering};
2525

26-
use builder::Step;
26+
use crate::builder::Step;
2727

2828
pub struct Interned<T>(usize, PhantomData<*const T>);
2929

src/bootstrap/cc_detect.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ use std::process::Command;
3939
use build_helper::output;
4040
use cc;
4141

42-
use {Build, GitRepo};
43-
use config::Target;
44-
use cache::Interned;
42+
use crate::{Build, GitRepo};
43+
use crate::config::Target;
44+
use crate::cache::Interned;
4545

4646
// The `cc` crate doesn't provide a way to obtain a path to the detected archiver,
4747
// so use some simplified logic here. First we respect the environment variable `AR`, then

src/bootstrap/channel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ use std::process::Command;
2020

2121
use build_helper::output;
2222

23-
use Build;
24-
use config::Config;
23+
use crate::Build;
24+
use crate::config::Config;
2525

2626
// The version number
2727
pub const CFG_RELEASE_NUM: &str = "1.33.0";

src/bootstrap/check.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010

1111
//! Implementation of compiling the compiler and standard library, in "check" mode.
1212
13-
use compile::{run_cargo, std_cargo, test_cargo, rustc_cargo, rustc_cargo_env, add_to_sysroot};
14-
use builder::{RunConfig, Builder, ShouldRun, Step};
15-
use tool::{prepare_tool_cargo, SourceType};
16-
use {Compiler, Mode};
17-
use cache::{INTERNER, Interned};
13+
use crate::compile::{run_cargo, std_cargo, test_cargo, rustc_cargo, rustc_cargo_env,
14+
add_to_sysroot};
15+
use crate::builder::{RunConfig, Builder, ShouldRun, Step};
16+
use crate::tool::{prepare_tool_cargo, SourceType};
17+
use crate::{Compiler, Mode};
18+
use crate::cache::{INTERNER, Interned};
1819
use std::path::PathBuf;
1920

2021
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]

src/bootstrap/clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use std::fs;
1919
use std::io::{self, ErrorKind};
2020
use std::path::Path;
2121

22-
use Build;
22+
use crate::Build;
2323

2424
pub fn clean(build: &Build, all: bool) {
2525
rm_rf("tmp".as_ref());

src/bootstrap/compile.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ use build_helper::{output, mtime, up_to_date};
2929
use filetime::FileTime;
3030
use serde_json;
3131

32-
use util::{exe, libdir, is_dylib};
33-
use {Compiler, Mode, GitRepo};
34-
use native;
32+
use crate::util::{exe, libdir, is_dylib};
33+
use crate::{Compiler, Mode, GitRepo};
34+
use crate::native;
3535

36-
use cache::{INTERNER, Interned};
37-
use builder::{Step, RunConfig, ShouldRun, Builder};
36+
use crate::cache::{INTERNER, Interned};
37+
use crate::builder::{Step, RunConfig, ShouldRun, Builder};
3838

3939
#[derive(Debug, PartialOrd, Ord, Copy, Clone, PartialEq, Eq, Hash)]
4040
pub struct Std {

src/bootstrap/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ use std::cmp;
2222

2323
use num_cpus;
2424
use toml;
25-
use cache::{INTERNER, Interned};
26-
use flags::Flags;
27-
pub use flags::Subcommand;
25+
use crate::cache::{INTERNER, Interned};
26+
use crate::flags::Flags;
27+
pub use crate::flags::Subcommand;
2828

2929
/// Global configuration for the entire build and/or bootstrap.
3030
///

src/bootstrap/dist.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ use std::process::{Command, Stdio};
2626

2727
use build_helper::output;
2828

29-
use {Compiler, Mode, LLVM_TOOLS};
30-
use channel;
31-
use util::{libdir, is_dylib, exe};
32-
use builder::{Builder, RunConfig, ShouldRun, Step};
33-
use compile;
34-
use tool::{self, Tool};
35-
use cache::{INTERNER, Interned};
29+
use crate::{Compiler, Mode, LLVM_TOOLS};
30+
use crate::channel;
31+
use crate::util::{libdir, is_dylib, exe};
32+
use crate::builder::{Builder, RunConfig, ShouldRun, Step};
33+
use crate::compile;
34+
use crate::tool::{self, Tool};
35+
use crate::cache::{INTERNER, Interned};
3636
use time;
3737

3838
pub fn pkgname(builder: &Builder, component: &str) -> String {

0 commit comments

Comments
 (0)