[INFO] fetching crate unsafe_ls 0.1.0... [INFO] testing unsafe_ls-0.1.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate unsafe_ls 0.1.0 into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate unsafe_ls 0.1.0 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 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-10/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: path `/workspace/builds/worker-10/source/src/unsafe_ls.rs` was erroneously implicitly accepted for binary `unsafe_ls`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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] a682199336c0b6c2c9181b542beea1d71e716c13d397b5570869742b5eb04db5 [INFO] running `Command { std: "docker" "start" "-a" "a682199336c0b6c2c9181b542beea1d71e716c13d397b5570869742b5eb04db5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a682199336c0b6c2c9181b542beea1d71e716c13d397b5570869742b5eb04db5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a682199336c0b6c2c9181b542beea1d71e716c13d397b5570869742b5eb04db5", kill_on_drop: false }` [INFO] [stdout] a682199336c0b6c2c9181b542beea1d71e716c13d397b5570869742b5eb04db5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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] a8aaab50e9b4ccd5a59305b055093cdad847c3e726e2b1e7c6e66a34186f2d4a [INFO] running `Command { std: "docker" "start" "-a" "a8aaab50e9b4ccd5a59305b055093cdad847c3e726e2b1e7c6e66a34186f2d4a", kill_on_drop: false }` [INFO] [stderr] warning: path `/opt/rustwide/workdir/src/unsafe_ls.rs` was erroneously implicitly accepted for binary `unsafe_ls`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] [stderr] Compiling 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[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[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] = 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_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_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[E0433]: failed to resolve: use of undeclared crate or module `ty` [INFO] [stdout] --> src/visitor.rs:15:32 [INFO] [stdout] | [INFO] [stdout] 15 | fn type_is_unsafe_function(ty: ty::Ty) -> bool { [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/visitor.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | ty::ty_bare_fn(_, ref f) => f.unsafety == ast::Unsafety::Unsafe, [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 `ast` [INFO] [stdout] --> src/visitor.rs:17:51 [INFO] [stdout] | [INFO] [stdout] 17 | ty::ty_bare_fn(_, ref f) => f.unsafety == ast::Unsafety::Unsafe, [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 `ty` [INFO] [stdout] --> src/visitor.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | ty::ty_closure(ref f) => f.unsafety == ast::Unsafety::Unsafe, [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 `ast` [INFO] [stdout] --> src/visitor.rs:18:48 [INFO] [stdout] | [INFO] [stdout] 18 | ty::ty_closure(ref f) => f.unsafety == ast::Unsafety::Unsafe, [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 `ty` [INFO] [stdout] --> src/visitor.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 85 | tcx: &'tcx ty::ctxt<'a>, [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 `ast` [INFO] [stdout] --> src/visitor.rs:88:24 [INFO] [stdout] | [INFO] [stdout] 88 | node_info: Option<(ast::NodeId, NodeInfo)>, [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 `ast` [INFO] [stdout] --> src/visitor.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | pub unsafes: BTreeMap, [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 `ty` [INFO] [stdout] --> src/visitor.rs:93:27 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn new(tcx: &'tcx ty::ctxt<'a>) -> UnsafeVisitor<'tcx, 'a> { [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 `ast` [INFO] [stdout] --> src/visitor.rs:101:43 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn check_crate(&mut self, krate: &ast::Crate) { [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 `visit` [INFO] [stdout] --> src/visitor.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | visit::walk_crate(self, krate) [INFO] [stdout] | ^^^^^ use of undeclared crate or module `visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/visitor.rs:109:53 [INFO] [stdout] | [INFO] [stdout] 109 | fn check_ptr_cast(&mut self, span: Span, from: &ast::Expr, to: &ast::Expr) -> bool { [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 `ast` [INFO] [stdout] --> src/visitor.rs:109:69 [INFO] [stdout] | [INFO] [stdout] 109 | fn check_ptr_cast(&mut self, span: Span, from: &ast::Expr, to: &ast::Expr) -> bool { [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 `ty` [INFO] [stdout] --> src/visitor.rs:110:23 [INFO] [stdout] | [INFO] [stdout] 110 | let from_ty = ty::expr_ty(self.tcx, from); [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/visitor.rs:111:21 [INFO] [stdout] | [INFO] [stdout] 111 | let to_ty = ty::expr_ty(self.tcx, to); [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/visitor.rs:114:15 [INFO] [stdout] | [INFO] [stdout] 114 | (&ty::ty_rptr(_, ty::mt { mutbl: ast::MutImmutable, .. }), [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/visitor.rs:114:30 [INFO] [stdout] | [INFO] [stdout] 114 | (&ty::ty_rptr(_, ty::mt { mutbl: ast::MutImmutable, .. }), [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 `ast` [INFO] [stdout] --> src/visitor.rs:114:46 [INFO] [stdout] | [INFO] [stdout] 114 | (&ty::ty_rptr(_, ty::mt { mutbl: ast::MutImmutable, .. }), [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 `ty` [INFO] [stdout] --> src/visitor.rs:115:15 [INFO] [stdout] | [INFO] [stdout] 115 | &ty::ty_rptr(_, ty::mt { mutbl: ast::MutMutable, .. })) => { [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/visitor.rs:115:30 [INFO] [stdout] | [INFO] [stdout] 115 | &ty::ty_rptr(_, ty::mt { mutbl: ast::MutMutable, .. })) => { [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 `ast` [INFO] [stdout] --> src/visitor.rs:115:46 [INFO] [stdout] | [INFO] [stdout] 115 | &ty::ty_rptr(_, ty::mt { mutbl: ast::MutMutable, .. })) => { [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 `ty` [INFO] [stdout] --> src/visitor.rs:120:15 [INFO] [stdout] | [INFO] [stdout] 120 | (&ty::ty_ptr(ty::mt { mutbl: ast::MutImmutable, .. }), [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/visitor.rs:120:26 [INFO] [stdout] | [INFO] [stdout] 120 | (&ty::ty_ptr(ty::mt { mutbl: ast::MutImmutable, .. }), [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 `ast` [INFO] [stdout] --> src/visitor.rs:120:42 [INFO] [stdout] | [INFO] [stdout] 120 | (&ty::ty_ptr(ty::mt { mutbl: ast::MutImmutable, .. }), [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 `ty` [INFO] [stdout] --> src/visitor.rs:121:15 [INFO] [stdout] | [INFO] [stdout] 121 | &ty::ty_ptr(ty::mt { mutbl: ast::MutMutable, .. })) => { [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/visitor.rs:121:26 [INFO] [stdout] | [INFO] [stdout] 121 | &ty::ty_ptr(ty::mt { mutbl: ast::MutMutable, .. })) => { [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 `ast` [INFO] [stdout] --> src/visitor.rs:121:42 [INFO] [stdout] | [INFO] [stdout] 121 | &ty::ty_ptr(ty::mt { mutbl: ast::MutMutable, .. })) => { [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 `visit` [INFO] [stdout] --> src/visitor.rs:134:37 [INFO] [stdout] | [INFO] [stdout] 134 | fn visit_fn(&mut self, fn_kind: visit::FnKind<'a>, fn_decl: &'a ast::FnDecl, [INFO] [stdout] | ^^^^^ use of undeclared crate or module `visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/visitor.rs:134:69 [INFO] [stdout] | [INFO] [stdout] 134 | fn visit_fn(&mut self, fn_kind: visit::FnKind<'a>, fn_decl: &'a ast::FnDecl, [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 `ast` [INFO] [stdout] --> src/visitor.rs:135:25 [INFO] [stdout] | [INFO] [stdout] 135 | block: &ast::Block, span: Span, node_id: ast::NodeId) { [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 `ast` [INFO] [stdout] --> src/visitor.rs:135:58 [INFO] [stdout] | [INFO] [stdout] 135 | block: &ast::Block, span: Span, node_id: ast::NodeId) { [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 `visit` [INFO] [stdout] --> src/visitor.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | visit::FkItemFn(_, _, fn_style, _) => [INFO] [stdout] | ^^^^^ use of undeclared crate or module `visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/visitor.rs:138:36 [INFO] [stdout] | [INFO] [stdout] 138 | (true, fn_style == ast::Unsafety::Unsafe), [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 `visit` [INFO] [stdout] --> src/visitor.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | visit::FkMethod(_, _, method) => [INFO] [stdout] | ^^^^^ use of undeclared crate or module `visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/visitor.rs:140:48 [INFO] [stdout] | [INFO] [stdout] 140 | (true, method.pe_unsafety() == ast::Unsafety::Unsafe), [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 `visit` [INFO] [stdout] --> src/visitor.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | visit::walk_fn(self, fn_kind, fn_decl, block, span); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/visitor.rs:160:42 [INFO] [stdout] | [INFO] [stdout] 160 | fn visit_block(&mut self, block: &'a ast::Block) { [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 `ast` [INFO] [stdout] --> src/visitor.rs:162:13 [INFO] [stdout] | [INFO] [stdout] 162 | ast::DefaultBlock => (None, false), [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 `ast` [INFO] [stdout] --> src/visitor.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | ast::UnsafeBlock(source) => { [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 `ast` [INFO] [stdout] --> src/visitor.rs:164:42 [INFO] [stdout] | [INFO] [stdout] 164 | let compiler = source == ast::CompilerGenerated; [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 `visit` [INFO] [stdout] --> src/visitor.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | visit::walk_block(self, block); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/visitor.rs:185:40 [INFO] [stdout] | [INFO] [stdout] 185 | fn visit_expr(&mut self, expr: &'a ast::Expr) { [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 `ast` [INFO] [stdout] --> src/visitor.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | ast::ExprMethodCall(_, _, _) => { [INFO] [stdout] | ^^^ use of undeclared crate or module `ast` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MethodCall` [INFO] [stdout] --> src/visitor.rs:189:39 [INFO] [stdout] | [INFO] [stdout] 189 | let method_call = MethodCall::expr(expr.id); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MethodCall` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/visitor.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | ast::ExprCall(ref base, ref args) => { [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 `ast` [INFO] [stdout] --> src/visitor.rs:197:27 [INFO] [stdout] | [INFO] [stdout] 197 | (&ast::ExprPath(ref p), [ref arg]) [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 `token` [INFO] [stdout] --> src/visitor.rs:200:29 [INFO] [stdout] | [INFO] [stdout] 200 | ... token::intern("transmute") => { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `def` [INFO] [stdout] --> src/visitor.rs:209:39 [INFO] [stdout] | [INFO] [stdout] 209 | ... Some(&def::DefFn(did, _)) => { [INFO] [stdout] | ^^^ use of undeclared crate or module `def` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast_util` [INFO] [stdout] --> src/visitor.rs:212:37 [INFO] [stdout] | [INFO] [stdout] 212 | ... ast_util::is_local(did) && [INFO] [stdout] | ^^^^^^^^ use of undeclared crate or module `ast_util` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast_map` [INFO] [stdout] --> src/visitor.rs:214:45 [INFO] [stdout] | [INFO] [stdout] 214 | ... ast_map::NodeForeignItem(_) => true, [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ast_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ty` [INFO] [stdout] --> src/visitor.rs:224:49 [INFO] [stdout] | [INFO] [stdout] 224 | ... let base_type = ty::node_id_to_type(self.tcx, base.id); [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 `ast` [INFO] [stdout] --> src/visitor.rs:233:17 [INFO] [stdout] | [INFO] [stdout] 233 | ast::ExprUnary(ast::UnDeref, ref base) => { [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 `ast` [INFO] [stdout] --> src/visitor.rs:233:32 [INFO] [stdout] | [INFO] [stdout] 233 | ast::ExprUnary(ast::UnDeref, ref base) => { [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 `ty` [INFO] [stdout] --> src/visitor.rs:234:37 [INFO] [stdout] | [INFO] [stdout] 234 | let base_type = ty::node_id_to_type(self.tcx, base.id); [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/visitor.rs:236:25 [INFO] [stdout] | [INFO] [stdout] 236 | ty::ty_ptr(_) => { [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 `ast` [INFO] [stdout] --> src/visitor.rs:242:17 [INFO] [stdout] | [INFO] [stdout] 242 | ast::ExprInlineAsm(..) => { [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 `ast` [INFO] [stdout] --> src/visitor.rs:245:17 [INFO] [stdout] | [INFO] [stdout] 245 | ast::ExprPath(..) => { [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 `ty` [INFO] [stdout] --> src/visitor.rs:246:27 [INFO] [stdout] | [INFO] [stdout] 246 | match ty::resolve_expr(self.tcx, expr) { [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 `def` [INFO] [stdout] --> src/visitor.rs:247:25 [INFO] [stdout] | [INFO] [stdout] 247 | def::DefStatic(_, true) => { [INFO] [stdout] | ^^^ use of undeclared crate or module `def` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ast` [INFO] [stdout] --> src/visitor.rs:253:17 [INFO] [stdout] | [INFO] [stdout] 253 | ast::ExprCast(ref from, _) => { [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 `visit` [INFO] [stdout] --> src/visitor.rs:259:9 [INFO] [stdout] | [INFO] [stdout] 259 | visit::walk_expr(self, expr); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `visit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config` [INFO] [stdout] --> src/unsafe_ls.rs:156:17 [INFO] [stdout] | [INFO] [stdout] 156 | let input = config::Input::File(path); [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 `config` [INFO] [stdout] --> src/unsafe_ls.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 158 | let sessopts = 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 `config` [INFO] [stdout] --> src/unsafe_ls.rs:161:12 [INFO] [stdout] | [INFO] [stdout] 161 | .. config::basic_options().clone() [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 `diagnostic` [INFO] [stdout] --> src/unsafe_ls.rs:166:9 [INFO] [stdout] | [INFO] [stdout] 166 | diagnostic::default_handler(diagnostic::Auto, None); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `diagnostic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `diagnostic` [INFO] [stdout] --> src/unsafe_ls.rs:166:37 [INFO] [stdout] | [INFO] [stdout] 166 | diagnostic::default_handler(diagnostic::Auto, None); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `diagnostic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `diagnostic` [INFO] [stdout] --> src/unsafe_ls.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | diagnostic::mk_span_handler(diagnostic_handler, codemap); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `diagnostic` [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] | ^^^^^^^ use of undeclared crate or module `session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `config` [INFO] [stdout] --> src/unsafe_ls.rs:172:15 [INFO] [stdout] | [INFO] [stdout] 172 | let cfg = config::build_configuration(&sess); [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 `driver` [INFO] [stdout] --> src/unsafe_ls.rs:174:17 [INFO] [stdout] | [INFO] [stdout] 174 | let krate = driver::phase_1_parse_input(&sess, cfg, &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 `link` [INFO] [stdout] --> src/unsafe_ls.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | let id = link::find_crate_name(Some(&sess), krate.attrs.as_slice(), [INFO] [stdout] | ^^^^ use of undeclared crate or module `link` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `driver` [INFO] [stdout] --> src/unsafe_ls.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | let krate = driver::phase_2_configure_and_expand( [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 `ast_map` [INFO] [stdout] --> src/unsafe_ls.rs:179:22 [INFO] [stdout] | [INFO] [stdout] 179 | let mut forest = ast_map::Forest::new(krate); [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `ast_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `driver` [INFO] [stdout] --> src/unsafe_ls.rs:180:19 [INFO] [stdout] | [INFO] [stdout] 180 | let ast_map = driver::assign_node_ids_and_map(&sess, &mut forest); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `driver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TypedArena` [INFO] [stdout] --> src/unsafe_ls.rs:181:22 [INFO] [stdout] | [INFO] [stdout] 181 | let type_arena = TypedArena::new(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `TypedArena` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `driver` [INFO] [stdout] --> src/unsafe_ls.rs:182:15 [INFO] [stdout] | [INFO] [stdout] 182 | let res = driver::phase_3_run_analysis_passes(sess, ast_map, &type_arena, id); [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/unsafe_ls.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | let ty::CrateAnalysis { ty_cx, .. } = res; [INFO] [stdout] | ^^ use of undeclared crate or module `ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Span` in this scope [INFO] [stdout] --> src/visitor.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 24 | pub span: Span, [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/visitor.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct NodeInfo { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 27 | pub ffi: Vec, [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/visitor.rs:28:24 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct NodeInfo { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 28 | pub raw_deref: Vec, [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/visitor.rs:29:25 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct NodeInfo { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 29 | pub static_mut: Vec, [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/visitor.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct NodeInfo { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 30 | pub unsafe_call: Vec, [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/visitor.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct NodeInfo { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 31 | pub transmute: Vec, [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/visitor.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct NodeInfo { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 32 | pub transmute_imm_to_mut: Vec, [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/visitor.rs:36:40 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct NodeInfo { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 36 | pub cast_raw_ptr_const_to_mut: Vec, [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/visitor.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct NodeInfo { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 37 | pub asm: Vec, [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/visitor.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | fn new(span: Span, is_fn: bool, compiler: bool) -> NodeInfo { [INFO] [stdout] | ^^^^ not found in this scope [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[E0412]: cannot find type `Span` in this scope [INFO] [stdout] --> src/visitor.rs:109:40 [INFO] [stdout] | [INFO] [stdout] 109 | fn check_ptr_cast(&mut self, span: Span, from: &ast::Expr, to: &ast::Expr) -> bool { [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/visitor.rs:133:18 [INFO] [stdout] | [INFO] [stdout] 133 | impl<'tcx,'a,'b> Visitor<'a> for UnsafeVisitor<'tcx,'b> { [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/visitor.rs:135:43 [INFO] [stdout] | [INFO] [stdout] 135 | block: &ast::Block, span: Span, node_id: ast::NodeId) { [INFO] [stdout] | ^^^^ not found in this scope [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] [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] | ^^^^ 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:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | libs.push(Path::new(DEFAULT_LIB_DIR)); [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:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | let name = Path::new(name.as_slice()); [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: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[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[E0554]: `#![feature]` may not be used on the beta release channel [INFO] [stdout] --> src/unsafe_ls.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(macro_rules)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute [INFO] [stdout] | [INFO] [stdout] = help: the feature `macro_rules` has been stable since 1.0.0 and no longer requires an attribute to enable [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] [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: aborting due to 119 previous errors; 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433, E0463, E0554, 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` due to 120 previous errors; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a8aaab50e9b4ccd5a59305b055093cdad847c3e726e2b1e7c6e66a34186f2d4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8aaab50e9b4ccd5a59305b055093cdad847c3e726e2b1e7c6e66a34186f2d4a", kill_on_drop: false }` [INFO] [stdout] a8aaab50e9b4ccd5a59305b055093cdad847c3e726e2b1e7c6e66a34186f2d4a