[INFO] fetching crate unsafe_ls 0.1.0... [INFO] checking unsafe_ls-0.1.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate unsafe_ls 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate unsafe_ls 0.1.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d03cbd9c49bc152e4fee470a72e2d926c97565a6b11a3f301e147365ab784668 [INFO] running `Command { std: "docker" "start" "-a" "d03cbd9c49bc152e4fee470a72e2d926c97565a6b11a3f301e147365ab784668", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d03cbd9c49bc152e4fee470a72e2d926c97565a6b11a3f301e147365ab784668", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d03cbd9c49bc152e4fee470a72e2d926c97565a6b11a3f301e147365ab784668", kill_on_drop: false }` [INFO] [stdout] d03cbd9c49bc152e4fee470a72e2d926c97565a6b11a3f301e147365ab784668 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 480a20a8749a8b88c0954978bf00ce133811ec5184d3baf6abf5f6d94fae2d1d [INFO] running `Command { std: "docker" "start" "-a" "480a20a8749a8b88c0954978bf00ce133811ec5184d3baf6abf5f6d94fae2d1d", 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] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [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 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 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[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/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.dfsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.asan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.lsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.msan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.tsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.safestack.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/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.dfsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.asan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.lsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.msan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.tsan.a [INFO] [stdout] crate `rustc`: /opt/rustwide/rustup-home/toolchains/f609b7e0586f81fefb3523e3e17adf779ac416be/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-nightly_rt.safestack.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[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_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_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_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[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] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | p!("asm", asm); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | p!("asm", asm); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | p!("deref", raw_deref); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | p!("deref", raw_deref); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | p!("ffi", ffi); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | p!("ffi", ffi); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | p!("static mut", static_mut); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | p!("static mut", static_mut); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | p!("transmute", transmute); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | p!("transmute", transmute); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | p!("transmute & to &mut", transmute_imm_to_mut); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | p!("transmute & to &mut", transmute_imm_to_mut); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | p!("cast *const to *mut", cast_raw_ptr_const_to_mut); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | p!("cast *const to *mut", cast_raw_ptr_const_to_mut); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | p!("unsafe call", unsafe_call); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | p!("unsafe call", unsafe_call); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [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-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `macro_rules` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/unsafe_ls.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(macro_rules)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [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; 17 warnings emitted [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; 17 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | p!("asm", asm); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | p!("asm", asm); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | p!("deref", raw_deref); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | p!("deref", raw_deref); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | p!("ffi", ffi); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | p!("ffi", ffi); [INFO] [stdout] | -------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | p!("static mut", static_mut); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | p!("static mut", static_mut); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | p!("transmute", transmute); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | p!("transmute", transmute); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | p!("transmute & to &mut", transmute_imm_to_mut); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | p!("transmute & to &mut", transmute_imm_to_mut); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | p!("cast *const to *mut", cast_raw_ptr_const_to_mut); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | p!("cast *const to *mut", cast_raw_ptr_const_to_mut); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:67:21 [INFO] [stdout] | [INFO] [stdout] 67 | try!(write!(fmt, concat!("{} ", $fmt), self.$name.len())) [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | p!("unsafe call", unsafe_call); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/visitor.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | try!(write!(fmt, ", ")); [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | p!("unsafe call", unsafe_call); [INFO] [stdout] | ------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `p` (in Nightly builds, run with -Z macro-backtrace for more info) [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-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `macro_rules` has been stable since 1.0.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/unsafe_ls.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(macro_rules)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [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; 17 warnings emitted [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" test) due to 30 previous errors; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "480a20a8749a8b88c0954978bf00ce133811ec5184d3baf6abf5f6d94fae2d1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "480a20a8749a8b88c0954978bf00ce133811ec5184d3baf6abf5f6d94fae2d1d", kill_on_drop: false }` [INFO] [stdout] 480a20a8749a8b88c0954978bf00ce133811ec5184d3baf6abf5f6d94fae2d1d