[INFO] cloning repository https://github.com/Aaron1011/cargo-stub [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Aaron1011/cargo-stub" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAaron1011%2Fcargo-stub", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAaron1011%2Fcargo-stub'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 766d70ba46f2c1895fe2d3cbcf1882c11630cd60 [INFO] testing Aaron1011/cargo-stub against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAaron1011%2Fcargo-stub" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Aaron1011/cargo-stub on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Aaron1011/cargo-stub [INFO] finished tweaking git repo https://github.com/Aaron1011/cargo-stub [INFO] tweaked toml for git repo https://github.com/Aaron1011/cargo-stub written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/Aaron1011/cargo-stub already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1eaf1fda7d40c3de786875a1f0d488ee04b7e0cf3768feb9c85500d2437fe10 [INFO] running `Command { std: "docker" "start" "-a" "b1eaf1fda7d40c3de786875a1f0d488ee04b7e0cf3768feb9c85500d2437fe10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1eaf1fda7d40c3de786875a1f0d488ee04b7e0cf3768feb9c85500d2437fe10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1eaf1fda7d40c3de786875a1f0d488ee04b7e0cf3768feb9c85500d2437fe10", kill_on_drop: false }` [INFO] [stdout] b1eaf1fda7d40c3de786875a1f0d488ee04b7e0cf3768feb9c85500d2437fe10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d35f32c5908ad5c71ad841cffa53d2832f85c090d683dd8a08a9c9c778ae2672 [INFO] running `Command { std: "docker" "start" "-a" "d35f32c5908ad5c71ad841cffa53d2832f85c090d683dd8a08a9c9c778ae2672", kill_on_drop: false }` [INFO] [stderr] Compiling cargo-stub v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0462]: found staticlib `rustc` instead of rlib or dylib [INFO] [stdout] --> src/main.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate rustc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: please recompile that crate using --crate-type lib [INFO] [stdout] = note: the following crate versions were found: [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-beta_rt.lsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-beta_rt.msan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-beta_rt.asan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/beta-2022-04-10-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-beta_rt.tsan.a [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_lint` [INFO] [stdout] --> src/main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern crate rustc_lint; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] | [INFO] [stdout] = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_resolve` [INFO] [stdout] --> src/main.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | extern crate rustc_resolve; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] | [INFO] [stdout] = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_metadata` [INFO] [stdout] --> src/main.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | extern crate rustc_metadata; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] | [INFO] [stdout] = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_driver` [INFO] [stdout] --> src/main.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | extern crate rustc_driver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] | [INFO] [stdout] = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_errors` [INFO] [stdout] --> src/main.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | extern crate rustc_errors; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] | [INFO] [stdout] = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_data_structures` [INFO] [stdout] --> src/main.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | extern crate rustc_data_structures; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] | [INFO] [stdout] = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_trans_utils` [INFO] [stdout] --> src/main.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | extern crate rustc_trans_utils; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] | [INFO] [stdout] = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `syntax` [INFO] [stdout] --> src/main.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | extern crate syntax; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `syntax_pos` [INFO] [stdout] --> src/main.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | extern crate syntax_pos; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config` [INFO] [stdout] --> src/run_compile.rs:98:24 [INFO] [stdout] | [INFO] [stdout] 98 | let (sopts, cfg) = config::build_session_options_and_crate_config(&matches); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Compilation` [INFO] [stdout] --> src/run_compile.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | Compilation::Stop => return None, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Compilation` [INFO] [stdout] ... [INFO] [stdout] 102 | / do_or_return!(callbacks.early_callback(&matches, [INFO] [stdout] 103 | | &sopts, [INFO] [stdout] 104 | | &cfg, [INFO] [stdout] 105 | | &descriptions, [INFO] [stdout] 106 | | sopts.error_format)); [INFO] [stdout] | |_______________________________________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `do_or_return` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Compilation` [INFO] [stdout] --> src/run_compile.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | Compilation::Continue => {} [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Compilation` [INFO] [stdout] ... [INFO] [stdout] 102 | / do_or_return!(callbacks.early_callback(&matches, [INFO] [stdout] 103 | | &sopts, [INFO] [stdout] 104 | | &cfg, [INFO] [stdout] 105 | | &descriptions, [INFO] [stdout] 106 | | sopts.error_format)); [INFO] [stdout] | |_______________________________________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `do_or_return` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lrc` [INFO] [stdout] --> src/run_compile.rs:121:19 [INFO] [stdout] | [INFO] [stdout] 121 | let codemap = Lrc::new(CodeMap::with_file_loader(loader, sopts.file_path_mapping())); [INFO] [stdout] | ^^^ use of undeclared type `Lrc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CodeMap` [INFO] [stdout] --> src/run_compile.rs:121:28 [INFO] [stdout] | [INFO] [stdout] 121 | let codemap = Lrc::new(CodeMap::with_file_loader(loader, sopts.file_path_mapping())); [INFO] [stdout] | ^^^^^^^ use of undeclared type `CodeMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `session` [INFO] [stdout] --> src/run_compile.rs:122:20 [INFO] [stdout] | [INFO] [stdout] 122 | let mut sess = session::build_session_with_codemap( [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Handler` [INFO] [stdout] --> src/run_compile.rs:126:39 [INFO] [stdout] | [INFO] [stdout] 126 | sess.parse_sess.span_diagnostic = Handler::with_emitter(false, false, emitter); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Handler` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config` [INFO] [stdout] --> src/run_compile.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 139 | let mut cfg = config::build_configuration(&sess, cfg); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `target_features` [INFO] [stdout] --> src/run_compile.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 140 | target_features::add_configuration(&mut cfg, &sess, &*trans); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared crate or module `target_features` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CStore` [INFO] [stdout] --> src/run_compile.rs:145:18 [INFO] [stdout] | [INFO] [stdout] 145 | let cstore = CStore::new(trans.metadata_loader()); [INFO] [stdout] | ^^^^^^ use of undeclared type `CStore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Compilation` [INFO] [stdout] --> src/run_compile.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | Compilation::Stop => return None, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Compilation` [INFO] [stdout] ... [INFO] [stdout] 147 | / do_or_return!(callbacks.late_callback(&*trans, [INFO] [stdout] 148 | | &matches, [INFO] [stdout] 149 | | &sess, [INFO] [stdout] 150 | | &cstore, [INFO] [stdout] 151 | | &input, [INFO] [stdout] 152 | | &odir, [INFO] [stdout] 153 | | &ofile)); [INFO] [stdout] | |__________________________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `do_or_return` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Compilation` [INFO] [stdout] --> src/run_compile.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | Compilation::Continue => {} [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Compilation` [INFO] [stdout] ... [INFO] [stdout] 147 | / do_or_return!(callbacks.late_callback(&*trans, [INFO] [stdout] 148 | | &matches, [INFO] [stdout] 149 | | &sess, [INFO] [stdout] 150 | | &cstore, [INFO] [stdout] 151 | | &input, [INFO] [stdout] 152 | | &odir, [INFO] [stdout] 153 | | &ofile)); [INFO] [stdout] | |__________________________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `do_or_return` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `driver` [INFO] [stdout] --> src/run_compile.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | let krate = driver::phase_1_parse_input(control, &sess, &input).unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `driver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CrateLoader` [INFO] [stdout] --> src/run_compile.rs:186:28 [INFO] [stdout] | [INFO] [stdout] 186 | let mut crate_loader = CrateLoader::new(&sess, &cstore, &name); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CrateLoader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `driver` [INFO] [stdout] --> src/run_compile.rs:191:18 [INFO] [stdout] | [INFO] [stdout] 191 | let result = driver::phase_2_configure_and_expand_inner(&sess, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `driver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `driver` [INFO] [stdout] --> src/run_compile.rs:202:9 [INFO] [stdout] | [INFO] [stdout] 202 | let driver::InnerExpansionResult { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `driver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ty` [INFO] [stdout] --> src/run_compile.rs:213:23 [INFO] [stdout] | [INFO] [stdout] 213 | let resolutions = ty::Resolutions { [INFO] [stdout] | ^^ use of undeclared crate or module `ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ty` [INFO] [stdout] --> src/run_compile.rs:220:20 [INFO] [stdout] | [INFO] [stdout] 220 | let analysis = ty::CrateAnalysis { [INFO] [stdout] | ^^ use of undeclared crate or module `ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Lrc` [INFO] [stdout] --> src/run_compile.rs:221:24 [INFO] [stdout] | [INFO] [stdout] 221 | access_levels: Lrc::new(AccessLevels::default()), [INFO] [stdout] | ^^^ use of undeclared type `Lrc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AccessLevels` [INFO] [stdout] --> src/run_compile.rs:221:33 [INFO] [stdout] | [INFO] [stdout] 221 | access_levels: Lrc::new(AccessLevels::default()), [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `AccessLevels` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AllArenas` [INFO] [stdout] --> src/run_compile.rs:226:18 [INFO] [stdout] | [INFO] [stdout] 226 | let arenas = AllArenas::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `AllArenas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `hir_map` [INFO] [stdout] --> src/run_compile.rs:227:19 [INFO] [stdout] | [INFO] [stdout] 227 | let hir_map = hir_map::map_crate(&sess, &*cstore, &mut hir_forest, &defs); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `hir_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `driver` [INFO] [stdout] --> src/run_compile.rs:228:28 [INFO] [stdout] | [INFO] [stdout] 228 | let output_filenames = driver::build_output_filenames(&input, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `driver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `driver` [INFO] [stdout] --> src/run_compile.rs:236:5 [INFO] [stdout] | [INFO] [stdout] 236 | driver::phase_3_run_analysis_passes(&*trans, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `driver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Input` [INFO] [stdout] --> src/run_compile.rs:277:19 [INFO] [stdout] | [INFO] [stdout] 277 | Some((Input::Str { name: FileName::Anon, input: src }, [INFO] [stdout] | ^^^^^ use of undeclared type `Input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileName` [INFO] [stdout] --> src/run_compile.rs:277:38 [INFO] [stdout] | [INFO] [stdout] 277 | Some((Input::Str { name: FileName::Anon, input: src }, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `FileName` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Input` [INFO] [stdout] --> src/run_compile.rs:280:19 [INFO] [stdout] | [INFO] [stdout] 280 | Some((Input::File(PathBuf::from(ifile)), [INFO] [stdout] | ^^^^^ use of undeclared type `Input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config` [INFO] [stdout] --> src/get_errors.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | sopts: &config::Options, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/get_errors.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | cfg: &ast::CrateConfig, [INFO] [stdout] | ^^^ use of undeclared crate or module `ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config` [INFO] [stdout] --> src/get_errors.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | sopts: &config::Options, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/get_errors.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 79 | cfg: &ast::CrateConfig, [INFO] [stdout] | ^^^ use of undeclared crate or module `ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `driver` [INFO] [stdout] --> src/get_errors.rs:101:83 [INFO] [stdout] | [INFO] [stdout] 101 | fn build_controller(&mut self, sess: &Session, matches: &getopts::Matches) -> driver::CompileController<'a> { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `driver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileName` [INFO] [stdout] --> src/get_errors.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | FileName::Real(f) => f, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `FileName` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FnKind` [INFO] [stdout] --> src/ast_extract.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | FnKind::ItemFn(name, _, _, _, _, _) | FnKind::Method(name, _, _, _) => { [INFO] [stdout] | ^^^^^^ use of undeclared type `FnKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FnKind` [INFO] [stdout] --> src/ast_extract.rs:52:43 [INFO] [stdout] | [INFO] [stdout] 52 | FnKind::ItemFn(name, _, _, _, _, _) | FnKind::Method(name, _, _, _) => { [INFO] [stdout] | ^^^^^^ use of undeclared type `FnKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileName` [INFO] [stdout] --> src/ast_extract.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | FileName::Real(f) => f, [INFO] [stdout] | ^^^^^^^^ use of undeclared type `FileName` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Session` in this scope [INFO] [stdout] --> src/run_compile.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | pub session: Session [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompilerCalls` in this scope [INFO] [stdout] --> src/run_compile.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 71 | callbacks: &mut CompilerCalls<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `FileLoader` in this scope [INFO] [stdout] --> src/run_compile.rs:72:49 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn run_compiler<'a>(args: &[String], [INFO] [stdout] | - help: you might be missing a type parameter: `, FileLoader` [INFO] [stdout] 71 | callbacks: &mut CompilerCalls<'a>, [INFO] [stdout] 72 | file_loader: Option>, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Emitter` in this scope [INFO] [stdout] --> src/run_compile.rs:73:38 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn run_compiler<'a>(args: &[String], [INFO] [stdout] | - help: you might be missing a type parameter: `, Emitter` [INFO] [stdout] ... [INFO] [stdout] 73 | emitter: Box) -> Option [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompilerCalls` in this scope [INFO] [stdout] --> src/run_compile.rs:81:42 [INFO] [stdout] | [INFO] [stdout] 81 | callbacks: &mut CompilerCalls<'a>, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `FileLoader` in this scope [INFO] [stdout] --> src/run_compile.rs:82:50 [INFO] [stdout] | [INFO] [stdout] 80 | fn run_compiler_impl<'a>(args: &[String], [INFO] [stdout] | - help: you might be missing a type parameter: `, FileLoader` [INFO] [stdout] 81 | callbacks: &mut CompilerCalls<'a>, [INFO] [stdout] 82 | file_loader: Option>, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Emitter` in this scope [INFO] [stdout] --> src/run_compile.rs:83:39 [INFO] [stdout] | [INFO] [stdout] 80 | fn run_compiler_impl<'a>(args: &[String], [INFO] [stdout] | - help: you might be missing a type parameter: `, Emitter` [INFO] [stdout] ... [INFO] [stdout] 83 | emitter: Box) -> Option [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `handle_options` in this scope [INFO] [stdout] --> src/run_compile.rs:93:25 [INFO] [stdout] | [INFO] [stdout] 93 | let matches = match handle_options(args) { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `diagnostics_registry` in this scope [INFO] [stdout] --> src/run_compile.rs:100:24 [INFO] [stdout] | [INFO] [stdout] 100 | let descriptions = diagnostics_registry(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RealFileLoader` in this scope [INFO] [stdout] --> src/run_compile.rs:120:49 [INFO] [stdout] | [INFO] [stdout] 120 | let loader = file_loader.unwrap_or(Box::new(RealFileLoader)); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_trans` in this scope [INFO] [stdout] --> src/run_compile.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | let trans = get_trans(&sess); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TransCrate` in this scope [INFO] [stdout] --> src/run_compile.rs:170:27 [INFO] [stdout] | [INFO] [stdout] 170 | fn extract_fns(trans: Box, [INFO] [stdout] | - ^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Session` in this scope [INFO] [stdout] --> src/run_compile.rs:171:29 [INFO] [stdout] | [INFO] [stdout] 171 | sess: &Session, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CStore` in this scope [INFO] [stdout] --> src/run_compile.rs:172:31 [INFO] [stdout] | [INFO] [stdout] 172 | cstore: &CStore, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Input` in this scope [INFO] [stdout] --> src/run_compile.rs:174:30 [INFO] [stdout] | [INFO] [stdout] 174 | input: &Input, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CompileController` in this scope [INFO] [stdout] --> src/run_compile.rs:178:32 [INFO] [stdout] | [INFO] [stdout] 178 | control: &CompileController) -> FnMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `abort_on_err` in this scope [INFO] [stdout] --> src/run_compile.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | } = abort_on_err(result, &sess); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Input` in this scope [INFO] [stdout] --> src/run_compile.rs:266:51 [INFO] [stdout] | [INFO] [stdout] 266 | fn make_input(free_matches: &[String]) -> Option<(Input, Option, Option)> { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RustcDefaultCalls` in this scope [INFO] [stdout] --> src/get_errors.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | default: RustcDefaultCalls, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RustcDefaultCalls` in this scope [INFO] [stdout] --> src/get_errors.rs:59:39 [INFO] [stdout] | [INFO] [stdout] 59 | CargoStubCallbacks { default: RustcDefaultCalls } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `CompilerCalls` in this scope [INFO] [stdout] --> src/get_errors.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | impl<'a> CompilerCalls<'a> for CargoStubCallbacks { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ErrorOutputType` in this scope [INFO] [stdout] --> src/get_errors.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | output: ErrorOutputType, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Compilation` in this scope [INFO] [stdout] --> src/get_errors.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 71 | ) -> Compilation { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Input` in this scope [INFO] [stdout] --> src/get_errors.rs:83:18 [INFO] [stdout] | [INFO] [stdout] 63 | impl<'a> CompilerCalls<'a> for CargoStubCallbacks { [INFO] [stdout] | - help: you might be missing a type parameter: `, Input` [INFO] [stdout] ... [INFO] [stdout] 83 | ) -> Option<(Input, Option)> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TransCrate` in this scope [INFO] [stdout] --> src/get_errors.rs:89:23 [INFO] [stdout] | [INFO] [stdout] 89 | trans_crate: &TransCrate, [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Session` in this scope [INFO] [stdout] --> src/get_errors.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 91 | sess: &Session, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Input` in this scope [INFO] [stdout] --> src/get_errors.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | input: &Input, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Compilation` in this scope [INFO] [stdout] --> src/get_errors.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 96 | ) -> Compilation { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Session` in this scope [INFO] [stdout] --> src/get_errors.rs:101:43 [INFO] [stdout] | [INFO] [stdout] 101 | fn build_controller(&mut self, sess: &Session, matches: &getopts::Matches) -> driver::CompileController<'a> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Diagnostic` in this scope [INFO] [stdout] --> src/get_errors.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 109 | struct ErrorCollector { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 110 | errors: Rc>> [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Emitter` in this scope [INFO] [stdout] --> src/get_errors.rs:125:6 [INFO] [stdout] | [INFO] [stdout] 125 | impl Emitter for ErrorCollector { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DiagnosticBuilder` in this scope [INFO] [stdout] --> src/get_errors.rs:126:29 [INFO] [stdout] | [INFO] [stdout] 126 | fn emit(&mut self, db: &DiagnosticBuilder) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Diagnostic` in this scope [INFO] [stdout] --> src/get_errors.rs:132:26 [INFO] [stdout] | [INFO] [stdout] 132 | fn get_containing_fn(d: &Diagnostic, fns: &FnMap, code_map: &CodeMap) -> Option { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CodeMap` in this scope [INFO] [stdout] --> src/get_errors.rs:132:62 [INFO] [stdout] | [INFO] [stdout] 132 | fn get_containing_fn(d: &Diagnostic, fns: &FnMap, code_map: &CodeMap) -> Option { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CodeMap` in this scope [INFO] [stdout] --> src/ast_extract.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | pub code_map: &'a CodeMap [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Visitor` in this scope [INFO] [stdout] --> src/ast_extract.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | impl<'a, 'ast> Visitor<'ast> for FunctionExtractor<'a> { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FnKind` in this scope [INFO] [stdout] --> src/ast_extract.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | fn visit_fn(&mut self, fk: FnKind<'ast>, fd: &'ast FnDecl, sp: Span, _: NodeId) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `FnDecl` in this scope [INFO] [stdout] --> src/ast_extract.rs:47:53 [INFO] [stdout] | [INFO] [stdout] 47 | fn visit_fn(&mut self, fk: FnKind<'ast>, fd: &'ast FnDecl, sp: Span, _: NodeId) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Span` in this scope [INFO] [stdout] --> src/ast_extract.rs:47:65 [INFO] [stdout] | [INFO] [stdout] 47 | fn visit_fn(&mut self, fk: FnKind<'ast>, fd: &'ast FnDecl, sp: Span, _: NodeId) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NodeId` in this scope [INFO] [stdout] --> src/ast_extract.rs:47:74 [INFO] [stdout] | [INFO] [stdout] 47 | fn visit_fn(&mut self, fk: FnKind<'ast>, fd: &'ast FnDecl, sp: Span, _: NodeId) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CodeMap` in this scope [INFO] [stdout] --> src/ast_extract.rs:67:37 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_function_info(code_map: &CodeMap, krate: &Crate) -> FnMap { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Crate` in this scope [INFO] [stdout] --> src/ast_extract.rs:67:54 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn get_function_info(code_map: &CodeMap, krate: &Crate) -> FnMap { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `walk_crate` in this scope [INFO] [stdout] --> src/ast_extract.rs:69:2 [INFO] [stdout] | [INFO] [stdout] 69 | walk_crate(&mut extractor, krate); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RustcDefaultCalls` in this scope [INFO] [stdout] --> src/stub_fn.rs:16:70 [INFO] [stdout] | [INFO] [stdout] 16 | rustc_driver::run(move || rustc_driver::run_compiler(&args, &mut RustcDefaultCalls, Some(Box::new(loader)), None)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RealFileLoader` in this scope [INFO] [stdout] --> src/stub_fn.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | real: RealFileLoader, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RealFileLoader` in this scope [INFO] [stdout] --> src/stub_fn.rs:26:32 [INFO] [stdout] | [INFO] [stdout] 26 | StubbingLoader { real: RealFileLoader, fns } [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `FileLoader` in this scope [INFO] [stdout] --> src/stub_fn.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | impl FileLoader for StubbingLoader { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the beta release channel [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(rustc_private)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 94 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0463, E0554. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cargo-stub` due to 95 previous errors [INFO] running `Command { std: "docker" "inspect" "d35f32c5908ad5c71ad841cffa53d2832f85c090d683dd8a08a9c9c778ae2672", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d35f32c5908ad5c71ad841cffa53d2832f85c090d683dd8a08a9c9c778ae2672", kill_on_drop: false }` [INFO] [stdout] d35f32c5908ad5c71ad841cffa53d2832f85c090d683dd8a08a9c9c778ae2672