[INFO] crate rerast 0.1.31 is already in cache [INFO] extracting crate rerast 0.1.31 into work/ex/pr-58592/sources/master#f66e4697ae286985ddefc53c3a047614568458bb/reg/rerast/0.1.31 [INFO] extracting crate rerast 0.1.31 into work/ex/pr-58592/sources/try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a/reg/rerast/0.1.31 [INFO] validating manifest of rerast-0.1.31 on toolchain master#f66e4697ae286985ddefc53c3a047614568458bb [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+f66e4697ae286985ddefc53c3a047614568458bb-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of rerast-0.1.31 on toolchain try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c3b22200e6f5b70eb1f99ae6944d989ae17a458a-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing rerast-0.1.31 [INFO] finished frobbing rerast-0.1.31 [INFO] frobbed toml for rerast-0.1.31 written to work/ex/pr-58592/sources/master#f66e4697ae286985ddefc53c3a047614568458bb/reg/rerast/0.1.31/Cargo.toml [INFO] started frobbing rerast-0.1.31 [INFO] finished frobbing rerast-0.1.31 [INFO] frobbed toml for rerast-0.1.31 written to work/ex/pr-58592/sources/try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a/reg/rerast/0.1.31/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+f66e4697ae286985ddefc53c3a047614568458bb-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c3b22200e6f5b70eb1f99ae6944d989ae17a458a-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+f66e4697ae286985ddefc53c3a047614568458bb-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c3b22200e6f5b70eb1f99ae6944d989ae17a458a-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking rerast-0.1.31 against try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a for pr-58592 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-58592/worker-6/try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-58592/sources/try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a/reg/rerast/0.1.31:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+c3b22200e6f5b70eb1f99ae6944d989ae17a458a-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 283c4b3338f392a38e2c3a93a37bce5964c68a0ed107c99a457c1231fcde3704 [INFO] running `"docker" "start" "-a" "283c4b3338f392a38e2c3a93a37bce5964c68a0ed107c99a457c1231fcde3704"` [INFO] [stderr] Checking rerast_macros v0.1.12 [INFO] [stderr] Checking itertools v0.5.10 [INFO] [stderr] Compiling cargo_metadata v0.6.4 [INFO] [stderr] Checking rerast v0.1.31 (/opt/crater/workdir) [INFO] [stderr] Compiling skeptic v0.13.4 [INFO] [stderr] error[E0433]: failed to resolve: could not find `quote` in `ext` [INFO] [stderr] --> src/change_to_rule.rs:37:18 [INFO] [stderr] | [INFO] [stderr] 37 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^ could not find `quote` in `ext` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `quote` in `ext` [INFO] [stderr] --> src/code_substitution.rs:21:18 [INFO] [stderr] | [INFO] [stderr] 21 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^ could not find `quote` in `ext` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `quote` in `ext` [INFO] [stderr] --> src/errors.rs:19:18 [INFO] [stderr] | [INFO] [stderr] 19 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^ could not find `quote` in `ext` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `quote` in `ext` [INFO] [stderr] --> src/rule_finder.rs:25:18 [INFO] [stderr] | [INFO] [stderr] 25 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^ could not find `quote` in `ext` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `quote` in `ext` [INFO] [stderr] --> src/rule_matcher.rs:32:18 [INFO] [stderr] | [INFO] [stderr] 32 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^ could not find `quote` in `ext` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `quote` in `ext` [INFO] [stderr] --> src/validation.rs:23:18 [INFO] [stderr] | [INFO] [stderr] 23 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^ could not find `quote` in `ext` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `quote` in `ext` [INFO] [stderr] --> src/lib.rs:115:18 [INFO] [stderr] | [INFO] [stderr] 115 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^ could not find `quote` in `ext` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `hir::DeclKind` [INFO] [stderr] --> src/rule_matcher.rs:1079:13 [INFO] [stderr] | [INFO] [stderr] 1079 | use hir::DeclKind; [INFO] [stderr] | ^^^^^^^^^^^^^ no `DeclKind` in `hir` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Span` [INFO] [stderr] --> src/change_to_rule.rs:188:13 [INFO] [stderr] | [INFO] [stderr] 188 | Span::new(filemap.start_pos, filemap.end_pos, syntax_pos::NO_EXPANSION), [INFO] [stderr] | ^^^^ use of undeclared type or module `Span` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Span` [INFO] [stderr] --> src/change_to_rule.rs:198:22 [INFO] [stderr] | [INFO] [stderr] 198 | let result = Span::new( [INFO] [stderr] | ^^^^ use of undeclared type or module `Span` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Span` [INFO] [stderr] --> src/change_to_rule.rs:233:9 [INFO] [stderr] | [INFO] [stderr] 233 | Span::new( [INFO] [stderr] | ^^^^ use of undeclared type or module `Span` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Span` [INFO] [stderr] --> src/change_to_rule.rs:466:30 [INFO] [stderr] | [INFO] [stderr] 466 | .span_to_snippet(Span::new(start, subst_span.lo(), syntax_pos::NO_EXPANSION)) [INFO] [stderr] | ^^^^ use of undeclared type or module `Span` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Span` [INFO] [stderr] --> src/change_to_rule.rs:472:26 [INFO] [stderr] | [INFO] [stderr] 472 | .span_to_snippet(Span::new(start, span.hi(), syntax_pos::NO_EXPANSION)) [INFO] [stderr] | ^^^^ use of undeclared type or module `Span` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Span` [INFO] [stderr] --> src/code_substitution.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | Span::lo(*self) [INFO] [stderr] | ^^^^ use of undeclared type or module `Span` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Span` [INFO] [stderr] --> src/code_substitution.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | Span::hi(*self) [INFO] [stderr] | ^^^^ use of undeclared type or module `Span` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `DeclKind` in `hir` [INFO] [stderr] --> src/rule_finder.rs:265:29 [INFO] [stderr] | [INFO] [stderr] 265 | if let hir::DeclKind::Local(ref local) = decl.node { [INFO] [stderr] | ^^^^^^^^ could not find `DeclKind` in `hir` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `quote` in `ext` [INFO] [stderr] --> src/rule_matcher.rs:1383:30 [INFO] [stderr] | [INFO] [stderr] 1383 | syntax::ext::quote::rt::DUMMY_SP [INFO] [stderr] | ^^^^^ could not find `quote` in `ext` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:67:15 [INFO] [stderr] | [INFO] [stderr] 67 | uses: Vec, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:171:27 [INFO] [stderr] | [INFO] [stderr] 171 | fn span_within_span(span: Span, target: Span) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:171:41 [INFO] [stderr] | [INFO] [stderr] 171 | fn span_within_span(span: Span, target: Span) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:171:50 [INFO] [stderr] | [INFO] [stderr] 171 | fn span_within_span(span: Span, target: Span) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:185:27 [INFO] [stderr] | [INFO] [stderr] 185 | fn new(absolute_span: Span, filemap: &syntax_pos::SourceFile) -> RelativeSpan { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:196:61 [INFO] [stderr] | [INFO] [stderr] 196 | fn absolute(&self, filemap: &syntax_pos::SourceFile) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:225:24 [INFO] [stderr] | [INFO] [stderr] 225 | fn from_span(span: Span, filemap: &syntax_pos::SourceFile) -> ChangedSpan { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:232:60 [INFO] [stderr] | [INFO] [stderr] 232 | fn to_span(&self, filemap: &syntax_pos::SourceFile) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:386:23 [INFO] [stderr] | [INFO] [stderr] 386 | replacement_span: Span, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:458:11 [INFO] [stderr] | [INFO] [stderr] 458 | span: Span, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:459:27 [INFO] [stderr] | [INFO] [stderr] 459 | substitutions: &mut [(Span, String)], [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:482:33 [INFO] [stderr] | [INFO] [stderr] 482 | used_placeholder_spans: Vec, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/change_to_rule.rs:607:19 [INFO] [stderr] | [INFO] [stderr] 607 | changed_span: Span, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 24 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 24 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/code_substitution.rs:37:16 [INFO] [stderr] | [INFO] [stderr] 37 | impl SpanT for Span { [INFO] [stderr] | ^^^^ [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 37 | impl SpanT for SpanT { [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/code_substitution.rs:108:23 [INFO] [stderr] | [INFO] [stderr] 108 | impl CodeSubstitution { [INFO] [stderr] | ^^^^ [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 108 | impl CodeSubstitution { [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/code_substitution.rs:110:43 [INFO] [stderr] | [INFO] [stderr] 110 | substitutions: &[CodeSubstitution], [INFO] [stderr] | ^^^^ [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 110 | substitutions: &[CodeSubstitution], [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/code_substitution.rs:112:20 [INFO] [stderr] | [INFO] [stderr] 112 | base_span: Span, [INFO] [stderr] | ^^^^ [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 112 | base_span: SpanT, [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/code_substitution.rs:211:45 [INFO] [stderr] | [INFO] [stderr] 211 | substitutions: Vec>, [INFO] [stderr] | ^^^^ [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 211 | substitutions: Vec>, [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/errors.rs:25:11 [INFO] [stderr] | [INFO] [stderr] 25 | span: Span, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/errors.rs:29:58 [INFO] [stderr] | [INFO] [stderr] 29 | pub(crate) fn new>(message: T, span: Span) -> ErrorWithSpan { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_finder.rs:68:22 [INFO] [stderr] | [INFO] [stderr] 68 | arg_ty_span: Span, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_finder.rs:201:23 [INFO] [stderr] | [INFO] [stderr] 201 | fn span(&self) -> Span; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_finder.rs:222:23 [INFO] [stderr] | [INFO] [stderr] 222 | fn span(&self) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_finder.rs:256:23 [INFO] [stderr] | [INFO] [stderr] 256 | fn span(&self) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_finder.rs:291:23 [INFO] [stderr] | [INFO] [stderr] 291 | fn span(&self) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_finder.rs:327:23 [INFO] [stderr] | [INFO] [stderr] 327 | fn span(&self) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:126:24 [INFO] [stderr] | [INFO] [stderr] 126 | original_span: Span, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:407:37 [INFO] [stderr] | [INFO] [stderr] 407 | fn span_to_snippet(&self, span: Span) -> Result { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DeclKind` in module `hir` [INFO] [stderr] --> src/rule_matcher.rs:1073:25 [INFO] [stderr] | [INFO] [stderr] 1073 | impl Matchable for hir::DeclKind { [INFO] [stderr] | ^^^^^^^^ not found in `hir` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1316:20 [INFO] [stderr] | [INFO] [stderr] 1316 | original_span: Span, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1374:32 [INFO] [stderr] | [INFO] [stderr] 1374 | fn get_span(&self, target: Span) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1374:41 [INFO] [stderr] | [INFO] [stderr] 1374 | fn get_span(&self, target: Span) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1484:36 [INFO] [stderr] | [INFO] [stderr] 1484 | fn get_original_spans(search_span: Span, code_span: Span) -> Option<(Span, Span)> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1484:53 [INFO] [stderr] | [INFO] [stderr] 1484 | fn get_original_spans(search_span: Span, code_span: Span) -> Option<(Span, Span)> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1484:70 [INFO] [stderr] | [INFO] [stderr] 1484 | fn get_original_spans(search_span: Span, code_span: Span) -> Option<(Span, Span)> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1484:76 [INFO] [stderr] | [INFO] [stderr] 1484 | fn get_original_spans(search_span: Span, code_span: Span) -> Option<(Span, Span)> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1515:27 [INFO] [stderr] | [INFO] [stderr] 1515 | fn span_within_span(span: Span, target: Span) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1515:41 [INFO] [stderr] | [INFO] [stderr] 1515 | fn span_within_span(span: Span, target: Span) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1515:50 [INFO] [stderr] | [INFO] [stderr] 1515 | fn span_within_span(span: Span, target: Span) -> Span { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1528:36 [INFO] [stderr] | [INFO] [stderr] 1528 | fn all_expansions_equal(rule_span: Span, code_span: Span) -> bool { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1528:53 [INFO] [stderr] | [INFO] [stderr] 1528 | fn all_expansions_equal(rule_span: Span, code_span: Span) -> bool { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1536:34 [INFO] [stderr] | [INFO] [stderr] 1536 | result: Vec>, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1553:73 [INFO] [stderr] | [INFO] [stderr] 1553 | fn process_expr(&mut self, expr: &'gcx hir::Expr, placeholder_span: Span) -> bool { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1573:94 [INFO] [stderr] | [INFO] [stderr] 1573 | fn process_placeholder(&mut self, placeholder: &Placeholder<'r, 'gcx>, placeholder_span: Span) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1652:27 [INFO] [stderr] | [INFO] [stderr] 1652 | ) -> Vec> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/rule_matcher.rs:1656:50 [INFO] [stderr] | [INFO] [stderr] 1656 | substitutions: &mut Vec>, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/validation.rs:35:64 [INFO] [stderr] | [INFO] [stderr] 35 | fn add_error>(&mut self, message: T, span: Span) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/validation.rs:76:78 [INFO] [stderr] | [INFO] [stderr] 76 | fn visit_qpath(&mut self, qpath: &'gcx hir::QPath, id: hir::HirId, span: Span) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/validation.rs:100:78 [INFO] [stderr] | [INFO] [stderr] 100 | fn visit_qpath(&mut self, qpath: &'gcx hir::QPath, id: hir::HirId, span: Span) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 15 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 15 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Span` in this scope [INFO] [stderr] --> src/lib.rs:270:68 [INFO] [stderr] | [INFO] [stderr] 270 | fn print_macro_backtrace(msg: &str, codemap: &SourceMap, span: Span) { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 96 | use syntax::source_map::Span; [INFO] [stderr] | [INFO] [stderr] 96 | use syntax_pos::Span; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0603]: struct `Label` is private [INFO] [stderr] --> src/rule_matcher.rs:987:25 [INFO] [stderr] | [INFO] [stderr] 987 | impl Matchable for hir::Label { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `syntax::ext::quote::rt::Span` [INFO] [stderr] --> src/change_to_rule.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `syntax::ext::quote::rt::Span` [INFO] [stderr] --> src/code_substitution.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `syntax::ext::quote::rt::Span` [INFO] [stderr] --> src/errors.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `syntax::ext::quote::rt::Span` [INFO] [stderr] --> src/rule_finder.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `syntax::ext::quote::rt::Span` [INFO] [stderr] --> src/rule_matcher.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `syntax::ext::quote::rt::Span` [INFO] [stderr] --> src/validation.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `syntax::ext::quote::rt::Span` [INFO] [stderr] --> src/lib.rs:115:5 [INFO] [stderr] | [INFO] [stderr] 115 | use syntax::ext::quote::rt::Span; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] Compiling assert_cli v0.5.4 [INFO] [stderr] error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields [INFO] [stderr] --> src/lib.rs:428:16 [INFO] [stderr] | [INFO] [stderr] 428 | if let hir::PatKind::Binding(_, node_id, ref ident, _) = pat.node { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4 [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields [INFO] [stderr] --> src/change_to_rule.rs:86:13 [INFO] [stderr] | [INFO] [stderr] 86 | TokenTree::Delimited(_span, delimited) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2 [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/change_to_rule.rs:160:31 [INFO] [stderr] | [INFO] [stderr] 160 | hash_token_stream(&stream, &mut hasher); [INFO] [stderr] | ^^^^^^^ expected struct `syntax::tokenstream::TokenStream`, found tuple [INFO] [stderr] | [INFO] [stderr] = note: expected type `&syntax::tokenstream::TokenStream` [INFO] [stderr] found type `&(syntax::tokenstream::TokenStream, std::vec::Vec)` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `eq_unspanned` found for type `(syntax::tokenstream::TokenStream, std::vec::Vec)` in the current scope [INFO] [stderr] --> src/change_to_rule.rs:514:31 [INFO] [stderr] | [INFO] [stderr] 514 | if stream.eq_unspanned(&other_stream) && !self [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `into_trees` found for type `(syntax::tokenstream::TokenStream, std::vec::Vec)` in the current scope [INFO] [stderr] --> src/code_substitution.rs:182:20 [INFO] [stderr] | [INFO] [stderr] 182 | for tree in ts.into_trees() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `name` on type `&'gcx rustc::hir::Item` [INFO] [stderr] --> src/definitions.rs:69:25 [INFO] [stderr] | [INFO] [stderr] 69 | if item.name == self.rerast_mod_symbol { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `node_id_to_type` found for type `&rustc::ty::TypeckTables<'_>` in the current scope [INFO] [stderr] --> src/definitions.rs:86:35 [INFO] [stderr] | [INFO] [stderr] 86 | .map(|arg| tables.node_id_to_type(hir.node_to_hir_id(arg.id))); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `name` on type `&'gcx rustc::hir::Item` [INFO] [stderr] --> src/rule_finder.rs:151:21 [INFO] [stderr] | [INFO] [stderr] 151 | if item.name == self.rules_mod_symbol { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `node_id_to_type` found for type `&rustc::ty::TypeckTables<'_>` in the current scope [INFO] [stderr] --> src/rule_finder.rs:176:46 [INFO] [stderr] | [INFO] [stderr] 176 | let arg_ty = type_tables.node_id_to_type(self.tcx.hir().node_to_hir_id(arg0.id)); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field [INFO] [stderr] --> src/rule_finder.rs:233:20 [INFO] [stderr] | [INFO] [stderr] 233 | if let hir::StmtKind::Semi(ref addr_expr, _) = block.stmts[0].node { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 field, found 2 [INFO] [stderr] [INFO] [stderr] error[E0599]: no variant named `Decl` found for type `rustc::hir::StmtKind` in the current scope [INFO] [stderr] --> src/rule_finder.rs:264:35 [INFO] [stderr] | [INFO] [stderr] 264 | if let hir::StmtKind::Decl(ref decl, _) = block.stmts[0].node { [INFO] [stderr] | ---------------^^^^------------- variant not found in `rustc::hir::StmtKind` [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `node` on type `&_` [INFO] [stderr] --> src/rule_finder.rs:267:74 [INFO] [stderr] | [INFO] [stderr] 267 | if let hir::TyKind::Rptr(_, ref mut_ty) = ref_ty.node { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field [INFO] [stderr] --> src/rule_finder.rs:335:20 [INFO] [stderr] | [INFO] [stderr] 335 | if let hir::StmtKind::Semi(ref expr, _) = block.stmts[0].node { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 field, found 2 [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `node_id_to_type` found for type `&rustc::ty::TypeckTables<'_>` in the current scope [INFO] [stderr] --> src/rule_matcher.rs:141:46 [INFO] [stderr] | [INFO] [stderr] 141 | let ty = rule_tables.node_id_to_type(self.tcx.hir().node_to_hir_id(arg.id)); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `name` on type `&'gcx rustc::hir::Item` [INFO] [stderr] --> src/rule_matcher.rs:228:21 [INFO] [stderr] | [INFO] [stderr] 228 | if item.name == self.rule_mod_symbol { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field [INFO] [stderr] --> src/rule_matcher.rs:385:16 [INFO] [stderr] | [INFO] [stderr] 385 | if let hir::StmtKind::Semi(ref expr, _) = stmt.node { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 field, found 2 [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields [INFO] [stderr] --> src/rule_matcher.rs:848:15 [INFO] [stderr] | [INFO] [stderr] 848 | (&Binding(p_mode, p_node_id, ref _p_name, ref p_pat), _) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4 [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields [INFO] [stderr] --> src/rule_matcher.rs:855:31 [INFO] [stderr] | [INFO] [stderr] 855 | } else if let Binding(c_mode, c_node_id, ref _c_name, ref c_pat) = code.node { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4 [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field [INFO] [stderr] --> src/rule_matcher.rs:1065:15 [INFO] [stderr] | [INFO] [stderr] 1065 | (&StmtKind::Expr(ref p, _), &StmtKind::Expr(ref c, _)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 field, found 2 [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field [INFO] [stderr] --> src/rule_matcher.rs:1065:42 [INFO] [stderr] | [INFO] [stderr] 1065 | (&StmtKind::Expr(ref p, _), &StmtKind::Expr(ref c, _)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 field, found 2 [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field [INFO] [stderr] --> src/rule_matcher.rs:1066:17 [INFO] [stderr] | [INFO] [stderr] 1066 | | (&StmtKind::Semi(ref p, _), &StmtKind::Semi(ref c, _)) => p.attempt_match(state, c), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 field, found 2 [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field [INFO] [stderr] --> src/rule_matcher.rs:1066:44 [INFO] [stderr] | [INFO] [stderr] 1066 | | (&StmtKind::Semi(ref p, _), &StmtKind::Semi(ref c, _)) => p.attempt_match(state, c), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 field, found 2 [INFO] [stderr] [INFO] [stderr] error[E0599]: no variant named `Decl` found for type `rustc::hir::StmtKind` in the current scope [INFO] [stderr] --> src/rule_matcher.rs:1067:25 [INFO] [stderr] | [INFO] [stderr] 1067 | (&StmtKind::Decl(ref p, _), &StmtKind::Decl(ref c, _)) => p.attempt_match(state, c), [INFO] [stderr] | ----------^^^^---------- variant not found in `rustc::hir::StmtKind` [INFO] [stderr] [INFO] [stderr] error[E0599]: no variant named `Decl` found for type `rustc::hir::StmtKind` in the current scope [INFO] [stderr] --> src/rule_matcher.rs:1067:52 [INFO] [stderr] | [INFO] [stderr] 1067 | (&StmtKind::Decl(ref p, _), &StmtKind::Decl(ref c, _)) => p.attempt_match(state, c), [INFO] [stderr] | ----------^^^^---------- variant not found in `rustc::hir::StmtKind` [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 1 field [INFO] [stderr] --> src/rule_matcher.rs:1604:16 [INFO] [stderr] | [INFO] [stderr] 1604 | if let hir::StmtKind::Semi(ref expr, _) = stmt.node { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 field, found 2 [INFO] [stderr] [INFO] [stderr] error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields [INFO] [stderr] --> src/rule_matcher.rs:1615:16 [INFO] [stderr] | [INFO] [stderr] 1615 | if let hir::PatKind::Binding(_, ref node_id, ref ident, _) = pat.node { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4 [INFO] [stderr] [INFO] [stderr] error: aborting due to 94 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0023, E0308, E0412, E0432, E0433, E0599, E0603, E0609. [INFO] [stderr] For more information about an error, try `rustc --explain E0023`. [INFO] [stderr] error: Could not compile `rerast`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "283c4b3338f392a38e2c3a93a37bce5964c68a0ed107c99a457c1231fcde3704"` [INFO] running `"docker" "rm" "-f" "283c4b3338f392a38e2c3a93a37bce5964c68a0ed107c99a457c1231fcde3704"` [INFO] [stdout] 283c4b3338f392a38e2c3a93a37bce5964c68a0ed107c99a457c1231fcde3704