[INFO] fetching crate unsafe_ls 0.1.0... [INFO] checking unsafe_ls-0.1.0 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] extracting crate unsafe_ls 0.1.0 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate unsafe_ls 0.1.0 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate unsafe_ls 0.1.0 [INFO] finished tweaking crates.io crate unsafe_ls 0.1.0 [INFO] tweaked toml for crates.io crate unsafe_ls 0.1.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: path `src/unsafe_ls.rs` was erroneously implicitly accepted for binary `unsafe_ls`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3db12406aac97aa1e7b8fe15d136ad3b2da2723060a4c11f8fd7f17a8518b727 [INFO] running `Command { std: "docker" "start" "-a" "3db12406aac97aa1e7b8fe15d136ad3b2da2723060a4c11f8fd7f17a8518b727", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3db12406aac97aa1e7b8fe15d136ad3b2da2723060a4c11f8fd7f17a8518b727", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3db12406aac97aa1e7b8fe15d136ad3b2da2723060a4c11f8fd7f17a8518b727", kill_on_drop: false }` [INFO] [stdout] 3db12406aac97aa1e7b8fe15d136ad3b2da2723060a4c11f8fd7f17a8518b727 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5519303e9b8caaff8a3e85e6a0fb3dd1d5b1f192a33551117c558a05fc84cc5 [INFO] running `Command { std: "docker" "start" "-a" "f5519303e9b8caaff8a3e85e6a0fb3dd1d5b1f192a33551117c558a05fc84cc5", kill_on_drop: false }` [INFO] [stderr] warning: path `src/unsafe_ls.rs` was erroneously implicitly accepted for binary `unsafe_ls`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] [stderr] Checking unsafe_ls v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected identifier, found keyword `mod` [INFO] [stdout] --> src/unsafe_ls.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | use rustc::session::{mod, config}; [INFO] [stdout] | ^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `mod` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 14 | use rustc::session::{r#mod, config}; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found keyword `mod` [INFO] [stdout] --> src/unsafe_ls.rs:14:22 [INFO] [stdout] | [INFO] [stdout] 14 | use rustc::session::{mod, config}; [INFO] [stdout] | ^^^ expected identifier, found keyword [INFO] [stdout] | [INFO] [stdout] help: escape `mod` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 14 | use rustc::session::{r#mod, config}; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/unsafe_ls.rs:151:47 [INFO] [stdout] | [INFO] [stdout] 151 | fn get_ast(path: Path, libs: Vec, f: |ty::ctxt| -> T) -> T { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> src/unsafe_ls.rs:151:47 [INFO] [stdout] | [INFO] [stdout] 151 | fn get_ast(path: Path, libs: Vec, f: |ty::ctxt| -> T) -> T { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `arena` [INFO] [stdout] --> src/unsafe_ls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate arena; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `arena` [INFO] [stdout] --> src/unsafe_ls.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | extern crate arena; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `syntax` [INFO] [stdout] --> src/unsafe_ls.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | extern crate syntax; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `syntax` [INFO] [stdout] --> src/unsafe_ls.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | extern crate syntax; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0462]: found staticlib `rustc` instead of rlib or dylib [INFO] [stdout] --> src/unsafe_ls.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | extern crate rustc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the following crate versions were found: [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.tsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.asan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.msan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.lsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.safestack.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.dfsan.a [INFO] [stdout] = help: please recompile that crate using --crate-type lib [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_back` [INFO] [stdout] --> src/unsafe_ls.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | extern crate rustc_back; [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[E0462]: found staticlib `rustc` instead of rlib or dylib [INFO] [stdout] --> src/unsafe_ls.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | extern crate rustc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the following crate versions were found: [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.tsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.asan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.msan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.lsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.safestack.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/506512391b1a75ae450d36c9420978402a91abcc/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.dfsan.a [INFO] [stdout] = help: please recompile that crate using --crate-type lib [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_driver` [INFO] [stdout] --> src/unsafe_ls.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | 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_back` [INFO] [stdout] --> src/unsafe_ls.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | extern crate rustc_back; [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` [INFO] [stdout] --> src/unsafe_ls.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | extern crate rustc_trans; [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/unsafe_ls.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | 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_typeck` [INFO] [stdout] --> src/unsafe_ls.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | extern crate rustc_typeck; [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` [INFO] [stdout] --> src/unsafe_ls.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | extern crate rustc_trans; [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_typeck` [INFO] [stdout] --> src/unsafe_ls.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | extern crate rustc_typeck; [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[E0405]: cannot find trait `Show` in module `fmt` [INFO] [stdout] --> src/visitor.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | impl fmt::Show for NodeInfo { [INFO] [stdout] | ^^^^ not found in `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `std::os` [INFO] [stdout] --> src/unsafe_ls.rs:28:33 [INFO] [stdout] | [INFO] [stdout] 28 | let args: Vec<_> = std::os::args(); [INFO] [stdout] | ^^^^ not found in `std::os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 13 + use std::env::args; [INFO] [stdout] | [INFO] [stdout] help: if you import `args`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 28 - let args: Vec<_> = std::os::args(); [INFO] [stdout] 28 + let args: Vec<_> = args(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optflag` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | let opts = [getopts::optflag("h", "help", "show this help message"), [INFO] [stdout] | ^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optflag` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | getopts::optflag("n", "nonffi", [INFO] [stdout] | ^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optflag` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | getopts::optflag("f", "ffi", "print `unsafe`s that do FFI calls"), [INFO] [stdout] | ^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optmulti` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | getopts::optmulti("L", "library-path", [INFO] [stdout] | ^^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `getopts` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | let matches = getopts::getopts(args.tail(), &opts).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `usage` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 39 | getopts::usage(format!("{} - find all unsafe blocks and print the \ [INFO] [stdout] | ^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let mut libs: Vec = matches.opt_strs("L").into_iter().map(|s| Path::new(s)).collect(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/unsafe_ls.rs:47:73 [INFO] [stdout] | [INFO] [stdout] 47 | let mut libs: Vec = matches.opt_strs("L").into_iter().map(|s| Path::new(s)).collect(); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/unsafe_ls.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | libs.push(Path::new(DEFAULT_LIB_DIR)); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/unsafe_ls.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | let name = Path::new(name.as_slice()); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | libs: Vec [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:73:33 [INFO] [stdout] | [INFO] [stdout] 73 | fn run_library(&self, path: Path) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:151:21 [INFO] [stdout] | [INFO] [stdout] 151 | fn get_ast(path: Path, libs: Vec, f: |ty::ctxt| -> T) -> T { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:151:37 [INFO] [stdout] | [INFO] [stdout] 151 | fn get_ast(path: Path, libs: Vec, f: |ty::ctxt| -> T) -> T { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `self_exe_path` in module `os` [INFO] [stdout] --> src/unsafe_ls.rs:159:33 [INFO] [stdout] | [INFO] [stdout] 159 | maybe_sysroot: Some(os::self_exe_path().unwrap().dir_path()), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Show` in module `fmt` [INFO] [stdout] --> src/visitor.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | impl fmt::Show for NodeInfo { [INFO] [stdout] | ^^^^ not found in `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `std::os` [INFO] [stdout] --> src/unsafe_ls.rs:28:33 [INFO] [stdout] | [INFO] [stdout] 28 | let args: Vec<_> = std::os::args(); [INFO] [stdout] | ^^^^ not found in `std::os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 13 + use std::env::args; [INFO] [stdout] | [INFO] [stdout] help: if you import `args`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 28 - let args: Vec<_> = std::os::args(); [INFO] [stdout] 28 + let args: Vec<_> = args(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optflag` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:29:26 [INFO] [stdout] | [INFO] [stdout] 29 | let opts = [getopts::optflag("h", "help", "show this help message"), [INFO] [stdout] | ^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optflag` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | getopts::optflag("n", "nonffi", [INFO] [stdout] | ^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optflag` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | getopts::optflag("f", "ffi", "print `unsafe`s that do FFI calls"), [INFO] [stdout] | ^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `optmulti` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 33 | getopts::optmulti("L", "library-path", [INFO] [stdout] | ^^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `getopts` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | let matches = getopts::getopts(args.tail(), &opts).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `usage` in crate `getopts` [INFO] [stdout] --> src/unsafe_ls.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 39 | getopts::usage(format!("{} - find all unsafe blocks and print the \ [INFO] [stdout] | ^^^^^ not found in `getopts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let mut libs: Vec = matches.opt_strs("L").into_iter().map(|s| Path::new(s)).collect(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/unsafe_ls.rs:47:73 [INFO] [stdout] | [INFO] [stdout] 47 | let mut libs: Vec = matches.opt_strs("L").into_iter().map(|s| Path::new(s)).collect(); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/unsafe_ls.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | libs.push(Path::new(DEFAULT_LIB_DIR)); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/unsafe_ls.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | let name = Path::new(name.as_slice()); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:69:15 [INFO] [stdout] | [INFO] [stdout] 69 | libs: Vec [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:73:33 [INFO] [stdout] | [INFO] [stdout] 73 | fn run_library(&self, path: Path) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/unsafe_ls.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern crate getopts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:151:21 [INFO] [stdout] | [INFO] [stdout] 151 | fn get_ast(path: Path, libs: Vec, f: |ty::ctxt| -> T) -> T { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:151:37 [INFO] [stdout] | [INFO] [stdout] 151 | fn get_ast(path: Path, libs: Vec, f: |ty::ctxt| -> T) -> T { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 13 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `self_exe_path` in module `os` [INFO] [stdout] --> src/unsafe_ls.rs:159:33 [INFO] [stdout] | [INFO] [stdout] 159 | maybe_sysroot: Some(os::self_exe_path().unwrap().dir_path()), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in `os` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/unsafe_ls.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern crate getopts; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-05-21; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `session` [INFO] [stdout] --> src/unsafe_ls.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | let sess = session::build_session_(sessopts, None, span_diagnostic_handler); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared crate or module `session` [INFO] [stdout] | help: a struct with a similar name exists (notice the capitalization): `Session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `f` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | f(ty_cx) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 29 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0462, E0463, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `session` [INFO] [stdout] --> src/unsafe_ls.rs:170:16 [INFO] [stdout] | [INFO] [stdout] 170 | let sess = session::build_session_(sessopts, None, span_diagnostic_handler); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of undeclared crate or module `session` [INFO] [stdout] | help: a struct with a similar name exists (notice the capitalization): `Session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `f` in this scope [INFO] [stdout] --> src/unsafe_ls.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 184 | f(ty_cx) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 29 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0462, E0463, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `unsafe_ls` (bin "unsafe_ls") due to 30 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `unsafe_ls` (bin "unsafe_ls" test) due to 30 previous errors [INFO] running `Command { std: "docker" "inspect" "f5519303e9b8caaff8a3e85e6a0fb3dd1d5b1f192a33551117c558a05fc84cc5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5519303e9b8caaff8a3e85e6a0fb3dd1d5b1f192a33551117c558a05fc84cc5", kill_on_drop: false }` [INFO] [stdout] f5519303e9b8caaff8a3e85e6a0fb3dd1d5b1f192a33551117c558a05fc84cc5