[INFO] fetching crate gazebo_lint 0.1.1... [INFO] testing gazebo_lint-0.1.1 against 1.60.0 for beta-1.61-1 [INFO] extracting crate gazebo_lint 0.1.1 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate gazebo_lint 0.1.1 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate gazebo_lint 0.1.1 [INFO] finished tweaking crates.io crate gazebo_lint 0.1.1 [INFO] tweaked toml for crates.io crate gazebo_lint 0.1.1 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 58b10a7188b9daf4636bd86c266c63516161948fc4ad0f14c348c5a1709c4cb1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "58b10a7188b9daf4636bd86c266c63516161948fc4ad0f14c348c5a1709c4cb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58b10a7188b9daf4636bd86c266c63516161948fc4ad0f14c348c5a1709c4cb1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58b10a7188b9daf4636bd86c266c63516161948fc4ad0f14c348c5a1709c4cb1", kill_on_drop: false }` [INFO] [stdout] 58b10a7188b9daf4636bd86c266c63516161948fc4ad0f14c348c5a1709c4cb1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3ae6aaa6cadfad7dd4ef882d37751dde0740075a23e4c444884e62a03f160bb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f3ae6aaa6cadfad7dd4ef882d37751dde0740075a23e4c444884e62a03f160bb", kill_on_drop: false }` [INFO] [stderr] Compiling gazebo_lint v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | #![feature(plugin_registrar)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: a __rustc_plugin_registrar symbol must now be defined instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_driver` [INFO] [stdout] --> src/lib.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 34 | 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_hir` [INFO] [stdout] --> src/lib.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | extern crate rustc_hir; [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_infer` [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | extern crate rustc_infer; [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_lint` [INFO] [stdout] --> src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | extern crate rustc_lint; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] | [INFO] [stdout] = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `rustc_middle` [INFO] [stdout] --> src/lib.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | extern crate rustc_middle; [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_span` [INFO] [stdout] --> src/lib.rs:39:1 [INFO] [stdout] | [INFO] [stdout] 39 | extern crate rustc_span; [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_trait_selection` [INFO] [stdout] --> src/lib.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | extern crate rustc_trait_selection; [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/lib.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | 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_session` [INFO] [stdout] --> src/lib.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 43 | extern crate rustc_session; [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: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 66 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:78:1 [INFO] [stdout] | [INFO] [stdout] 78 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:84:1 [INFO] [stdout] | [INFO] [stdout] 84 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:90:1 [INFO] [stdout] | [INFO] [stdout] 90 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 96 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:102:1 [INFO] [stdout] | [INFO] [stdout] 102 | declare_lint!(GAZEBO_USE_DUPE, Warn, "Use `dupe()`"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | declare_lint!(GAZEBO_USE_DUPED, Warn, "Use `duped()`"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:106:1 [INFO] [stdout] | [INFO] [stdout] 106 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:118:1 [INFO] [stdout] | [INFO] [stdout] 118 | declare_lint!(USE_BOX, Warn, "Use `box` syntax instead of `Box::new`"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:120:1 [INFO] [stdout] | [INFO] [stdout] 120 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:126:1 [INFO] [stdout] | [INFO] [stdout] 126 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint` in this scope [INFO] [stdout] --> src/lib.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | declare_lint!( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `declare_lint_pass` in this scope [INFO] [stdout] --> src/lib.rs:139:1 [INFO] [stdout] | [INFO] [stdout] 139 | declare_lint_pass!( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `plugin_registrar` in this scope [INFO] [stdout] --> src/lib.rs:531:3 [INFO] [stdout] | [INFO] [stdout] 531 | #[plugin_registrar] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `plugin_registrar` is in scope, but it is a function, not an attribute [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind` [INFO] [stdout] --> src/clippy.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | if let ExprKind::MethodCall(path, span, args, _) = ¤t.kind { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ExprKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `def` [INFO] [stdout] --> src/clippy.rs:75:63 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn path_to_res(cx: &LateContext, path: &[&str]) -> Option { [INFO] [stdout] | ^^^ use of undeclared crate or module `def` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Res` [INFO] [stdout] --> src/clippy.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | return Some(Res::Def(DefKind::Mod, krate)); [INFO] [stdout] | ^^^ use of undeclared type `Res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefKind` [INFO] [stdout] --> src/clippy.rs:87:34 [INFO] [stdout] | [INFO] [stdout] 87 | return Some(Res::Def(DefKind::Mod, krate)); [INFO] [stdout] | ^^^^^^^ use of undeclared type `DefKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `traits` [INFO] [stdout] --> src/clippy.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | traits::ObligationCause::dummy(), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `traits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind` [INFO] [stdout] --> src/clippy.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | if let ItemKind::Impl(Impl { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ItemKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Res` [INFO] [stdout] --> src/clippy.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | Res::Def(DefKind::Trait | DefKind::TraitAlias, trait_id) => Some(trait_id), [INFO] [stdout] | ^^^ use of undeclared type `Res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefKind` [INFO] [stdout] --> src/clippy.rs:170:18 [INFO] [stdout] | [INFO] [stdout] 170 | Res::Def(DefKind::Trait | DefKind::TraitAlias, trait_id) => Some(trait_id), [INFO] [stdout] | ^^^^^^^ use of undeclared type `DefKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefKind` [INFO] [stdout] --> src/clippy.rs:170:35 [INFO] [stdout] | [INFO] [stdout] 170 | Res::Def(DefKind::Trait | DefKind::TraitAlias, trait_id) => Some(trait_id), [INFO] [stdout] | ^^^^^^^ use of undeclared type `DefKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Res` [INFO] [stdout] --> src/clippy.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | Res::Err => unreachable!("this trait resolution is impossible: {:?}", &path), [INFO] [stdout] | ^^^ use of undeclared type `Res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Symbol` [INFO] [stdout] --> src/clippy.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | .map(|p| Symbol::intern(p)) [INFO] [stdout] | ^^^^^^ use of undeclared type `Symbol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind` [INFO] [stdout] --> src/clippy.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | if let TyKind::Adt(ty, subst) = ty.kind() { [INFO] [stdout] | ^^^^^^ use of undeclared type `TyKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind` [INFO] [stdout] --> src/lib.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 266 | if let ExprKind::MethodCall(method_call, method_span, args, _) = expr.kind { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ExprKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind` [INFO] [stdout] --> src/lib.rs:278:28 [INFO] [stdout] | [INFO] [stdout] 278 | if let TyKind::Ref(_, inner_ty, _) = cloned_type.kind() { [INFO] [stdout] | ^^^^^^ use of undeclared type `TyKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind` [INFO] [stdout] --> src/lib.rs:292:12 [INFO] [stdout] | [INFO] [stdout] 292 | if let ExprKind::MethodCall(method_call, method_span, args, _) = expr.kind { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ExprKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind` [INFO] [stdout] --> src/lib.rs:306:28 [INFO] [stdout] | [INFO] [stdout] 306 | if let TyKind::Ref(_, inner_ty, _) = cloned_type.kind() { [INFO] [stdout] | ^^^^^^ use of undeclared type `TyKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind` [INFO] [stdout] --> src/lib.rs:320:12 [INFO] [stdout] | [INFO] [stdout] 320 | if let ExprKind::MethodCall(method_call, method_span, args, _) = expr.kind { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ExprKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind` [INFO] [stdout] --> src/lib.rs:341:32 [INFO] [stdout] | [INFO] [stdout] 341 | if let TyKind::Ref(_, inner_ty, _) = duped_type.kind() { [INFO] [stdout] | ^^^^^^ use of undeclared type `TyKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind` [INFO] [stdout] --> src/lib.rs:355:12 [INFO] [stdout] | [INFO] [stdout] 355 | if let ExprKind::Call(call, args) = expr.kind { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ExprKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind` [INFO] [stdout] --> src/lib.rs:357:20 [INFO] [stdout] | [INFO] [stdout] 357 | if let ExprKind::Path(qpath) = &call.kind { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ExprKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TyKind` [INFO] [stdout] --> src/lib.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | TyKind::Adt(self_adt, sub) => { [INFO] [stdout] | ^^^^^^ use of undeclared type `TyKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind` [INFO] [stdout] --> src/lib.rs:439:12 [INFO] [stdout] | [INFO] [stdout] 439 | if let ExprKind::Call(call, _) = expr.kind { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ExprKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExprKind` [INFO] [stdout] --> src/lib.rs:440:16 [INFO] [stdout] | [INFO] [stdout] 440 | if let ExprKind::Path(QPath::Resolved(_, path)) = &call.kind { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ExprKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QPath` [INFO] [stdout] --> src/lib.rs:440:31 [INFO] [stdout] | [INFO] [stdout] 440 | if let ExprKind::Path(QPath::Resolved(_, path)) = &call.kind { [INFO] [stdout] | ^^^^^ use of undeclared type `QPath` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ItemKind` [INFO] [stdout] --> src/lib.rs:458:12 [INFO] [stdout] | [INFO] [stdout] 458 | if let ItemKind::Use(path, kind) = &item.kind { [INFO] [stdout] | ^^^^^^^^ use of undeclared type `ItemKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UseKind` [INFO] [stdout] --> src/lib.rs:460:13 [INFO] [stdout] | [INFO] [stdout] 460 | UseKind::Glob => { [INFO] [stdout] | ^^^^^^^ use of undeclared type `UseKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `UseKind` [INFO] [stdout] --> src/lib.rs:467:13 [INFO] [stdout] | [INFO] [stdout] 467 | UseKind::Single => { [INFO] [stdout] | ^^^^^^^ use of undeclared type `UseKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `QPath` [INFO] [stdout] --> src/lib.rs:486:36 [INFO] [stdout] | [INFO] [stdout] 486 | if let rustc_hir::TyKind::Path(QPath::Resolved( [INFO] [stdout] | ^^^^^ use of undeclared type `QPath` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Res` [INFO] [stdout] --> src/lib.rs:489:18 [INFO] [stdout] | [INFO] [stdout] 489 | res: Res::Def(DefKind::TyAlias, result), [INFO] [stdout] | ^^^ use of undeclared type `Res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DefKind` [INFO] [stdout] --> src/lib.rs:489:27 [INFO] [stdout] | [INFO] [stdout] 489 | res: Res::Def(DefKind::TyAlias, result), [INFO] [stdout] | ^^^^^^^ use of undeclared type `DefKind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LintId` [INFO] [stdout] --> src/lib.rs:556:30 [INFO] [stdout] | [INFO] [stdout] 556 | lints.iter().map(|x| LintId::of(x)).collect(), [INFO] [stdout] | ^^^^^^ use of undeclared type `LintId` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/clippy.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | expr: &'tcx Expr<'tcx>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/clippy.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | &'tcx Expr<'tcx>, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Symbol` in this scope [INFO] [stdout] --> src/clippy.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn method_calls<'tcx>( [INFO] [stdout] | - help: you might be missing a type parameter: `, Symbol` [INFO] [stdout] ... [INFO] [stdout] 47 | Vec, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/clippy.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | Vec<&'tcx [Expr<'tcx>]>, [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/clippy.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn method_calls<'tcx>( [INFO] [stdout] | - help: you might be missing a type parameter: `, Span` [INFO] [stdout] ... [INFO] [stdout] 49 | Vec, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/clippy.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn path_to_res(cx: &LateContext, path: &[&str]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DefId` in this scope [INFO] [stdout] --> src/clippy.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | let krate = DefId { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CRATE_DEF_INDEX` in this scope [INFO] [stdout] --> src/clippy.rs:83:20 [INFO] [stdout] | [INFO] [stdout] 83 | index: CRATE_DEF_INDEX, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/clippy.rs:119:10 [INFO] [stdout] | [INFO] [stdout] 119 | cx: &LateContext<'tcx>, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope [INFO] [stdout] --> src/clippy.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | ty: Ty<'tcx>, [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DefId` in this scope [INFO] [stdout] --> src/clippy.rs:121:15 [INFO] [stdout] | [INFO] [stdout] 121 | trait_id: DefId, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `GenericArg` in this scope [INFO] [stdout] --> src/clippy.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 122 | ty_params: &[GenericArg<'tcx>], [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `predicate_for_trait_def` in this scope [INFO] [stdout] --> src/clippy.rs:125:22 [INFO] [stdout] | [INFO] [stdout] 125 | let obligation = predicate_for_trait_def( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/clippy.rs:142:10 [INFO] [stdout] | [INFO] [stdout] 142 | cx: &LateContext<'tcx>, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Item` in this scope [INFO] [stdout] --> src/clippy.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 143 | item: &Item, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope [INFO] [stdout] --> src/clippy.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | ) -> Option> { [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Impl` in this scope [INFO] [stdout] --> src/clippy.rs:146:27 [INFO] [stdout] | [INFO] [stdout] 146 | if let ItemKind::Impl(Impl { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hir_ty_to_ty` in this scope [INFO] [stdout] --> src/clippy.rs:154:29 [INFO] [stdout] | [INFO] [stdout] 154 | return Some(hir_ty_to_ty(cx.tcx, self_ty)); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/clippy.rs:163:30 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn get_trait_def_id(cx: &LateContext, path: &[&str]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DefId` in this scope [INFO] [stdout] --> src/clippy.rs:163:68 [INFO] [stdout] | [INFO] [stdout] 163 | pub fn get_trait_def_id(cx: &LateContext, path: &[&str]) -> Option { [INFO] [stdout] | - ^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/clippy.rs:176:28 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn match_def_path(cx: &LateContext, did: DefId, syms: &[&str]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DefId` in this scope [INFO] [stdout] --> src/clippy.rs:176:46 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn match_def_path(cx: &LateContext, did: DefId, syms: &[&str]) -> bool { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Symbol` in this scope [INFO] [stdout] --> src/clippy.rs:183:24 [INFO] [stdout] | [INFO] [stdout] 176 | pub fn match_def_path(cx: &LateContext, did: DefId, syms: &[&str]) -> bool { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 183 | .collect::>(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/clippy.rs:189:10 [INFO] [stdout] | [INFO] [stdout] 189 | cx: &LateContext, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TyS` in this scope [INFO] [stdout] --> src/clippy.rs:190:10 [INFO] [stdout] | [INFO] [stdout] 190 | ty: &TyS, [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:157:19 [INFO] [stdout] | [INFO] [stdout] 157 | fn emit_lint(cx: &LateContext, lint: &'static Lint, span: Span) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Lint` in this scope [INFO] [stdout] --> src/lib.rs:157:47 [INFO] [stdout] | [INFO] [stdout] 157 | fn emit_lint(cx: &LateContext, lint: &'static Lint, 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/lib.rs:157:59 [INFO] [stdout] | [INFO] [stdout] 157 | fn emit_lint(cx: &LateContext, lint: &'static Lint, span: Span) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:163:23 [INFO] [stdout] | [INFO] [stdout] 163 | fn check_use_map(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:163:43 [INFO] [stdout] | [INFO] [stdout] 163 | fn check_use_map(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_MAP` in this scope [INFO] [stdout] --> src/lib.rs:174:23 [INFO] [stdout] | [INFO] [stdout] 174 | emit_lint(cx, GAZEBO_USE_MAP, expr.span); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:180:27 [INFO] [stdout] | [INFO] [stdout] 180 | fn check_use_try_map(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:180:47 [INFO] [stdout] | [INFO] [stdout] 180 | fn check_use_try_map(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_TRY_MAP` in this scope [INFO] [stdout] --> src/lib.rs:192:27 [INFO] [stdout] | [INFO] [stdout] 192 | emit_lint(cx, GAZEBO_USE_TRY_MAP, expr.span); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:199:28 [INFO] [stdout] | [INFO] [stdout] 199 | fn check_use_into_map(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:199:48 [INFO] [stdout] | [INFO] [stdout] 199 | fn check_use_into_map(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_INTO_MAP` in this scope [INFO] [stdout] --> src/lib.rs:215:23 [INFO] [stdout] | [INFO] [stdout] 215 | emit_lint(cx, GAZEBO_USE_INTO_MAP, expr.span); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:221:32 [INFO] [stdout] | [INFO] [stdout] 221 | fn check_use_into_try_map(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:221:52 [INFO] [stdout] | [INFO] [stdout] 221 | fn check_use_into_try_map(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_INTO_TRY_MAP` in this scope [INFO] [stdout] --> src/lib.rs:237:23 [INFO] [stdout] | [INFO] [stdout] 237 | emit_lint(cx, GAZEBO_USE_INTO_TRY_MAP, expr.span); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | cx: &LateContext, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 245 | expr: &Expr, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Symbol` in this scope [INFO] [stdout] --> src/lib.rs:246:17 [INFO] [stdout] | [INFO] [stdout] 246 | clone_kind: Symbol, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Lint` in this scope [INFO] [stdout] --> src/lib.rs:247:25 [INFO] [stdout] | [INFO] [stdout] 247 | lint_kind: &'static Lint, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:265:24 [INFO] [stdout] | [INFO] [stdout] 265 | fn check_use_dupe(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:265:44 [INFO] [stdout] | [INFO] [stdout] 265 | fn check_use_dupe(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_DUPE` in this scope [INFO] [stdout] --> src/lib.rs:272:39 [INFO] [stdout] | [INFO] [stdout] 272 | emit_lint(cx, GAZEBO_USE_DUPE, method_span); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:291:25 [INFO] [stdout] | [INFO] [stdout] 291 | fn check_use_duped(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:291:45 [INFO] [stdout] | [INFO] [stdout] 291 | fn check_use_duped(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_DUPED` in this scope [INFO] [stdout] --> src/lib.rs:300:39 [INFO] [stdout] | [INFO] [stdout] 300 | emit_lint(cx, GAZEBO_USE_DUPED, method_span); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:319:28 [INFO] [stdout] | [INFO] [stdout] 319 | fn check_dupe_on_copy(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:319:48 [INFO] [stdout] | [INFO] [stdout] 319 | fn check_dupe_on_copy(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_DUPE_ON_COPY` in this scope [INFO] [stdout] --> src/lib.rs:335:43 [INFO] [stdout] | [INFO] [stdout] 335 | ... emit_lint(cx, GAZEBO_DUPE_ON_COPY, method_span); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:354:23 [INFO] [stdout] | [INFO] [stdout] 354 | fn check_use_box(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:354:43 [INFO] [stdout] | [INFO] [stdout] 354 | fn check_use_box(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `USE_BOX` in this scope [INFO] [stdout] --> src/lib.rs:361:39 [INFO] [stdout] | [INFO] [stdout] 361 | emit_lint(cx, USE_BOX, expr.span); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:374:25 [INFO] [stdout] | [INFO] [stdout] 374 | fn check_impl_dupe(cx: &LateContext, item: &Item) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Item` in this scope [INFO] [stdout] --> src/lib.rs:374:45 [INFO] [stdout] | [INFO] [stdout] 374 | fn check_impl_dupe(cx: &LateContext, item: &Item) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:376:14 [INFO] [stdout] | [INFO] [stdout] 376 | cx: &LateContext<'tcx>, [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DefId` in this scope [INFO] [stdout] --> src/lib.rs:378:21 [INFO] [stdout] | [INFO] [stdout] 378 | dupe_trait: DefId, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:407:27 [INFO] [stdout] | [INFO] [stdout] 407 | fn is_copy<'tcx>(cx: &LateContext<'tcx>, self_tys: rustc_middle::ty::Ty<'tcx>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_IMPL_DUPE` in this scope [INFO] [stdout] --> src/lib.rs:425:31 [INFO] [stdout] | [INFO] [stdout] 425 | emit_lint(cx, GAZEBO_IMPL_DUPE, item.span); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:432:35 [INFO] [stdout] | [INFO] [stdout] 432 | fn check_use_bail_and_ensure(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:432:55 [INFO] [stdout] | [INFO] [stdout] 432 | fn check_use_bail_and_ensure(cx: &LateContext, expr: &Expr) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ANYHOW_AVOID_BAIL_AND_ENSURE` in this scope [INFO] [stdout] --> src/lib.rs:449:35 [INFO] [stdout] | [INFO] [stdout] 449 | emit_lint(cx, ANYHOW_AVOID_BAIL_AND_ENSURE, expr.span); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:457:30 [INFO] [stdout] | [INFO] [stdout] 457 | fn check_qualify_anyhow(cx: &LateContext, item: &Item) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Item` in this scope [INFO] [stdout] --> src/lib.rs:457:50 [INFO] [stdout] | [INFO] [stdout] 457 | fn check_qualify_anyhow(cx: &LateContext, item: &Item) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ANYHOW_QUALIFY` in this scope [INFO] [stdout] --> src/lib.rs:463:39 [INFO] [stdout] | [INFO] [stdout] 463 | emit_lint(cx, ANYHOW_QUALIFY, item.span) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ANYHOW_QUALIFY` in this scope [INFO] [stdout] --> src/lib.rs:470:39 [INFO] [stdout] | [INFO] [stdout] 470 | emit_lint(cx, ANYHOW_QUALIFY, item.span) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ANYHOW_QUALIFY` in this scope [INFO] [stdout] --> src/lib.rs:475:39 [INFO] [stdout] | [INFO] [stdout] 475 | emit_lint(cx, ANYHOW_QUALIFY, item.span) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:485:36 [INFO] [stdout] | [INFO] [stdout] 485 | fn check_anyhow_two_arguments(cx: &LateContext, ty: &Ty) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope [INFO] [stdout] --> src/lib.rs:485:54 [INFO] [stdout] | [INFO] [stdout] 485 | fn check_anyhow_two_arguments(cx: &LateContext, ty: &Ty) { [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Path` in this scope [INFO] [stdout] --> src/lib.rs:488:9 [INFO] [stdout] | [INFO] [stdout] 488 | Path { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 53 | use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PathSegment` in this scope [INFO] [stdout] --> src/lib.rs:491:21 [INFO] [stdout] | [INFO] [stdout] 491 | [_, PathSegment { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GenericArgs` in this scope [INFO] [stdout] --> src/lib.rs:492:32 [INFO] [stdout] | [INFO] [stdout] 492 | args: Some(GenericArgs { args: [_, _], .. }), [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ANYHOW_RESULT_TWO_ARGUMENTS` in this scope [INFO] [stdout] --> src/lib.rs:500:27 [INFO] [stdout] | [INFO] [stdout] 500 | emit_lint(cx, ANYHOW_RESULT_TWO_ARGUMENTS, ty.span); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `LateLintPass` in this scope [INFO] [stdout] --> src/lib.rs:505:12 [INFO] [stdout] | [INFO] [stdout] 505 | impl<'tcx> LateLintPass<'tcx> for Pass { [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Pass` in this scope [INFO] [stdout] --> src/lib.rs:505:35 [INFO] [stdout] | [INFO] [stdout] 505 | impl<'tcx> LateLintPass<'tcx> for Pass { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:506:35 [INFO] [stdout] | [INFO] [stdout] 506 | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Expr` in this scope [INFO] [stdout] --> src/lib.rs:506:66 [INFO] [stdout] | [INFO] [stdout] 506 | fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_SLICE_CLONED` in this scope [INFO] [stdout] --> src/lib.rs:511:61 [INFO] [stdout] | [INFO] [stdout] 511 | check_use_slice_cloned_kind(cx, expr, sym!(cloned), GAZEBO_USE_SLICE_CLONED); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_SLICE_DUPED` in this scope [INFO] [stdout] --> src/lib.rs:512:60 [INFO] [stdout] | [INFO] [stdout] 512 | check_use_slice_cloned_kind(cx, expr, sym!(duped), GAZEBO_USE_SLICE_DUPED); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:520:40 [INFO] [stdout] | [INFO] [stdout] 520 | fn check_item_post(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Item` in this scope [INFO] [stdout] --> src/lib.rs:520:71 [INFO] [stdout] | [INFO] [stdout] 520 | fn check_item_post(&mut self, cx: &LateContext<'tcx>, item: &'tcx Item<'tcx>) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LateContext` in this scope [INFO] [stdout] --> src/lib.rs:525:33 [INFO] [stdout] | [INFO] [stdout] 525 | fn check_ty(&mut self, cx: &LateContext<'tcx>, item: &'tcx Ty<'tcx>) { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Ty` in this scope [INFO] [stdout] --> src/lib.rs:525:64 [INFO] [stdout] | [INFO] [stdout] 525 | fn check_ty(&mut self, cx: &LateContext<'tcx>, item: &'tcx Ty<'tcx>) { [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Registry` in this scope [INFO] [stdout] --> src/lib.rs:532:35 [INFO] [stdout] | [INFO] [stdout] 532 | pub fn plugin_registrar(reg: &mut Registry) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_MAP` in this scope [INFO] [stdout] --> src/lib.rs:534:9 [INFO] [stdout] | [INFO] [stdout] 534 | GAZEBO_USE_MAP, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_TRY_MAP` in this scope [INFO] [stdout] --> src/lib.rs:535:9 [INFO] [stdout] | [INFO] [stdout] 535 | GAZEBO_USE_TRY_MAP, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_INTO_MAP` in this scope [INFO] [stdout] --> src/lib.rs:536:9 [INFO] [stdout] | [INFO] [stdout] 536 | GAZEBO_USE_INTO_MAP, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_INTO_TRY_MAP` in this scope [INFO] [stdout] --> src/lib.rs:537:9 [INFO] [stdout] | [INFO] [stdout] 537 | GAZEBO_USE_INTO_TRY_MAP, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_SLICE_CLONED` in this scope [INFO] [stdout] --> src/lib.rs:538:9 [INFO] [stdout] | [INFO] [stdout] 538 | GAZEBO_USE_SLICE_CLONED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_SLICE_DUPED` in this scope [INFO] [stdout] --> src/lib.rs:539:9 [INFO] [stdout] | [INFO] [stdout] 539 | GAZEBO_USE_SLICE_DUPED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ANYHOW_AVOID_BAIL_AND_ENSURE` in this scope [INFO] [stdout] --> src/lib.rs:540:9 [INFO] [stdout] | [INFO] [stdout] 540 | ANYHOW_AVOID_BAIL_AND_ENSURE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `USE_BOX` in this scope [INFO] [stdout] --> src/lib.rs:541:9 [INFO] [stdout] | [INFO] [stdout] 541 | USE_BOX, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_DUPE` in this scope [INFO] [stdout] --> src/lib.rs:542:9 [INFO] [stdout] | [INFO] [stdout] 542 | GAZEBO_USE_DUPE, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_USE_DUPED` in this scope [INFO] [stdout] --> src/lib.rs:543:9 [INFO] [stdout] | [INFO] [stdout] 543 | GAZEBO_USE_DUPED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_IMPL_DUPE` in this scope [INFO] [stdout] --> src/lib.rs:544:9 [INFO] [stdout] | [INFO] [stdout] 544 | GAZEBO_IMPL_DUPE, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ANYHOW_QUALIFY` in this scope [INFO] [stdout] --> src/lib.rs:545:9 [INFO] [stdout] | [INFO] [stdout] 545 | ANYHOW_QUALIFY, [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GAZEBO_DUPE_ON_COPY` in this scope [INFO] [stdout] --> src/lib.rs:546:9 [INFO] [stdout] | [INFO] [stdout] 546 | GAZEBO_DUPE_ON_COPY, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `ANYHOW_RESULT_TWO_ARGUMENTS` in this scope [INFO] [stdout] --> src/lib.rs:547:9 [INFO] [stdout] | [INFO] [stdout] 547 | ANYHOW_RESULT_TWO_ARGUMENTS, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Pass` in this scope [INFO] [stdout] --> src/lib.rs:551:46 [INFO] [stdout] | [INFO] [stdout] 551 | reg.lint_store.register_late_pass(|| box Pass); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/lib.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #![feature(plugin_registrar)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | #![feature(rustc_private)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/lib.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 31 | #![feature(box_syntax)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 162 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0422, E0425, E0433, E0463, E0554, E0557. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gazebo_lint` due to 163 previous errors [INFO] running `Command { std: "docker" "inspect" "f3ae6aaa6cadfad7dd4ef882d37751dde0740075a23e4c444884e62a03f160bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3ae6aaa6cadfad7dd4ef882d37751dde0740075a23e4c444884e62a03f160bb", kill_on_drop: false }` [INFO] [stdout] f3ae6aaa6cadfad7dd4ef882d37751dde0740075a23e4c444884e62a03f160bb