Updating only changed submodules
  Submodules updated in 0.01 seconds
Building rustbuild
    Finished dev [unoptimized] target(s) in 0.10s
Building stage0 std artifacts (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) / x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.18s
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) / x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
Assembling stage1 compiler (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
Building stage1 std artifacts (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.11s
Copying stage1 std from stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) / x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
Building rustdoc for stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.11s
Testing rustc_apfloat stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_apfloat

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.213 seconds
Testing rustc_arena stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_arena

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.168 seconds
Testing rustc_ast stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.15s
   Doc-tests rustc_ast

running 5 tests
iii..
test result: ok. 2 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out; finished in 0.16s

	finished in 1.157 seconds
Testing rustc_ast_lowering stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_ast_lowering

running 5 tests
iiiii
test result: ok. 0 passed; 0 failed; 5 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.329 seconds
Testing rustc_ast_passes stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.15s
   Doc-tests rustc_ast_passes

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.324 seconds
Testing rustc_ast_pretty stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_ast_pretty

running 5 tests
FFFFF
failures:

---- src/pp.rs - pp::IndentStyle::Visual (line 155) stdout ----
error: free function without a body
 --> src/pp.rs:156:1
  |
3 | / fn demo(arg1: usize,
4 | |         arg2: usize);
  | |                     ^ help: provide a definition for the function: `{ <body> }`
  | |_____________________|
  | 

error: aborting due to previous error

Couldn't compile the test.
---- src/pp.rs - pp::IndentStyle::Block (line 160) stdout ----
error: free function without a body
 --> src/pp.rs:161:1
  |
3 | / fn demo(
4 | |     arg1: usize,
5 | |     arg2: usize,
6 | | );
  | |  ^ help: provide a definition for the function: `{ <body> }`
  | |__|
  | 

error: aborting due to previous error

Couldn't compile the test.
---- src/pp.rs - pp (line 77) stdout ----
error[E0425]: cannot find function `foo` in this scope
 --> src/pp.rs:78:1
  |
3 | foo(hello, there,
  | ^^^ not found in this scope

error[E0425]: cannot find value `hello` in this scope
 --> src/pp.rs:78:5
  |
3 | foo(hello, there,
  |     ^^^^^ not found in this scope

error[E0425]: cannot find value `there` in this scope
 --> src/pp.rs:78:12
  |
3 | foo(hello, there,
  |            ^^^^^ not found in this scope

error[E0425]: cannot find value `good` in this scope
 --> src/pp.rs:79:5
  |
4 |     good, friends);
  |     ^^^^ not found in this scope

error[E0425]: cannot find value `friends` in this scope
 --> src/pp.rs:79:11
  |
4 |     good, friends);
  |           ^^^^^^^ not found in this scope

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/pp.rs - pp (line 84) stdout ----
error[E0425]: cannot find function `foo` in this scope
 --> src/pp.rs:85:1
  |
3 | foo(hello,
  | ^^^ not found in this scope

error[E0425]: cannot find value `hello` in this scope
 --> src/pp.rs:85:5
  |
3 | foo(hello,
  |     ^^^^^ not found in this scope

error[E0425]: cannot find value `there` in this scope
 --> src/pp.rs:86:5
  |
4 |     there,
  |     ^^^^^ not found in this scope

error[E0425]: cannot find value `good` in this scope
 --> src/pp.rs:87:5
  |
5 |     good,
  |     ^^^^ not found in this scope

error[E0425]: cannot find value `friends` in this scope
 --> src/pp.rs:88:5
  |
6 |     friends);
  |     ^^^^^^^ not found in this scope

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/pp.rs - pp (line 71) stdout ----
error[E0425]: cannot find function `foo` in this scope
 --> src/pp.rs:72:1
  |
3 | foo(hello, there, good, friends)
  | ^^^ not found in this scope

error[E0425]: cannot find value `hello` in this scope
 --> src/pp.rs:72:5
  |
3 | foo(hello, there, good, friends)
  |     ^^^^^ not found in this scope

error[E0425]: cannot find value `there` in this scope
 --> src/pp.rs:72:12
  |
3 | foo(hello, there, good, friends)
  |            ^^^^^ not found in this scope

error[E0425]: cannot find value `good` in this scope
 --> src/pp.rs:72:19
  |
3 | foo(hello, there, good, friends)
  |                   ^^^^ not found in this scope

error[E0425]: cannot find value `friends` in this scope
 --> src/pp.rs:72:25
  |
3 | foo(hello, there, good, friends)
  |                         ^^^^^^^ not found in this scope

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.

failures:
    src/pp.rs - pp (line 71)
    src/pp.rs - pp (line 77)
    src/pp.rs - pp (line 84)
    src/pp.rs - pp::IndentStyle::Block (line 160)
    src/pp.rs - pp::IndentStyle::Visual (line 155)

test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

error: test failed, to rerun pass '--doc'
	finished in 0.277 seconds
Testing rustc_attr stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_attr

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.245 seconds
Testing rustc_borrowck stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_borrowck

running 16 tests
FFFFFFFFFFFFFFF.
failures:

---- src/member_constraints.rs - member_constraints::MemberConstraintSet::choice_regions (line 172) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `member`
 --> src/member_constraints.rs:173:4
  |
3 | R0 member of [R1..Rn]
  |    ^^^^^^ expected one of 8 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/diagnostics/region_errors.rs - diagnostics::region_errors::MirBorrowckCtxt::report_region_error (line 255) stdout ----
error[E0312]: lifetime of reference outlives lifetime of borrowed content...
 --> src/diagnostics/region_errors.rs:256:41
  |
3 | fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
  |                                         ^
  |
note: ...the reference is valid for the lifetime `'b` as defined here...
 --> src/diagnostics/region_errors.rs:256:12
  |
3 | fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
  |            ^^
note: ...but the borrowed content is only valid for the lifetime `'a` as defined here
 --> src/diagnostics/region_errors.rs:256:8
  |
3 | fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
  |        ^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0312`.
Couldn't compile the test.
---- src/member_constraints.rs - member_constraints::append_list (line 198) stdout ----
error: expected one of `!`, `(`, `.`, `::`, `;`, `<`, `?`, or `}`, found `->`
 --> src/member_constraints.rs:199:16
  |
3 | target_list: A -> B -> C -> (None)
  |            -   ^^ expected one of 8 possible tokens
  |            |
  |            tried to parse a type due to this type ascription
  |
  = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
  = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information

error: aborting due to previous error

Couldn't compile the test.
---- src/diagnostics/region_name.rs - diagnostics::region_name::MirBorrowckCtxt::get_future_inner_return_ty (line 748) stdout ----
error[E0308]: mismatched types
 --> src/diagnostics/region_name.rs:749:23
  |
3 | async fn foo() -> i32 {}
  |                       ^^ expected `i32`, found `()`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/member_constraints.rs - member_constraints::append_list (line 205) stdout ----
error: expected one of `!`, `(`, `.`, `::`, `;`, `<`, `?`, or `}`, found `->`
 --> src/member_constraints.rs:206:16
  |
3 | target_list: A -> B -> C -> D -> E -> F -> (None)
  |            -   ^^ expected one of 8 possible tokens
  |            |
  |            tried to parse a type due to this type ascription
  |
  = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
  = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information

error: aborting due to previous error

Couldn't compile the test.
---- src/region_infer/mod.rs - region_infer::RegionInferenceContext::check_polonius_subset_errors (line 1370) stdout ----
error[E0312]: lifetime of reference outlives lifetime of borrowed content...
 --> src/region_infer/mod.rs:1371:41
  |
3 | fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
  |                                         ^
  |
note: ...the reference is valid for the lifetime `'b` as defined here...
 --> src/region_infer/mod.rs:1371:12
  |
3 | fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
  |            ^^
note: ...but the borrowed content is only valid for the lifetime `'a` as defined here
 --> src/region_infer/mod.rs:1371:8
  |
3 | fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
  |        ^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0312`.
Couldn't compile the test.
---- src/region_infer/mod.rs - region_infer::RegionInferenceContext::check_universal_regions (line 1314) stdout ----
error[E0312]: lifetime of reference outlives lifetime of borrowed content...
 --> src/region_infer/mod.rs:1315:41
  |
3 | fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
  |                                         ^
  |
note: ...the reference is valid for the lifetime `'b` as defined here...
 --> src/region_infer/mod.rs:1315:12
  |
3 | fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
  |            ^^
note: ...but the borrowed content is only valid for the lifetime `'a` as defined here
 --> src/region_infer/mod.rs:1315:8
  |
3 | fn foo<'a, 'b>(x: &'a u32) -> &'b u32 { x }
  |        ^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0312`.
Couldn't compile the test.
---- src/region_infer/mod.rs - region_infer::RegionInferenceContext::init_free_and_bound_regions (line 440) stdout ----
error: expected one of `:` or `|`, found `)`
 --> src/region_infer/mod.rs:441:18
  |
3 | fn foo<'a, 'b>(..) where 'a: 'b
  |                  ^ expected one of `:` or `|`

error: expected one of `+`, `,`, or `{`, found `}`
 --> src/region_infer/mod.rs:442:1
  |
3 | fn foo<'a, 'b>(..) where 'a: 'b
  |    --- while parsing this `fn` - expected one of `+`, `,`, or `{`
4 | } _doctest_main_src_region_infer_mod_rs_440_0() }
  | ^ unexpected token

error: free function without a body
 --> src/region_infer/mod.rs:441:1
  |
3 | fn foo<'a, 'b>(..) where 'a: 'b
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: provide a definition for the function: `{ <body> }`

error: aborting due to 3 previous errors

Couldn't compile the test.
---- src/type_check/mod.rs - type_check::Locations::All (line 979) stdout ----
error[E0515]: cannot return reference to local variable `y`
 --> src/type_check/mod.rs:982:12
  |
5 |     return &y; // error
  |            ^^ returns a reference to data owned by the current function

error: aborting due to previous error

For more information about this error, try `rustc --explain E0515`.
Couldn't compile the test.
---- src/diagnostics/conflict_errors.rs - diagnostics::conflict_errors::MirBorrowckCtxt::describe_place_for_conflicting_borrow (line 909) stdout ----
error[E0308]: mismatched types
 --> src/diagnostics/conflict_errors.rs:910:1
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_diagnostics_conflict_errors_rs_909_0() {
  |                                                                                                  - help: try adding a return type: `-> (&'static str, &'static str, &'static str)`
3 | ("x.u", "x.u.z", "x.u.y")
  | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found tuple
  |
  = note: expected unit type `()`
                 found tuple `(&'static str, &'static str, &'static str)`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/diagnostics/conflict_errors.rs - diagnostics::conflict_errors::MirBorrowckCtxt::describe_place_for_conflicting_borrow (line 903) stdout ----
error[E0308]: mismatched types
 --> src/diagnostics/conflict_errors.rs:904:1
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_diagnostics_conflict_errors_rs_903_0() {
  |                                                                                                  - help: try adding a return type: `-> (&'static str, &'static str, &'static str)`
3 | ("x", "x.z", "x.y")
  | ^^^^^^^^^^^^^^^^^^^ expected `()`, found tuple
  |
  = note: expected unit type `()`
                 found tuple `(&'static str, &'static str, &'static str)`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/diagnostics/conflict_errors.rs - diagnostics::conflict_errors::MirBorrowckCtxt::describe_place_for_conflicting_borrow (line 898) stdout ----
error[E0308]: mismatched types
 --> src/diagnostics/conflict_errors.rs:899:1
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_diagnostics_conflict_errors_rs_898_0() {
  |                                                                                                  - help: try adding a return type: `-> (&'static str, &'static str, &'static str)`
3 | ("x", "", "")
  | ^^^^^^^^^^^^^ expected `()`, found tuple
  |
  = note: expected unit type `()`
                 found tuple `(&'static str, &'static str, &'static str)`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/universal_regions.rs - universal_regions::RegionClassification::External (line 190) stdout ----
error: cannot introduce explicit parameters for a closure
 --> src/universal_regions.rs:192:17
  |
4 |   let closure = for<'x> |x: &'x u32| { .. };
  |                 ^^^^^^^ ------------------- the parameters are attached to this closure
  |                 |
  |                 help: remove the parameters

error: expected expression, found `^`
 --> src/universal_regions.rs:193:17
  |
5 |                 ^^^^^^^ pretend this were legal syntax
  |                 ^ expected expression

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/diagnostics/region_name.rs - diagnostics::region_name::MirBorrowckCtxt::give_region_a_name (line 213) stdout ----
error[E0308]: mismatched types
 --> src/diagnostics/region_name.rs:214:19
  |
3 | fn foo(x: &u32) { .. }
  |                 - ^^ expected `()`, found struct `RangeFull`
  |                 |
  |                 help: try adding a return type: `-> RangeFull`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/region_infer/mod.rs - region_infer::RegionInferenceContext::init_free_and_bound_regions (line 444) stdout ----
error: this is a block expression, not an array
 --> src/region_infer/mod.rs:445:6
  |
3 | R0 = { CFG, R0 } // 'a
  |      ^^^^^^^^^^^
  |
help: to make an array, use square brackets instead of curly braces
  |
3 | R0 = [ CFG, R0 ] // 'a
  |      ~         ~

error: expected `;`, found `R1`
 --> src/region_infer/mod.rs:445:17
  |
3 | R0 = { CFG, R0 } // 'a
  |                 ^ help: add `;` here
4 | R1 = { CFG, R0, R1 } // 'b
  | -- unexpected token

error: this is a block expression, not an array
 --> src/region_infer/mod.rs:446:6
  |
4 | R1 = { CFG, R0, R1 } // 'b
  |      ^^^^^^^^^^^^^^^
  |
help: to make an array, use square brackets instead of curly braces
  |
4 | R1 = [ CFG, R0, R1 ] // 'b
  |      ~             ~

error[E0425]: cannot find value `R0` in this scope
 --> src/region_infer/mod.rs:445:1
  |
3 | R0 = { CFG, R0 } // 'a
  | ^^ not found in this scope

error[E0425]: cannot find value `R1` in this scope
 --> src/region_infer/mod.rs:446:1
  |
4 | R1 = { CFG, R0, R1 } // 'b
  | ^^ not found in this scope

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.

failures:
    src/diagnostics/conflict_errors.rs - diagnostics::conflict_errors::MirBorrowckCtxt::describe_place_for_conflicting_borrow (line 898)
    src/diagnostics/conflict_errors.rs - diagnostics::conflict_errors::MirBorrowckCtxt::describe_place_for_conflicting_borrow (line 903)
    src/diagnostics/conflict_errors.rs - diagnostics::conflict_errors::MirBorrowckCtxt::describe_place_for_conflicting_borrow (line 909)
    src/diagnostics/region_errors.rs - diagnostics::region_errors::MirBorrowckCtxt::report_region_error (line 255)
    src/diagnostics/region_name.rs - diagnostics::region_name::MirBorrowckCtxt::get_future_inner_return_ty (line 748)
    src/diagnostics/region_name.rs - diagnostics::region_name::MirBorrowckCtxt::give_region_a_name (line 213)
    src/member_constraints.rs - member_constraints::MemberConstraintSet::choice_regions (line 172)
    src/member_constraints.rs - member_constraints::append_list (line 198)
    src/member_constraints.rs - member_constraints::append_list (line 205)
    src/region_infer/mod.rs - region_infer::RegionInferenceContext::check_polonius_subset_errors (line 1370)
    src/region_infer/mod.rs - region_infer::RegionInferenceContext::check_universal_regions (line 1314)
    src/region_infer/mod.rs - region_infer::RegionInferenceContext::init_free_and_bound_regions (line 440)
    src/region_infer/mod.rs - region_infer::RegionInferenceContext::init_free_and_bound_regions (line 444)
    src/type_check/mod.rs - type_check::Locations::All (line 979)
    src/universal_regions.rs - universal_regions::RegionClassification::External (line 190)

test result: FAILED. 1 passed; 15 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.22s

error: test failed, to rerun pass '--doc'
	finished in 1.260 seconds
Testing rustc_builtin_macros stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.14s
   Doc-tests rustc_builtin_macros

running 11 tests
FiiFFFFFF..
failures:

---- src/deriving/generic/mod.rs - deriving::generic::MethodDef::expand_struct_method_body (line 990) stdout ----
error[E0119]: conflicting implementations of trait `std::cmp::PartialEq` for type `main::_doctest_main_src_deriving_generic_mod_rs_990_0::A`
  --> src/deriving/generic/mod.rs:1012:1
   |
8  | impl PartialEq for A {
   | -------------------- first implementation here
...
24 | impl PartialEq for A {
   | ^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `main::_doctest_main_src_deriving_generic_mod_rs_990_0::A`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0119`.
Couldn't compile the test.
---- src/deriving/encodable.rs - deriving::encodable (line 15) stdout ----
error[E0433]: failed to resolve: use of undeclared type `Encodable`
 --> src/deriving/encodable.rs:21:17
  |
8 |                 Encodable::encode(&self.id, this)
  |                 ^^^^^^^^^ use of undeclared type `Encodable`

error[E0433]: failed to resolve: use of undeclared type `Decodable`
  --> src/deriving/encodable.rs:31:58
   |
18 |             match this.read_struct_field("id", 0, |this| Decodable::decode(this)) {
   |                                                          ^^^^^^^^^ use of undeclared type `Decodable`

error[E0405]: cannot find trait `Encodable` in this scope
 --> src/deriving/encodable.rs:17:24
  |
4 | impl<S: Encoder<E>, E> Encodable<S, E> for Node {
  |                        ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Encoder` in this scope
 --> src/deriving/encodable.rs:17:9
  |
4 | impl<S: Encoder<E>, E> Encodable<S, E> for Node {
  |         ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Decodable` in this scope
  --> src/deriving/encodable.rs:28:24
   |
15 | impl<D: Decoder<E>, E> Decodable<D, E> for Node {
   |                        ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Decoder` in this scope
  --> src/deriving/encodable.rs:28:9
   |
15 | impl<D: Decoder<E>, E> Decodable<D, E> for Node {
   |         ^^^^^^^ not found in this scope

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0405, E0433.
For more information about an error, try `rustc --explain E0405`.
Couldn't compile the test.
---- src/deriving/encodable.rs - deriving::encodable (line 8) stdout ----
error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:9:10
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |          ^^^^^^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcEncodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:10:15
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |          -------------- in this derive macro expansion
4 | struct Node { id: usize }
  |               ^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcEncodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:9:26
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |                          ^^^^^^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:10:15
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |                          -------------- in this derive macro expansion
4 | struct Node { id: usize }
  |               ^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: use of deprecated macro `RustcEncodable`: rustc-serialize is deprecated and no longer supported
 --> src/deriving/encodable.rs:9:10
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |          ^^^^^^^^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default

warning: use of deprecated macro `RustcDecodable`: rustc-serialize is deprecated and no longer supported
 --> src/deriving/encodable.rs:9:26
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |                          ^^^^^^^^^^^^^^

error: aborting due to 4 previous errors; 2 warnings emitted

For more information about this error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/deriving/encodable.rs - deriving::encodable (line 52) stdout ----
error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:53:10
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |          ^^^^^^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcEncodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:53:26
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |                          ^^^^^^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: use of undeclared type `Decodable`
  --> src/deriving/encodable.rs:78:64
   |
28 |                 node: this.read_struct_field("node", 0, |this| Decodable::decode(this))
   |                                                                ^^^^^^^^^ use of undeclared type `Decodable`

error[E0433]: failed to resolve: use of undeclared type `Decodable`
  --> src/deriving/encodable.rs:80:64
   |
30 |                 span: this.read_struct_field("span", 1, |this| Decodable::decode(this))
   |                                                                ^^^^^^^^^ use of undeclared type `Decodable`

error[E0405]: cannot find trait `Encodable` in this scope
  --> src/deriving/encodable.rs:60:3
   |
10 | > Encodable<S, E> for Spanned<T> {
   |   ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Encoder` in this scope
 --> src/deriving/encodable.rs:57:8
  |
7 |     S: Encoder<E>,
  |        ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Encodable` in this scope
 --> src/deriving/encodable.rs:59:8
  |
9 |     T: Encodable<S, E>
  |        ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Decodable` in this scope
  --> src/deriving/encodable.rs:74:3
   |
24 | > Decodable<D, E> for Spanned<T> {
   |   ^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Decoder` in this scope
  --> src/deriving/encodable.rs:71:8
   |
21 |     D: Decoder<E>,
   |        ^^^^^^^ not found in this scope

error[E0405]: cannot find trait `Decodable` in this scope
  --> src/deriving/encodable.rs:73:8
   |
23 |     T: Decodable<D, E>
   |        ^^^^^^^^^ not found in this scope

warning: use of deprecated macro `RustcEncodable`: rustc-serialize is deprecated and no longer supported
 --> src/deriving/encodable.rs:53:10
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |          ^^^^^^^^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default

warning: use of deprecated macro `RustcDecodable`: rustc-serialize is deprecated and no longer supported
 --> src/deriving/encodable.rs:53:26
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |                          ^^^^^^^^^^^^^^

error: aborting due to 10 previous errors; 2 warnings emitted

Some errors have detailed explanations: E0405, E0433.
For more information about an error, try `rustc --explain E0405`.
Couldn't compile the test.
---- src/deriving/encodable.rs - deriving::encodable (line 43) stdout ----
error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:44:10
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |          ^^^^^^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcEncodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:44:26
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |                          ^^^^^^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:46:10
  |
5 | #[derive(RustcEncodable, RustcDecodable)]
  |          ^^^^^^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcEncodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:47:21
  |
5 | #[derive(RustcEncodable, RustcDecodable)]
  |          -------------- in this derive macro expansion
6 | struct Spanned<T> { node: T, span: Span }
  |                     ^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcEncodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:47:30
  |
5 | #[derive(RustcEncodable, RustcDecodable)]
  |          -------------- in this derive macro expansion
6 | struct Spanned<T> { node: T, span: Span }
  |                              ^^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcEncodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:46:26
  |
5 | #[derive(RustcEncodable, RustcDecodable)]
  |                          ^^^^^^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:47:21
  |
5 | #[derive(RustcEncodable, RustcDecodable)]
  |                          -------------- in this derive macro expansion
6 | struct Spanned<T> { node: T, span: Span }
  |                     ^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0433]: failed to resolve: could not find `rustc_serialize` in the list of imported crates
 --> src/deriving/encodable.rs:47:30
  |
5 | #[derive(RustcEncodable, RustcDecodable)]
  |                          -------------- in this derive macro expansion
6 | struct Spanned<T> { node: T, span: Span }
  |                              ^^^^^^^^^^ could not find `rustc_serialize` in the list of imported crates
  |
  = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info)

warning: use of deprecated macro `RustcEncodable`: rustc-serialize is deprecated and no longer supported
 --> src/deriving/encodable.rs:44:10
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |          ^^^^^^^^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default

warning: use of deprecated macro `RustcDecodable`: rustc-serialize is deprecated and no longer supported
 --> src/deriving/encodable.rs:44:26
  |
3 | #[derive(RustcEncodable, RustcDecodable)]
  |                          ^^^^^^^^^^^^^^

warning: use of deprecated macro `RustcEncodable`: rustc-serialize is deprecated and no longer supported
 --> src/deriving/encodable.rs:46:10
  |
5 | #[derive(RustcEncodable, RustcDecodable)]
  |          ^^^^^^^^^^^^^^

warning: use of deprecated macro `RustcDecodable`: rustc-serialize is deprecated and no longer supported
 --> src/deriving/encodable.rs:46:26
  |
5 | #[derive(RustcEncodable, RustcDecodable)]
  |                          ^^^^^^^^^^^^^^

error: aborting due to 8 previous errors; 4 warnings emitted

For more information about this error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/deriving/generic/mod.rs - deriving::generic::MethodDef::expand_enum_method_body (line 1118) stdout ----
error[E0416]: identifier `A1` is bound more than once in the same pattern
  --> src/deriving/generic/mod.rs:1131:20
   |
15 |             (&A1, &A1) => true,
   |                    ^^ used in a pattern more than once

error[E0412]: cannot find crate `bool` in the list of imported crates
  --> src/deriving/generic/mod.rs:1129:34
   |
13 |     fn eq(&self, other: &A) -> ::bool {
   |                                  ^^^^ not found in the list of imported crates
   |
help: consider importing one of these items
   |
2  | use core::primitive::bool;
   |
2  | use std::primitive::bool;
   |

error[E0531]: cannot find tuple struct or tuple variant `A2` in this scope
  --> src/deriving/generic/mod.rs:1132:15
   |
16 |             (&A2(ref self_0),
   |               ^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `A2` in this scope
  --> src/deriving/generic/mod.rs:1133:15
   |
17 |              &A2(ref __arg_1_0)) => (*self_0).eq(&(*__arg_1_0)),
   |               ^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `A1` in this scope
  --> src/deriving/generic/mod.rs:1135:47
   |
19 |                 let __self_vi = match *self { A1(..) => 0, A2(..) => 1 };
   |                                               ^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `A2` in this scope
  --> src/deriving/generic/mod.rs:1135:60
   |
19 |                 let __self_vi = match *self { A1(..) => 0, A2(..) => 1 };
   |                                                            ^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `A1` in this scope
  --> src/deriving/generic/mod.rs:1136:49
   |
20 |                 let __arg_1_vi = match *other { A1(..) => 0, A2(..) => 1 };
   |                                                 ^^ not found in this scope

error[E0531]: cannot find tuple struct or tuple variant `A2` in this scope
  --> src/deriving/generic/mod.rs:1136:62
   |
20 |                 let __arg_1_vi = match *other { A1(..) => 0, A2(..) => 1 };
   |                                                              ^^ not found in this scope

error: aborting due to 8 previous errors

Some errors have detailed explanations: E0412, E0416, E0531.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/test_harness.rs - test_harness::mk_main (line 252) stdout ----
error[E0425]: cannot find value `test_const1` in this scope
 --> src/test_harness.rs:257:10
  |
6 |         &test_const1,
  |          ^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `test_const2` in this scope
 --> src/test_harness.rs:258:10
  |
7 |         &test_const2,
  |          ^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `test_const3` in this scope
 --> src/test_harness.rs:259:10
  |
8 |         &test_const3,
  |          ^^^^^^^^^^^ not found in this scope

error[E0658]: the `#[rustc_main]` attribute is used internally to specify test entry point function
 --> src/test_harness.rs:253:1
  |
2 | #[rustc_main]
  | ^^^^^^^^^^^^^
  |
  = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'test'
 --> src/test_harness.rs:256:5
  |
5 |     test::test_main_static(&[
  |     ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #50297 <https://github.com/rust-lang/rust/issues/50297> for more information
  = help: add `#![feature(test)]` to the crate attributes to enable

error[E0658]: use of unstable library feature 'test'
 --> src/test_harness.rs:255:5
  |
4 |     extern crate test;
  |     ^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #50297 <https://github.com/rust-lang/rust/issues/50297> for more information
  = help: add `#![feature(test)]` to the crate attributes to enable

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0425, E0658.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.

failures:
    src/deriving/encodable.rs - deriving::encodable (line 15)
    src/deriving/encodable.rs - deriving::encodable (line 43)
    src/deriving/encodable.rs - deriving::encodable (line 52)
    src/deriving/encodable.rs - deriving::encodable (line 8)
    src/deriving/generic/mod.rs - deriving::generic::MethodDef::expand_enum_method_body (line 1118)
    src/deriving/generic/mod.rs - deriving::generic::MethodDef::expand_struct_method_body (line 990)
    src/test_harness.rs - test_harness::mk_main (line 252)

test result: FAILED. 2 passed; 7 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.20s

error: test failed, to rerun pass '--doc'
	finished in 0.546 seconds
Testing rustc_codegen_llvm stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_codegen_llvm

running 4 tests
FFF.
failures:

---- src/back/lto.rs - back::lto::thin_lto (line 397) stdout ----
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `Prepare`
 --> src/back/lto.rs:398:4
  |
3 | 1. Prepare a "summary" of each LLVM module in question which describes
  |    ^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to previous error

Couldn't compile the test.
---- src/debuginfo/mod.rs - debuginfo (line 31) stdout ----
error[E0425]: cannot find function `file_metadata` in this scope
 --> src/debuginfo/mod.rs:32:21
  |
3 | let file_metadata = file_metadata(cx, file);
  |                     ^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `cx` in this scope
 --> src/debuginfo/mod.rs:32:35
  |
3 | let file_metadata = file_metadata(cx, file);
  |                                   ^^ not found in this scope
  |
help: consider importing this unit variant
  |
2 | use rustc_target::asm::X86InlineAsmReg::cx;
  |

error[E0423]: expected value, found macro `file`
 --> src/debuginfo/mod.rs:32:39
  |
3 | let file_metadata = file_metadata(cx, file);
  |                                       ^^^^ not a value
  |
help: consider importing this constant instead
  |
2 | use rustc_span::sym::file;
  |

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0423, E0425.
For more information about an error, try `rustc --explain E0423`.
Couldn't compile the test.
---- src/debuginfo/mod.rs - debuginfo (line 66) stdout ----
error: expected `;`, found `describe`
 --> src/debuginfo/mod.rs:67:19
  |
3 | describe(t = List)
  |                   ^ help: add `;` here
4 |   describe(t = i32)
  |   -------- unexpected token

error: expected `;`, found `describe`
 --> src/debuginfo/mod.rs:68:20
  |
4 |   describe(t = i32)
  |                    ^ help: add `;` here
5 |   describe(t = Option<Box<List>>)
  |   -------- unexpected token

error: comparison operators cannot be chained
 --> src/debuginfo/mod.rs:69:22
  |
5 |   describe(t = Option<Box<List>>)
  |                      ^   ^
  |
  = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
  = help: or use `(...)` if you meant to specify fn arguments
help: split the comparison into two
  |
5 |   describe(t = Option<Box && Box<List>>)
  |                           ++++++

error: expected `;`, found `describe`
 --> src/debuginfo/mod.rs:69:34
  |
5 |   describe(t = Option<Box<List>>)
  |                                  ^ help: add `;` here
6 |     describe(t = Box<List>)
  |     -------- unexpected token

error: comparison operators cannot be chained
 --> src/debuginfo/mod.rs:70:21
  |
6 |     describe(t = Box<List>)
  |                     ^    ^
  |
  = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
  = help: or use `(...)` if you meant to specify fn arguments

error: expected `;`, found `describe`
 --> src/debuginfo/mod.rs:70:28
  |
6 |     describe(t = Box<List>)
  |                            ^ help: add `;` here
7 |       describe(t = List) // at the beginning again...
  |       -------- unexpected token

error: unexpected token: `...`
 --> src/debuginfo/mod.rs:72:7
  |
8 |       ...
  |       ^^^
  |
help: use `..` for an exclusive range
  |
8 |       ..
  |
help: or `..=` for an inclusive range
  |
8 |       ..=
  |

error[E0586]: inclusive range with no end
 --> src/debuginfo/mod.rs:72:7
  |
8 |       ...
  |       ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0425]: cannot find function `describe` in this scope
 --> src/debuginfo/mod.rs:67:1
  |
3 | describe(t = List)
  | ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `t` in this scope
 --> src/debuginfo/mod.rs:67:10
  |
3 | describe(t = List)
  |          ^ not found in this scope

error[E0425]: cannot find value `List` in this scope
 --> src/debuginfo/mod.rs:67:14
  |
3 | describe(t = List)
  |              ^^^^ not found in this scope
  |
help: consider importing this tuple variant
  |
2 | use rustc_ast::MetaItemKind::List;
  |

error[E0425]: cannot find function `describe` in this scope
 --> src/debuginfo/mod.rs:68:3
  |
4 |   describe(t = i32)
  |   ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `t` in this scope
 --> src/debuginfo/mod.rs:68:12
  |
4 |   describe(t = i32)
  |            ^ not found in this scope

error[E0423]: expected value, found builtin type `i32`
 --> src/debuginfo/mod.rs:68:16
  |
4 |   describe(t = i32)
  |                ^^^ not a value
  |
help: consider importing this constant instead
  |
2 | use rustc_span::sym::i32;
  |

error: aborting due to 14 previous errors

Some errors have detailed explanations: E0423, E0425, E0586.
For more information about an error, try `rustc --explain E0423`.
Couldn't compile the test.

failures:
    src/back/lto.rs - back::lto::thin_lto (line 397)
    src/debuginfo/mod.rs - debuginfo (line 31)
    src/debuginfo/mod.rs - debuginfo (line 66)

test result: FAILED. 1 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s

error: test failed, to rerun pass '--doc'
	finished in 0.739 seconds
Testing rustc_codegen_ssa stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_codegen_ssa

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.554 seconds
Testing rustc_const_eval stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_const_eval

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.621 seconds
Testing rustc_data_structures stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_data_structures

running 25 tests
F.FFFFFFFFFFFFFFFFFFFFF.F
failures:

---- src/obligation_forest/mod.rs - obligation_forest::NodeState (line 205) stdout ----
error: expected one of `)`, `,`, `@`, or `|`, found `by`
 --> src/obligation_forest/mod.rs:208:41
  |
5 |  |     register_obligation_at() (called by process_obligations() and
  |                                        -^^ expected one of `)`, `,`, `@`, or `|`
  |                                        |
  |                                        help: missing `,`

error: expected one of `)`, `,`, `@`, or `|`, found `process_obligations`
 --> src/obligation_forest/mod.rs:208:44
  |
5 |  |     register_obligation_at() (called by process_obligations() and
  |                                           -^^^^^^^^^^^^^^^^^^^ expected one of `)`, `,`, `@`, or `|`
  |                                           |
  |                                           help: missing `,`

error: expected one of `)`, `,`, or `|`, found `and`
 --> src/obligation_forest/mod.rs:208:66
  |
5 |  |     register_obligation_at() (called by process_obligations() and
  |                                                                 -^^^ expected one of `)`, `,`, or `|`
  |                                                                 |
  |                                                                 help: missing `,`

error: expected one of `)`, `,`, `@`, or `|`, found `v`
 --> src/obligation_forest/mod.rs:209:2
  |
5 |  |     register_obligation_at() (called by process_obligations() and
  |                                                                     -
  |                                                                     |
  |                                                                     expected one of `)`, `,`, `@`, or `|`
  |                                                                     help: missing `,`
6 |  v                               from outside the crate)
  |  ^ unexpected token

error: expected one of `)`, `,`, `@`, or `|`, found `from`
 --> src/obligation_forest/mod.rs:209:34
  |
6 |  v                               from outside the crate)
  |   - help: missing `,`            ^^^^ expected one of `)`, `,`, `@`, or `|`

error: expected one of `)`, `,`, `@`, or `|`, found `outside`
 --> src/obligation_forest/mod.rs:209:39
  |
6 |  v                               from outside the crate)
  |                                      -^^^^^^^ expected one of `)`, `,`, `@`, or `|`
  |                                      |
  |                                      help: missing `,`

error: expected one of `)`, `,`, `@`, or `|`, found `the`
 --> src/obligation_forest/mod.rs:209:47
  |
6 |  v                               from outside the crate)
  |                                              -^^^ expected one of `)`, `,`, `@`, or `|`
  |                                              |
  |                                              help: missing `,`

error: expected one of `)`, `,`, `@`, or `|`, found keyword `crate`
 --> src/obligation_forest/mod.rs:209:51
  |
6 |  v                               from outside the crate)
  |                                                  -^^^^^ expected one of `)`, `,`, `@`, or `|`
  |                                                  |
  |                                                  help: missing `,`

error: expected one of `,` or `:`, found `(`
 --> src/obligation_forest/mod.rs:208:33
  |
5 |  |     register_obligation_at() (called by process_obligations() and
  |                                -^ expected one of `,` or `:`
  |                                |
  |                                help: missing `,`

error: expected one of `,` or `:`, found `Pending`
 --> src/obligation_forest/mod.rs:210:1
  |
6 |  v                               from outside the crate)
  |                                                         -
  |                                                         |
  |                                                         expected one of `,` or `:`
  |                                                         help: missing `,`
7 | Pending
  | ^^^^^^^ unexpected token

error: expected one of `,` or `:`, found `v`
  --> src/obligation_forest/mod.rs:213:2
   |
9  |  |     process_obligations()
   |                             -
   |                             |
   |                             expected one of `,` or `:`
   |                             help: missing `,`
10 |  v
   |  ^ unexpected token

error: expected one of `,`, `:`, or `@`, found `Success`
  --> src/obligation_forest/mod.rs:214:1
   |
10 |  v
   |   -
   |   |
   |   expected one of `,`, `:`, or `@`
   |   help: missing `,`
11 | Success
   | ^^^^^^^ unexpected token

error: expected expression, found `^`
  --> src/obligation_forest/mod.rs:215:5
   |
12 |  |  ^
   |     ^ expected expression

error: aborting due to 13 previous errors

Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref (line 119) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:120:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `StringRef`
   --> src/owning_ref/mod.rs:124:13
    |
6   |     let s = StringRef::new("hello world".to_owned())
    |             ^^^^^^^^^
    |
   ::: /home/jnelson/rust-lang/rust/library/alloc/src/string.rs:366:1
    |
366 | pub struct String {
    | ----------------- similarly named struct `String` defined here
    |
help: a struct with a similar name exists
    |
6   |     let s = String::new("hello world".to_owned())
    |             ~~~~~~
help: consider importing this type alias
    |
3   | use rustc_data_structures::owning_ref::StringRef;
    |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/frozen.rs - frozen (line 26) stdout ----
error[E0412]: cannot find type `Bar` in this scope
 --> src/frozen.rs:31:26
  |
6 | struct Foo {
  |           - help: you might be missing a type parameter: `<Bar>`
7 |     /// Some computed data that should never change after construction.
8 |     pub computed: Frozen<Bar>,
  |                          ^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref (line 107) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:108:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `VecRef`
 --> src/owning_ref/mod.rs:112:13
  |
6 |     let v = VecRef::new(vec![1, 2, 3, 4, 5]).map(|v| &v[3]);
  |             ^^^^^^ not found in this scope
  |
help: consider importing this type alias
  |
3 | use rustc_data_structures::owning_ref::VecRef;
  |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref (line 133) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:134:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0412]: cannot find type `RcRef` in this scope
 --> src/owning_ref/mod.rs:139:13
  |
7 |     let rc: RcRef<[i32]> = RcRef::new(Rc::new([1, 2, 3, 4]) as Rc<[i32]>);
  |             ^^^^^ not found in this scope
  |
help: consider importing this type alias
  |
3 | use rustc_data_structures::owning_ref::RcRef;
  |

error[E0433]: failed to resolve: use of undeclared type `RcRef`
 --> src/owning_ref/mod.rs:139:28
  |
7 |     let rc: RcRef<[i32]> = RcRef::new(Rc::new([1, 2, 3, 4]) as Rc<[i32]>);
  |                            ^^^^^ not found in this scope
  |
help: consider importing this type alias
  |
3 | use rustc_data_structures::owning_ref::RcRef;
  |

error[E0412]: cannot find type `RcRef` in this scope
  --> src/owning_ref/mod.rs:142:15
   |
10 |     let rc_a: RcRef<[i32]> = rc.clone().map(|s| &s[0..2]);
   |               ^^^^^ not found in this scope
   |
help: consider importing this type alias
   |
3  | use rustc_data_structures::owning_ref::RcRef;
   |

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0412, E0433, E0463.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref (line 156) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:157:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0412]: cannot find type `ArcRef` in this scope
   --> src/owning_ref/mod.rs:164:20
    |
9   |     fn par_sum(rc: ArcRef<[i32]>) -> i32 {
    |                    ^^^^^^
    |
   ::: /home/jnelson/rust-lang/rust/library/core/src/convert/mod.rs:156:1
    |
156 | pub trait AsRef<T: ?Sized> {
    | -------------------------- similarly named trait `AsRef` defined here
    |
help: a trait with a similar name exists
    |
9   |     fn par_sum(rc: AsRef<[i32]>) -> i32 {
    |                    ~~~~~
help: consider importing this type alias
    |
3   | use rustc_data_structures::owning_ref::ArcRef;
    |

error[E0412]: cannot find type `ArcRef` in this scope
   --> src/owning_ref/mod.rs:181:13
    |
26  |     let rc: ArcRef<[i32]> = rc.into();
    |             ^^^^^^
    |
   ::: /home/jnelson/rust-lang/rust/library/core/src/convert/mod.rs:156:1
    |
156 | pub trait AsRef<T: ?Sized> {
    | -------------------------- similarly named trait `AsRef` defined here
    |
help: a trait with a similar name exists
    |
26  |     let rc: AsRef<[i32]> = rc.into();
    |             ~~~~~
help: consider importing this type alias
    |
3   | use rustc_data_structures::owning_ref::ArcRef;
    |

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0412, E0463.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref (line 189) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:190:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `RefRef`
  --> src/owning_ref/mod.rs:199:22
   |
11 |         let refref = RefRef::new(refcell.borrow()).map(|x| &x.3);
   |                      ^^^^^^ not found in this scope
   |
help: consider importing this type alias
   |
3  | use rustc_data_structures::owning_ref::RefRef;
   |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref (line 220) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:221:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `RefMutRefMut`
  --> src/owning_ref/mod.rs:229:33
   |
10 |         let mut refmut_refmut = RefMutRefMut::new(refcell.borrow_mut()).map_mut(|x| &mut x.3);
   |                                 ^^^^^^^^^^^^ not found in this scope
   |
help: consider importing this type alias
   |
3  | use rustc_data_structures::owning_ref::RefMutRefMut;
   |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref (line 27) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:28:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0412]: cannot find type `OwningRef` in this scope
 --> src/owning_ref/mod.rs:31:37
  |
5 | fn return_owned_and_referenced() -> OwningRef<Vec<u8>, [u8]> {
  |                                     ^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRef;
  |

error[E0433]: failed to resolve: use of undeclared type `OwningRef`
 --> src/owning_ref/mod.rs:33:14
  |
7 |     let or = OwningRef::new(v);
  |              ^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRef;
  |

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0412, E0433, E0463.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref (line 57) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:58:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0412]: cannot find type `BoxRef` in this scope
  --> src/owning_ref/mod.rs:66:14
   |
10 |     let arr: BoxRef<[i32]> = BoxRef::new(arr);
   |              ^^^^^^ not found in this scope
   |
help: consider importing this type alias
   |
3  | use rustc_data_structures::owning_ref::BoxRef;
   |

error[E0433]: failed to resolve: use of undeclared type `BoxRef`
  --> src/owning_ref/mod.rs:66:30
   |
10 |     let arr: BoxRef<[i32]> = BoxRef::new(arr);
   |                              ^^^^^^ not found in this scope
   |
help: consider importing this type alias
   |
3  | use rustc_data_structures::owning_ref::BoxRef;
   |

error[E0412]: cannot find type `BoxRef` in this scope
  --> src/owning_ref/mod.rs:70:14
   |
14 |     let arr: BoxRef<[i32]> = arr.map(|arr| &arr[1..3]);
   |              ^^^^^^ not found in this scope
   |
help: consider importing this type alias
   |
3  | use rustc_data_structures::owning_ref::BoxRef;
   |

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0412, E0433, E0463.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref (line 79) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:80:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `BoxRef`
  --> src/owning_ref/mod.rs:92:14
   |
14 |     let or = BoxRef::new(Box::new(foo)).map(|foo| {
   |              ^^^^^^ not found in this scope
   |
help: consider importing this type alias
   |
3  | use rustc_data_structures::owning_ref::BoxRef;
   |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref::OwningRef<O,T>::map (line 364) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:365:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `OwningRef`
 --> src/owning_ref/mod.rs:369:22
  |
6 |     let owning_ref = OwningRef::new(Box::new([1, 2, 3, 4]));
  |                      ^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRef;
  |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref::OwningRef<O,T>::erase_owner (line 443) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:444:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0412]: cannot find type `OwningRef` in this scope
 --> src/owning_ref/mod.rs:451:23
  |
9 |     let owning_ref_a: OwningRef<Box<[i32; 4]>, [i32; 4]>
  |                       ^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRef;
  |

error[E0433]: failed to resolve: use of undeclared type `OwningRef`
  --> src/owning_ref/mod.rs:452:11
   |
10 |         = OwningRef::new(Box::new([1, 2, 3, 4]));
   |           ^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRef;
   |

error[E0412]: cannot find type `OwningRef` in this scope
  --> src/owning_ref/mod.rs:454:23
   |
12 |     let owning_ref_b: OwningRef<Box<Vec<(i32, bool)>>, Vec<(i32, bool)>>
   |                       ^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRef;
   |

error[E0433]: failed to resolve: use of undeclared type `OwningRef`
  --> src/owning_ref/mod.rs:455:11
   |
13 |         = OwningRef::new(Box::new(vec![(0, false), (1, true)]));
   |           ^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRef;
   |

error[E0412]: cannot find type `OwningRef` in this scope
  --> src/owning_ref/mod.rs:457:23
   |
15 |     let owning_ref_a: OwningRef<Box<[i32; 4]>, i32>
   |                       ^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRef;
   |

error[E0412]: cannot find type `OwningRef` in this scope
  --> src/owning_ref/mod.rs:460:23
   |
18 |     let owning_ref_b: OwningRef<Box<Vec<(i32, bool)>>, i32>
   |                       ^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRef;
   |

error[E0412]: cannot find type `OwningRef` in this scope
  --> src/owning_ref/mod.rs:463:23
   |
21 |     let owning_refs: [OwningRef<Box<Erased>, i32>; 2]
   |                       ^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRef;
   |

error[E0412]: cannot find type `Erased` in this scope
  --> src/owning_ref/mod.rs:463:37
   |
21 |     let owning_refs: [OwningRef<Box<Erased>, i32>; 2]
   |                                     ^^^^^^ not found in this scope
   |
help: consider importing this trait
   |
3  | use rustc_data_structures::owning_ref::Erased;
   |

error: aborting due to 9 previous errors

Some errors have detailed explanations: E0412, E0433, E0463.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref::OwningRef<O,T>::try_map (line 392) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:393:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `OwningRef`
 --> src/owning_ref/mod.rs:397:22
  |
6 |     let owning_ref = OwningRef::new(Box::new([1, 2, 3, 4]));
  |                      ^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRef;
  |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref::OwningRef<O,T>::new (line 328) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:329:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `OwningRef`
 --> src/owning_ref/mod.rs:333:22
  |
6 |     let owning_ref = OwningRef::new(Box::new(42));
  |                      ^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRef;
  |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::map (line 554) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:555:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `OwningRefMut`
 --> src/owning_ref/mod.rs:559:26
  |
6 |     let owning_ref_mut = OwningRefMut::new(Box::new([1, 2, 3, 4]));
  |                          ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRefMut;
  |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::map_mut (line 582) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:583:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `OwningRefMut`
 --> src/owning_ref/mod.rs:587:26
  |
6 |     let owning_ref_mut = OwningRefMut::new(Box::new([1, 2, 3, 4]));
  |                          ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRefMut;
  |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::new (line 518) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:519:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `OwningRefMut`
 --> src/owning_ref/mod.rs:523:26
  |
6 |     let owning_ref_mut = OwningRefMut::new(Box::new(42));
  |                          ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRefMut;
  |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::erase_owner (line 691) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:692:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0412]: cannot find type `OwningRefMut` in this scope
 --> src/owning_ref/mod.rs:699:27
  |
9 |     let owning_ref_mut_a: OwningRefMut<Box<[i32; 4]>, [i32; 4]>
  |                           ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRefMut;
  |

error[E0433]: failed to resolve: use of undeclared type `OwningRefMut`
  --> src/owning_ref/mod.rs:700:11
   |
10 |         = OwningRefMut::new(Box::new([1, 2, 3, 4]));
   |           ^^^^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRefMut;
   |

error[E0412]: cannot find type `OwningRefMut` in this scope
  --> src/owning_ref/mod.rs:702:27
   |
12 |     let owning_ref_mut_b: OwningRefMut<Box<Vec<(i32, bool)>>, Vec<(i32, bool)>>
   |                           ^^^^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRefMut;
   |

error[E0433]: failed to resolve: use of undeclared type `OwningRefMut`
  --> src/owning_ref/mod.rs:703:11
   |
13 |         = OwningRefMut::new(Box::new(vec![(0, false), (1, true)]));
   |           ^^^^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRefMut;
   |

error[E0412]: cannot find type `OwningRefMut` in this scope
  --> src/owning_ref/mod.rs:705:27
   |
15 |     let owning_ref_mut_a: OwningRefMut<Box<[i32; 4]>, i32>
   |                           ^^^^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRefMut;
   |

error[E0412]: cannot find type `OwningRefMut` in this scope
  --> src/owning_ref/mod.rs:708:27
   |
18 |     let owning_ref_mut_b: OwningRefMut<Box<Vec<(i32, bool)>>, i32>
   |                           ^^^^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRefMut;
   |

error[E0412]: cannot find type `OwningRefMut` in this scope
  --> src/owning_ref/mod.rs:711:27
   |
21 |     let owning_refs_mut: [OwningRefMut<Box<Erased>, i32>; 2]
   |                           ^^^^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
3  | use rustc_data_structures::owning_ref::OwningRefMut;
   |

error[E0412]: cannot find type `Erased` in this scope
  --> src/owning_ref/mod.rs:711:44
   |
21 |     let owning_refs_mut: [OwningRefMut<Box<Erased>, i32>; 2]
   |                                            ^^^^^^ not found in this scope
   |
help: consider importing this trait
   |
3  | use rustc_data_structures::owning_ref::Erased;
   |

error: aborting due to 9 previous errors

Some errors have detailed explanations: E0412, E0433, E0463.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/tagged_ptr.rs - tagged_ptr::Pointer::BITS (line 48) stdout ----
error[E0433]: failed to resolve: use of undeclared type `Deref`
 --> src/tagged_ptr.rs:49:31
  |
3 | std::mem::align_of::<<Self as Deref>::Target>().trailing_zeros() as usize;
  |                               ^^^^^ use of undeclared type `Deref`

error[E0411]: cannot find type `Self` in this scope
 --> src/tagged_ptr.rs:49:23
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_tagged_ptr_rs_48_0() {
  |                                                                             - help: you might be missing a type parameter: `<Self>`
3 | std::mem::align_of::<<Self as Deref>::Target>().trailing_zeros() as usize;
  |                       ^^^^ `Self` is only available in impls, traits, and type definitions

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0411, E0433.
For more information about an error, try `rustc --explain E0411`.
Couldn't compile the test.
---- src/transitive_relation.rs - transitive_relation::TransitiveRelation<T>::parents (line 285) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `->`
 --> src/transitive_relation.rs:286:3
  |
3 | a -> b -> d -> f
  |   ^^ expected one of 8 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::try_map (line 610) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:611:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `OwningRefMut`
 --> src/owning_ref/mod.rs:615:26
  |
6 |     let owning_ref_mut = OwningRefMut::new(Box::new([1, 2, 3, 4]));
  |                          ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRefMut;
  |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::try_map_mut (line 640) stdout ----
error[E0463]: can't find crate for `owning_ref`
 --> src/owning_ref/mod.rs:641:1
  |
2 | extern crate owning_ref;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error[E0433]: failed to resolve: use of undeclared type `OwningRefMut`
 --> src/owning_ref/mod.rs:645:26
  |
6 |     let owning_ref_mut = OwningRefMut::new(Box::new([1, 2, 3, 4]));
  |                          ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
3 | use rustc_data_structures::owning_ref::OwningRefMut;
  |

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0433, E0463.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.

failures:
    src/frozen.rs - frozen (line 26)
    src/obligation_forest/mod.rs - obligation_forest::NodeState (line 205)
    src/owning_ref/mod.rs - owning_ref (line 107)
    src/owning_ref/mod.rs - owning_ref (line 119)
    src/owning_ref/mod.rs - owning_ref (line 133)
    src/owning_ref/mod.rs - owning_ref (line 156)
    src/owning_ref/mod.rs - owning_ref (line 189)
    src/owning_ref/mod.rs - owning_ref (line 220)
    src/owning_ref/mod.rs - owning_ref (line 27)
    src/owning_ref/mod.rs - owning_ref (line 57)
    src/owning_ref/mod.rs - owning_ref (line 79)
    src/owning_ref/mod.rs - owning_ref::OwningRef<O,T>::erase_owner (line 443)
    src/owning_ref/mod.rs - owning_ref::OwningRef<O,T>::map (line 364)
    src/owning_ref/mod.rs - owning_ref::OwningRef<O,T>::new (line 328)
    src/owning_ref/mod.rs - owning_ref::OwningRef<O,T>::try_map (line 392)
    src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::erase_owner (line 691)
    src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::map (line 554)
    src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::map_mut (line 582)
    src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::new (line 518)
    src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::try_map (line 610)
    src/owning_ref/mod.rs - owning_ref::OwningRefMut<O,T>::try_map_mut (line 640)
    src/tagged_ptr.rs - tagged_ptr::Pointer::BITS (line 48)
    src/transitive_relation.rs - transitive_relation::TransitiveRelation<T>::parents (line 285)

test result: FAILED. 2 passed; 23 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.28s

error: test failed, to rerun pass '--doc'
	finished in 0.617 seconds
Testing rustc_driver stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
warning: doc tests are not supported for crate type(s) `dylib` in package `rustc_driver`
error: no library targets found in package `rustc_driver`
	finished in 0.131 seconds
Testing rustc_error_codes stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.11s
   Doc-tests rustc_error_codes

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.164 seconds
Testing rustc_error_messages stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_error_messages

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.207 seconds
Testing rustc_errors stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_errors

running 2 tests
FF
failures:

---- src/lib.rs - CodeSuggestion::substitutions (line 146) stdout ----
error[E0422]: cannot find struct, variant or union type `Substitution` in this scope
 --> src/lib.rs:148:5
  |
4 |     Substitution { parts: vec![(0..7, "a.b")] },
  |     ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use rustc_errors::Substitution;
  |

error[E0422]: cannot find struct, variant or union type `Substitution` in this scope
 --> src/lib.rs:149:5
  |
5 |     Substitution { parts: vec![(0..7, "x.y")] },
  |     ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use rustc_errors::Substitution;
  |

error[E0308]: mismatched types
 --> src/lib.rs:147:1
  |
2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_146_0() {
  |                                                                            - help: a return type might be missing here: `-> _`
3 | / vec![
4 | |     Substitution { parts: vec![(0..7, "a.b")] },
5 | |     Substitution { parts: vec![(0..7, "x.y")] },
6 | | ]
  | |_^ expected `()`, found struct `Vec`
  |
  = note: expected unit type `()`
                found struct `Vec<_, _>`
  = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0308, E0422.
For more information about an error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/lib.rs - CodeSuggestion::substitutions (line 137) stdout ----
error[E0422]: cannot find struct, variant or union type `Substitution` in this scope
 --> src/lib.rs:139:5
  |
4 |     Substitution { parts: vec![(0..3, "a"), (4..7, "b")] },
  |     ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use rustc_errors::Substitution;
  |

error[E0422]: cannot find struct, variant or union type `Substitution` in this scope
 --> src/lib.rs:140:5
  |
5 |     Substitution { parts: vec![(0..3, "x"), (4..7, "y")] },
  |     ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use rustc_errors::Substitution;
  |

error[E0308]: mismatched types
 --> src/lib.rs:138:1
  |
2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_137_0() {
  |                                                                            - help: a return type might be missing here: `-> _`
3 | / vec![
4 | |     Substitution { parts: vec![(0..3, "a"), (4..7, "b")] },
5 | |     Substitution { parts: vec![(0..3, "x"), (4..7, "y")] },
6 | | ]
  | |_^ expected `()`, found struct `Vec`
  |
  = note: expected unit type `()`
                found struct `Vec<_, _>`
  = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0308, E0422.
For more information about an error, try `rustc --explain E0308`.
Couldn't compile the test.

failures:
    src/lib.rs - CodeSuggestion::substitutions (line 137)
    src/lib.rs - CodeSuggestion::substitutions (line 146)

test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s

error: test failed, to rerun pass '--doc'
	finished in 0.639 seconds
Testing rustc_expand stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_expand

running 11 tests
FFF........
failures:

---- src/mbe/macro_check.rs - mbe::macro_check (line 7) stdout ----
error: duplicate matcher binding
 --> src/mbe/macro_check.rs:8:27
  |
3 | macro_rules! foo { ($x:tt $x:tt) => { $x }; }
  |                     ----- ^^^^^ duplicate binding
  |                     |
  |                     previous binding

error: aborting due to previous error

Couldn't compile the test.
---- src/mbe/macro_check.rs - mbe::macro_check::ops_is_prefix (line 608) stdout ----
error: expected expression, found `$`
 --> src/mbe/macro_check.rs:609:3
  |
3 | ( $( $i:ident = $($j:ident),+ );* ) => { $($( $i += $j; )+)* }
  |   ^ expected expression

error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>`
 --> src/mbe/macro_check.rs:609:37
  |
3 | ( $( $i:ident = $($j:ident),+ );* ) => { $($( $i += $j; )+)* }
  |                                     ^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/mbe/macro_parser.rs - mbe::macro_parser::NamedMatch (line 322) stdout ----
error[E0425]: cannot find function, tuple struct or tuple variant `MatchedSeq` in this scope
 --> src/mbe/macro_parser.rs:323:1
  |
3 | MatchedSeq([
  | ^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedSeq` in this scope
 --> src/mbe/macro_parser.rs:324:3
  |
4 |   MatchedSeq([
  |   ^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedNonterminal` in this scope
 --> src/mbe/macro_parser.rs:325:5
  |
5 |     MatchedNonterminal(a),
  |     ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `a` in this scope
 --> src/mbe/macro_parser.rs:325:24
  |
5 |     MatchedNonterminal(a),
  |                        ^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedNonterminal` in this scope
 --> src/mbe/macro_parser.rs:326:5
  |
6 |     MatchedNonterminal(b),
  |     ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `b` in this scope
 --> src/mbe/macro_parser.rs:326:24
  |
6 |     MatchedNonterminal(b),
  |                        ^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedNonterminal` in this scope
 --> src/mbe/macro_parser.rs:327:5
  |
7 |     MatchedNonterminal(c),
  |     ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `c` in this scope
 --> src/mbe/macro_parser.rs:327:24
  |
7 |     MatchedNonterminal(c),
  |                        ^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedNonterminal` in this scope
 --> src/mbe/macro_parser.rs:328:5
  |
8 |     MatchedNonterminal(d),
  |     ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `d` in this scope
 --> src/mbe/macro_parser.rs:328:24
  |
8 |     MatchedNonterminal(d),
  |                        ^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::d;
  |

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedSeq` in this scope
  --> src/mbe/macro_parser.rs:330:3
   |
10 |   MatchedSeq([
   |   ^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedNonterminal` in this scope
  --> src/mbe/macro_parser.rs:331:5
   |
11 |     MatchedNonterminal(a),
   |     ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `a` in this scope
  --> src/mbe/macro_parser.rs:331:24
   |
11 |     MatchedNonterminal(a),
   |                        ^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedNonterminal` in this scope
  --> src/mbe/macro_parser.rs:332:5
   |
12 |     MatchedNonterminal(b),
   |     ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `b` in this scope
  --> src/mbe/macro_parser.rs:332:24
   |
12 |     MatchedNonterminal(b),
   |                        ^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedNonterminal` in this scope
  --> src/mbe/macro_parser.rs:333:5
   |
13 |     MatchedNonterminal(c),
   |     ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `c` in this scope
  --> src/mbe/macro_parser.rs:333:24
   |
13 |     MatchedNonterminal(c),
   |                        ^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedNonterminal` in this scope
  --> src/mbe/macro_parser.rs:334:5
   |
14 |     MatchedNonterminal(d),
   |     ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `d` in this scope
  --> src/mbe/macro_parser.rs:334:24
   |
14 |     MatchedNonterminal(d),
   |                        ^ not found in this scope
   |
help: consider importing this constant
   |
2  | use rustc_span::sym::d;
   |

error[E0425]: cannot find function, tuple struct or tuple variant `MatchedNonterminal` in this scope
  --> src/mbe/macro_parser.rs:335:5
   |
15 |     MatchedNonterminal(e),
   |     ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `e` in this scope
  --> src/mbe/macro_parser.rs:335:24
   |
15 |     MatchedNonterminal(e),
   |                        ^ not found in this scope
   |
help: consider importing this constant
   |
2  | use rustc_span::sym::e;
   |

error: aborting due to 21 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.

failures:
    src/mbe/macro_check.rs - mbe::macro_check (line 7)
    src/mbe/macro_check.rs - mbe::macro_check::ops_is_prefix (line 608)
    src/mbe/macro_parser.rs - mbe::macro_parser::NamedMatch (line 322)

test result: FAILED. 8 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s

error: test failed, to rerun pass '--doc'
	finished in 0.718 seconds
Testing rustc_feature stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_feature

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.228 seconds
Testing rustc_fs_util stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_fs_util

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.151 seconds
Testing rustc_graphviz stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_graphviz

running 6 tests
......
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.37s

	finished in 0.525 seconds
Testing rustc_hir stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_hir

running 11 tests
iiFFFFF....
failures:

---- src/hir.rs - hir::ParamName::Fresh (line 53) stdout ----
error: expected one of `!`, `(`, `::`, `<`, `where`, or `{`, found keyword `impl`
 --> src/hir.rs:55:1
  |
3 | impl Foo for &u32
  |                  - expected one of `!`, `(`, `::`, `<`, `where`, or `{`
4 | impl Foo<'_> for u32
  | ^^^^ unexpected token

error: aborting due to previous error

Couldn't compile the test.
---- src/hir.rs - hir::ParamName::Fresh (line 58) stdout ----
error: expected one of `!`, `(`, `::`, `<`, `where`, or `{`, found keyword `impl`
 --> src/hir.rs:60:1
  |
3 | impl<'f> Foo for &'f u32
  |                         - expected one of `!`, `(`, `::`, `<`, `where`, or `{`
4 | impl<'f> Foo<'f> for u32
  | ^^^^ unexpected token

error: aborting due to previous error

Couldn't compile the test.
---- src/hir.rs - hir::TypeBinding (line 2151) stdout ----
error[E0743]: C-variadic type `...` may not be nested inside another type
 --> src/hir.rs:2153:11
  |
4 |    Equals(...),
  |           ^^^

error[E0743]: C-variadic type `...` may not be nested inside another type
 --> src/hir.rs:2154:12
  |
5 |    Binding(...),
  |            ^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0743`.
Couldn't compile the test.
---- src/def.rs - def::Res::SelfTy (line 316) stdout ----
error[E0412]: cannot find type `Foo` in this scope
 --> src/def.rs:317:6
  |
3 | impl Foo { fn test() -> [u8; std::mem::size_of::<Self>()] { todo!() } }
  |      ^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/hir.rs - hir::PatKind::Slice (line 986) stdout ----
error[E0433]: failed to resolve: use of undeclared type `PatKind`
 --> src/hir.rs:987:1
  |
3 | PatKind::Slice([Binding(a), Binding(b)], Some(Wild), [Binding(c), Binding(d)])
  | ^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_ast::PatKind;
  |
2 | use rustc_hir::PatKind;
  |

error[E0425]: cannot find function, tuple struct or tuple variant `Binding` in this scope
 --> src/hir.rs:987:17
  |
3 | PatKind::Slice([Binding(a), Binding(b)], Some(Wild), [Binding(c), Binding(d)])
  |                 ^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_hir::Node::Binding;
  |
2 | use rustc_hir::PatKind::Binding;
  |

error[E0425]: cannot find value `a` in this scope
 --> src/hir.rs:987:25
  |
3 | PatKind::Slice([Binding(a), Binding(b)], Some(Wild), [Binding(c), Binding(d)])
  |                         ^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Binding` in this scope
 --> src/hir.rs:987:29
  |
3 | PatKind::Slice([Binding(a), Binding(b)], Some(Wild), [Binding(c), Binding(d)])
  |                             ^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_hir::Node::Binding;
  |
2 | use rustc_hir::PatKind::Binding;
  |

error[E0425]: cannot find value `b` in this scope
 --> src/hir.rs:987:37
  |
3 | PatKind::Slice([Binding(a), Binding(b)], Some(Wild), [Binding(c), Binding(d)])
  |                                     ^ not found in this scope

error[E0425]: cannot find value `Wild` in this scope
 --> src/hir.rs:987:47
  |
3 | PatKind::Slice([Binding(a), Binding(b)], Some(Wild), [Binding(c), Binding(d)])
  |                                               ^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_ast::PatKind::Wild;
  |
2 | use rustc_hir::PatKind::Wild;
  |

error[E0425]: cannot find function, tuple struct or tuple variant `Binding` in this scope
 --> src/hir.rs:987:55
  |
3 | PatKind::Slice([Binding(a), Binding(b)], Some(Wild), [Binding(c), Binding(d)])
  |                                                       ^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_hir::Node::Binding;
  |
2 | use rustc_hir::PatKind::Binding;
  |

error[E0425]: cannot find value `c` in this scope
 --> src/hir.rs:987:63
  |
3 | PatKind::Slice([Binding(a), Binding(b)], Some(Wild), [Binding(c), Binding(d)])
  |                                                               ^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `Binding` in this scope
 --> src/hir.rs:987:67
  |
3 | PatKind::Slice([Binding(a), Binding(b)], Some(Wild), [Binding(c), Binding(d)])
  |                                                                   ^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_hir::Node::Binding;
  |
2 | use rustc_hir::PatKind::Binding;
  |

error[E0425]: cannot find value `d` in this scope
 --> src/hir.rs:987:75
  |
3 | PatKind::Slice([Binding(a), Binding(b)], Some(Wild), [Binding(c), Binding(d)])
  |                                                                           ^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::d;
  |

error: aborting due to 10 previous errors

Some errors have detailed explanations: E0425, E0433.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.

failures:
    src/def.rs - def::Res::SelfTy (line 316)
    src/hir.rs - hir::ParamName::Fresh (line 53)
    src/hir.rs - hir::ParamName::Fresh (line 58)
    src/hir.rs - hir::PatKind::Slice (line 986)
    src/hir.rs - hir::TypeBinding (line 2151)

test result: FAILED. 4 passed; 5 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.22s

error: test failed, to rerun pass '--doc'
	finished in 0.876 seconds
Testing rustc_hir_pretty stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_hir_pretty

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.202 seconds
Testing rustc_incremental stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_incremental

running 2 tests
FF
failures:

---- src/assert_module_sources.rs - assert_module_sources (line 7) stdout ----
error[E0658]: the `#[rustc_partition_reused]` attribute is just used for rustc unit tests and will never be stable
 --> src/assert_module_sources.rs:7:1
  |
2 | #![rustc_partition_reused(module="spike", cfg="rpass2")]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable

error[E0658]: the `#[rustc_partition_codegened]` attribute is just used for rustc unit tests and will never be stable
 --> src/assert_module_sources.rs:8:1
  |
3 | #![rustc_partition_codegened(module="spike-x", cfg="rpass2")]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- src/assert_dep_graph.rs - assert_dep_graph (line 25) stdout ----
error[E0658]: the `#[rustc_if_this_changed]` attribute is just used for rustc unit tests and will never be stable
 --> src/assert_dep_graph.rs:26:1
  |
3 | #[rustc_if_this_changed(Hir)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable

error[E0658]: the `#[rustc_then_this_would_need]` attribute is just used for rustc unit tests and will never be stable
 --> src/assert_dep_graph.rs:29:1
  |
6 | #[rustc_then_this_would_need(codegen)] //~ ERROR no path from `foo`
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable

error[E0658]: the `#[rustc_then_this_would_need]` attribute is just used for rustc unit tests and will never be stable
 --> src/assert_dep_graph.rs:32:1
  |
9 | #[rustc_then_this_would_need(codegen)] //~ ERROR OK
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable

error: attribute requires -Z query-dep-graph to be enabled
 --> src/assert_dep_graph.rs:26:1
  |
3 | #[rustc_if_this_changed(Hir)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute requires -Z query-dep-graph to be enabled
 --> src/assert_dep_graph.rs:29:1
  |
6 | #[rustc_then_this_would_need(codegen)] //~ ERROR no path from `foo`
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute requires -Z query-dep-graph to be enabled
 --> src/assert_dep_graph.rs:32:1
  |
9 | #[rustc_then_this_would_need(codegen)] //~ ERROR OK
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.

failures:
    src/assert_dep_graph.rs - assert_dep_graph (line 25)
    src/assert_module_sources.rs - assert_module_sources (line 7)

test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

error: test failed, to rerun pass '--doc'
	finished in 0.303 seconds
Testing rustc_index stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_index

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.199 seconds
Testing rustc_infer stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_infer

running 31 tests
..FFF.FF.FFFFFFFFFF.FFFFFFF.F..
failures:

---- src/infer/combine.rs - infer::combine::InferCtxt::unify_const_variable (line 205) stdout ----
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
 --> src/infer/combine.rs:206:12
  |
2 | #![feature(generic_const_exprs)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information

error[E0308]: mismatched types
  --> src/infer/combine.rs:214:11
   |
10 |     arr = bind(arr);
   |           ^^^^^^^^^ encountered a self-referencing constant

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/infer/error_reporting/mod.rs - infer::error_reporting::InferCtxt::suggest_await_on_expect_found (line 1874) stdout ----
error[E0308]: mismatched types
  --> src/infer/error_reporting/mod.rs:1883:14
   |
11 |     take_u32(x);
   |              ^ expected `u32`, found opaque type
   |
note: while checking the return type of the `async fn`
  --> src/infer/error_reporting/mod.rs:1875:24
   |
3  | async fn make_u32() -> u32 {
   |                        ^^^ checked the `Output` of this `async fn`, found opaque type
   = note:     expected type `u32`
           found opaque type `impl Future<Output = u32>`
help: consider `await`ing on the `Future`
   |
11 |     take_u32(x.await);
   |               ++++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/infer/error_reporting/nice_region_error/different_lifetimes.rs - infer::error_reporting::nice_region_error::different_lifetimes::NiceRegionError::try_report_anon_anon_conflict (line 20) stdout ----
error[E0623]: lifetime mismatch
 --> src/infer/error_reporting/nice_region_error/different_lifetimes.rs:22:12
  |
3 | fn foo(x: &mut Vec<&u8>, y: &u8) {
  |                    ---      --- these two types are declared with different lifetimes...
4 |     x.push(y);
  |            ^ ...but data from `y` flows into `x` here
  |
  = note: each elided lifetime in input position becomes a distinct lifetime
help: consider introducing a named lifetime parameter
  |
3 | fn foo<'a>(x: &mut Vec<&'a u8>, y: &'a u8) {
  |       ++++              ++          ++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0623`.
Couldn't compile the test.
---- src/infer/canonical/canonicalizer.rs - infer::canonical::canonicalizer::InferCtxt::canonicalize_response (line 91) stdout ----
error: non-item in item list
 --> src/infer/canonical/canonicalizer.rs:92:32
  |
3 | impl<T> Trait<'static> for T { .. }
  |                              - ^^ - item list ends here
  |                              | |
  |                              | non-item starts here
  |                              item list starts here

error[E0405]: cannot find trait `Trait` in this scope
 --> src/infer/canonical/canonicalizer.rs:92:9
  |
3 | impl<T> Trait<'static> for T { .. }
  |         ^^^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0405`.
Couldn't compile the test.
---- src/infer/at.rs - infer::at (line 21) stdout ----
error: unexpected token: `...`
 --> src/infer/at.rs:22:10
  |
3 | infcx.at(...).trace(a, b).sub(&c, &d)
  |          ^^^
  |
help: use `..` for an exclusive range
  |
3 | infcx.at(..).trace(a, b).sub(&c, &d)
  |          ~~
help: or `..=` for an inclusive range
  |
3 | infcx.at(..=).trace(a, b).sub(&c, &d)
  |          ~~~

error[E0586]: inclusive range with no end
 --> src/infer/at.rs:22:10
  |
3 | infcx.at(...).trace(a, b).sub(&c, &d)
  |          ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0425]: cannot find value `infcx` in this scope
 --> src/infer/at.rs:22:1
  |
3 | infcx.at(...).trace(a, b).sub(&c, &d)
  | ^^^^^ not found in this scope

error[E0425]: cannot find value `a` in this scope
 --> src/infer/at.rs:22:21
  |
3 | infcx.at(...).trace(a, b).sub(&c, &d)
  |                     ^ not found in this scope

error[E0425]: cannot find value `b` in this scope
 --> src/infer/at.rs:22:24
  |
3 | infcx.at(...).trace(a, b).sub(&c, &d)
  |                        ^ not found in this scope

error[E0425]: cannot find value `c` in this scope
 --> src/infer/at.rs:22:32
  |
3 | infcx.at(...).trace(a, b).sub(&c, &d)
  |                                ^ not found in this scope

error[E0425]: cannot find value `d` in this scope
 --> src/infer/at.rs:22:36
  |
3 | infcx.at(...).trace(a, b).sub(&c, &d)
  |                                    ^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::d;
  |

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0425, E0586.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/infer/error_reporting/nice_region_error/find_anon_type.rs - infer::error_reporting::nice_region_error::find_anon_type::find_anon_type (line 17) stdout ----
error[E0623]: lifetime mismatch
 --> src/infer/error_reporting/nice_region_error/find_anon_type.rs:19:13
  |
3 | fn foo(x: &mut Vec<&u8>, y: &u8)
  |                    ---      --- these two types are declared with different lifetimes...
4 |    { x.push(y); }
  |             ^ ...but data from `y` flows into `x` here
  |
  = note: each elided lifetime in input position becomes a distinct lifetime
help: consider introducing a named lifetime parameter
  |
3 | fn foo<'a>(x: &mut Vec<&'a u8>, y: &'a u8)
  |       ++++              ++          ++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0623`.
Couldn't compile the test.
---- src/infer/mod.rs - infer::InferCtxtInner::region_obligations (line 163) stdout ----
error: expected identifier, found `...`
 --> src/infer/mod.rs:164:25
  |
3 | struct Foo<T:'static> { ... }
  |                         ^^^ expected identifier

error[E0392]: parameter `T` is never used
 --> src/infer/mod.rs:164:12
  |
3 | struct Foo<T:'static> { ... }
  |            ^ unused parameter
  |
  = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0392`.
Couldn't compile the test.
---- src/infer/error_reporting/mod.rs - infer::error_reporting::InferCtxt::cmp_type_arg (line 892) stdout ----
error[E0412]: cannot find type `Foo` in this scope
 --> src/infer/error_reporting/mod.rs:893:8
  |
3 | let x: Foo<Bar<Qux>> = foo::<Bar<Qux>>();
  |        ^^^ not found in this scope

error[E0412]: cannot find type `Bar` in this scope
 --> src/infer/error_reporting/mod.rs:893:12
  |
3 | let x: Foo<Bar<Qux>> = foo::<Bar<Qux>>();
  |            ^^^ not found in this scope

error[E0412]: cannot find type `Qux` in this scope
 --> src/infer/error_reporting/mod.rs:893:16
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_infer_error_reporting_mod_rs_892_0() {
  |                                                                                             - help: you might be missing a type parameter: `<Qux>`
3 | let x: Foo<Bar<Qux>> = foo::<Bar<Qux>>();
  |                ^^^ not found in this scope

error[E0425]: cannot find function `foo` in this scope
 --> src/infer/error_reporting/mod.rs:893:24
  |
3 | let x: Foo<Bar<Qux>> = foo::<Bar<Qux>>();
  |                        ^^^ not found in this scope

error[E0412]: cannot find type `Bar` in this scope
 --> src/infer/error_reporting/mod.rs:893:30
  |
3 | let x: Foo<Bar<Qux>> = foo::<Bar<Qux>>();
  |                              ^^^ not found in this scope

error[E0412]: cannot find type `Qux` in this scope
 --> src/infer/error_reporting/mod.rs:893:34
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_infer_error_reporting_mod_rs_892_0() {
  |                                                                                             - help: you might be missing a type parameter: `<Qux>`
3 | let x: Foo<Bar<Qux>> = foo::<Bar<Qux>>();
  |                                  ^^^ not found in this scope

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/infer/at.rs - infer::at (line 10) stdout ----
error: expected `;`, found `infcx`
 --> src/infer/at.rs:11:37
  |
3 | infcx.at(cause, param_env).sub(a, b)
  |                                     ^ help: add `;` here
...
6 | infcx.at(cause, param_env).sup(a, b)
  | ----- unexpected token

error: expected `;`, found `infcx`
 --> src/infer/at.rs:14:37
  |
6 | infcx.at(cause, param_env).sup(a, b)
  |                                     ^ help: add `;` here
...
9 | infcx.at(cause, param_env).eq(a, b)
  | ----- unexpected token

error[E0425]: cannot find value `infcx` in this scope
 --> src/infer/at.rs:11:1
  |
3 | infcx.at(cause, param_env).sub(a, b)
  | ^^^^^ not found in this scope

error[E0425]: cannot find value `cause` in this scope
 --> src/infer/at.rs:11:10
  |
3 | infcx.at(cause, param_env).sub(a, b)
  |          ^^^^^ not found in this scope

error[E0425]: cannot find value `param_env` in this scope
 --> src/infer/at.rs:11:17
  |
3 | infcx.at(cause, param_env).sub(a, b)
  |                 ^^^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_middle::dep_graph::DepKind::param_env;
  |
2 | use rustc_middle::dep_graph::label_strs::param_env;
  |

error[E0425]: cannot find value `a` in this scope
 --> src/infer/at.rs:11:32
  |
3 | infcx.at(cause, param_env).sub(a, b)
  |                                ^ not found in this scope

error[E0425]: cannot find value `b` in this scope
 --> src/infer/at.rs:11:35
  |
3 | infcx.at(cause, param_env).sub(a, b)
  |                                   ^ not found in this scope

error[E0425]: cannot find value `infcx` in this scope
 --> src/infer/at.rs:14:1
  |
6 | infcx.at(cause, param_env).sup(a, b)
  | ^^^^^ not found in this scope

error[E0425]: cannot find value `cause` in this scope
 --> src/infer/at.rs:14:10
  |
6 | infcx.at(cause, param_env).sup(a, b)
  |          ^^^^^ not found in this scope

error[E0425]: cannot find value `param_env` in this scope
 --> src/infer/at.rs:14:17
  |
6 | infcx.at(cause, param_env).sup(a, b)
  |                 ^^^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_middle::dep_graph::DepKind::param_env;
  |
2 | use rustc_middle::dep_graph::label_strs::param_env;
  |

error[E0425]: cannot find value `a` in this scope
 --> src/infer/at.rs:14:32
  |
6 | infcx.at(cause, param_env).sup(a, b)
  |                                ^ not found in this scope

error[E0425]: cannot find value `b` in this scope
 --> src/infer/at.rs:14:35
  |
6 | infcx.at(cause, param_env).sup(a, b)
  |                                   ^ not found in this scope

error[E0425]: cannot find value `infcx` in this scope
 --> src/infer/at.rs:17:1
  |
9 | infcx.at(cause, param_env).eq(a, b)
  | ^^^^^ not found in this scope

error[E0425]: cannot find value `cause` in this scope
 --> src/infer/at.rs:17:10
  |
9 | infcx.at(cause, param_env).eq(a, b)
  |          ^^^^^ not found in this scope

error[E0425]: cannot find value `param_env` in this scope
 --> src/infer/at.rs:17:17
  |
9 | infcx.at(cause, param_env).eq(a, b)
  |                 ^^^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_middle::dep_graph::DepKind::param_env;
  |
2 | use rustc_middle::dep_graph::label_strs::param_env;
  |

error[E0425]: cannot find value `a` in this scope
 --> src/infer/at.rs:17:31
  |
9 | infcx.at(cause, param_env).eq(a, b)
  |                               ^ not found in this scope

error[E0425]: cannot find value `b` in this scope
 --> src/infer/at.rs:17:34
  |
9 | infcx.at(cause, param_env).eq(a, b)
  |                                  ^ not found in this scope

error: aborting due to 17 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/infer/outlives/obligations.rs - infer::outlives::obligations (line 35) stdout ----
error: unexpected token: `...`
 --> src/infer/outlives/obligations.rs:38:18
  |
5 |     bar(x, |y| { ... })
  |                  ^^^
  |
help: use `..` for an exclusive range
  |
5 |     bar(x, |y| { .. })
  |                  ~~
help: or `..=` for an inclusive range
  |
5 |     bar(x, |y| { ..= })
  |                  ~~~

error[E0586]: inclusive range with no end
 --> src/infer/outlives/obligations.rs:38:18
  |
5 |     bar(x, |y| { ... })
  |                  ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: free function without a body
 --> src/infer/outlives/obligations.rs:36:1
  |
3 | fn bar<T>(a: T, b: impl for<'a> Fn(&'a T));
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
  |                                           |
  |                                           help: provide a definition for the function: `{ <body> }`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0586`.
Couldn't compile the test.
---- src/infer/outlives/verify.rs - infer::outlives::verify::VerifyBoundCx::region_bounds_declared_on_associated_item (line 316) stdout ----
error[E0311]: the associated type `<Self as Foo<'x, 'b>>::Bar` may not live long enough
 --> src/infer/outlives/verify.rs:318:43
  |
4 | where for<'x> <Self as Foo<'x, 'b>>::Bar: 'x
  |                                           ^^
  |
  = help: consider adding an explicit lifetime bound `<Self as Foo<'x, 'b>>::Bar: 'c`...
  = note: ...so that the type `<Self as Foo<'x, 'b>>::Bar` will meet its required lifetime bounds...
note: ...that is required by this bound
 --> src/infer/outlives/verify.rs:318:43
  |
4 | where for<'x> <Self as Foo<'x, 'b>>::Bar: 'x
  |                                           ^^

error[E0311]: the associated type `<Self as Foo<'x, 'b>>::Bar` may not live long enough
 --> src/infer/outlives/verify.rs:320:5
  |
6 |     type Bar;
  |     ^^^^^^^^^
  |
  = help: consider adding an explicit lifetime bound `<Self as Foo<'x, 'b>>::Bar: 'c`...
  = note: ...so that the type `<Self as Foo<'x, 'b>>::Bar` will meet its required lifetime bounds...
note: ...that is required by this bound
 --> src/infer/outlives/verify.rs:318:43
  |
4 | where for<'x> <Self as Foo<'x, 'b>>::Bar: 'x
  |                                           ^^

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/infer/opaque_types.rs - infer::opaque_types::may_define_opaque_type (line 605) stdout ----
error: non-item in item list
 --> src/infer/opaque_types.rs:608:25
  |
5 |         pub trait Bar { .. }
  |                       - ^^ - item list ends here
  |                       | |
  |                       | non-item starts here
  |                       item list starts here

error[E0658]: `impl Trait` in type aliases is unstable
 --> src/infer/opaque_types.rs:610:24
  |
7 |         pub type Baz = impl Bar;
  |                        ^^^^^^^^
  |
  = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
  = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable

error[E0277]: the trait bound `RangeFull: Bar` is not satisfied
 --> src/infer/opaque_types.rs:612:26
  |
9 |         fn f1() -> Baz { .. }
  |                          ^^ the trait `Bar` is not implemented for `RangeFull`

error[E0308]: mismatched types
  --> src/infer/opaque_types.rs:615:27
   |
7  |         pub type Baz = impl Bar;
   |                        -------- the expected opaque type
...
12 |     fn f2() -> bar::Baz { .. }
   |                --------   ^^ expected opaque type, found struct `RangeFull`
   |                |
   |                expected `Baz` because of return type
   |
   = note: expected opaque type `Baz`
                   found struct `RangeFull`

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0277, E0308, E0658.
For more information about an error, try `rustc --explain E0277`.
Couldn't compile the test.
---- src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound (line 178) stdout ----
error: expected identifier, found `(`
 --> src/infer/region_constraints/mod.rs:179:3
  |
3 | fn(min: Region) -> bool { .. }
  |   ^ expected identifier

error: aborting due to previous error

Couldn't compile the test.
---- src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound (line 186) stdout ----
error: expected identifier, found `(`
 --> src/infer/region_constraints/mod.rs:187:3
  |
3 | fn(min: Region) -> bool {
  |   ^ expected identifier

error: aborting due to previous error

Couldn't compile the test.
---- src/infer/opaque_types.rs - infer::opaque_types::InferCtxt::register_member_constraints (line 312) stdout ----
error: expected one of `:` or `|`, found `)`
 --> src/infer/opaque_types.rs:319:17
  |
9 | fn foo<'a, T>(..) -> FooReturn<'a, T> { .. }
  |                 ^ expected one of `:` or `|`

error[E0428]: the name `foo` is defined multiple times
 --> src/infer/opaque_types.rs:319:1
  |
3 | fn foo<'a, T>(x: &'a u32, y: T) -> impl Foo<'a> {
  | ----------------------------------------------- previous definition of the value `foo` here
...
9 | fn foo<'a, T>(..) -> FooReturn<'a, T> { .. }
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `foo` redefined here
  |
  = note: `foo` must be defined only once in the value namespace of this block

error[E0405]: cannot find trait `Foo` in this scope
 --> src/infer/opaque_types.rs:313:41
  |
3 | fn foo<'a, T>(x: &'a u32, y: T) -> impl Foo<'a> {
  |                                         ^^^ not found in this scope

error[E0405]: cannot find trait `Foo` in this scope
 --> src/infer/opaque_types.rs:318:30
  |
8 | type FooReturn<'a, T> = impl Foo<'a>;
  |                              ^^^ not found in this scope

error[E0658]: `impl Trait` in type aliases is unstable
 --> src/infer/opaque_types.rs:318:25
  |
8 | type FooReturn<'a, T> = impl Foo<'a>;
  |                         ^^^^^^^^^^^^
  |
  = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
  = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0405, E0428, E0658.
For more information about an error, try `rustc --explain E0405`.
Couldn't compile the test.
---- src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound::AllBounds (line 258) stdout ----
error: expected identifier, found `(`
 --> src/infer/region_constraints/mod.rs:259:3
  |
3 | fn(min) -> bool {
  |   ^ expected identifier

error: aborting due to previous error

Couldn't compile the test.
---- src/infer/outlives/env.rs - infer::outlives::env::OutlivesEnvironment::push_snapshot_pre_typeck_child (line 106) stdout ----
error: cannot introduce explicit parameters for a closure
 --> src/infer/outlives/env.rs:108:13
  |
4 |      callback(for<'a> |x: &'a T| {
  |  _____________^^^^^^^_-
  | |             |
  | |             help: remove the parameters
5 | |         // ^^^^^^^ not legal syntax, but probably should be
6 | |         // within this closure body, `T: 'a` holds
7 | |    })
  | |____- the parameters are attached to this closure

error[E0425]: cannot find function `callback` in this scope
 --> src/infer/outlives/env.rs:108:4
  |
4 |    callback(for<'a> |x: &'a T| {
  |    ^^^^^^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound::IfEq (line 197) stdout ----
error: expected identifier, found `(`
 --> src/infer/region_constraints/mod.rs:198:3
  |
3 | fn(min) -> bool {
  |   ^ expected identifier

error: aborting due to previous error

Couldn't compile the test.
---- src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound::AnyBound (line 246) stdout ----
error: expected identifier, found `(`
 --> src/infer/region_constraints/mod.rs:247:3
  |
3 | fn(min) -> bool {
  |   ^ expected identifier

error: aborting due to previous error

Couldn't compile the test.
---- src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound::OutlivedBy (line 231) stdout ----
error: expected identifier, found `(`
 --> src/infer/region_constraints/mod.rs:232:3
  |
3 | fn(min) -> bool {
  |   ^ expected identifier

error: aborting due to previous error

Couldn't compile the test.
---- src/infer/type_variable.rs - infer::type_variable::TypeVariableStorage::sub_relations (line 77) stdout ----
error: expected expression, found `?`
 --> src/infer/type_variable.rs:78:1
  |
3 | ?1 <: ?3
  | ^ expected expression

error: aborting due to previous error

Couldn't compile the test.
---- src/infer/type_variable.rs - infer::type_variable::TypeVariableTable::sub_root_var (line 291) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `X`
 --> src/infer/type_variable.rs:292:8
  |
3 | exists X. (a <: X || X <: a) && (b <: X || X <: b)
  |        ^ expected one of 8 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound::IfEq (line 221) stdout ----
error: expected `while`, `for`, `loop` or `{` after a label
 --> src/infer/region_constraints/mod.rs:222:42
  |
3 | IfEq(<T as Trait<'a>>::Item, AnyRegion('a))
  |                                          ^ expected `while`, `for`, `loop` or `{` after a label

error: expected expression, found `)`
 --> src/infer/region_constraints/mod.rs:222:42
  |
3 | IfEq(<T as Trait<'a>>::Item, AnyRegion('a))
  |                                          ^ expected expression

error[E0433]: failed to resolve: use of undeclared type `Trait`
 --> src/infer/region_constraints/mod.rs:222:12
  |
3 | IfEq(<T as Trait<'a>>::Item, AnyRegion('a))
  |            ^^^^^ use of undeclared type `Trait`

error[E0425]: cannot find function, tuple struct or tuple variant `IfEq` in this scope
 --> src/infer/region_constraints/mod.rs:222:1
  |
3 | IfEq(<T as Trait<'a>>::Item, AnyRegion('a))
  | ^^^^ not found in this scope
  |
help: consider importing this tuple variant
  |
2 | use rustc_infer::infer::region_constraints::VerifyBound::IfEq;
  |

error[E0412]: cannot find type `T` in this scope
 --> src/infer/region_constraints/mod.rs:222:7
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_infer_region_constraints_mod_rs_221_0() {
  |                                                                                                - help: you might be missing a type parameter: `<T>`
3 | IfEq(<T as Trait<'a>>::Item, AnyRegion('a))
  |       ^ not found in this scope

error[E0261]: use of undeclared lifetime name `'a`
 --> src/infer/region_constraints/mod.rs:222:18
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_infer_region_constraints_mod_rs_221_0() {
  |                                                                                                - help: consider introducing lifetime `'a` here: `<'a>`
3 | IfEq(<T as Trait<'a>>::Item, AnyRegion('a))
  |                  ^^ undeclared lifetime

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0261, E0412, E0425, E0433.
For more information about an error, try `rustc --explain E0261`.
Couldn't compile the test.

failures:
    src/infer/at.rs - infer::at (line 10)
    src/infer/at.rs - infer::at (line 21)
    src/infer/canonical/canonicalizer.rs - infer::canonical::canonicalizer::InferCtxt::canonicalize_response (line 91)
    src/infer/combine.rs - infer::combine::InferCtxt::unify_const_variable (line 205)
    src/infer/error_reporting/mod.rs - infer::error_reporting::InferCtxt::cmp_type_arg (line 892)
    src/infer/error_reporting/mod.rs - infer::error_reporting::InferCtxt::suggest_await_on_expect_found (line 1874)
    src/infer/error_reporting/nice_region_error/different_lifetimes.rs - infer::error_reporting::nice_region_error::different_lifetimes::NiceRegionError::try_report_anon_anon_conflict (line 20)
    src/infer/error_reporting/nice_region_error/find_anon_type.rs - infer::error_reporting::nice_region_error::find_anon_type::find_anon_type (line 17)
    src/infer/mod.rs - infer::InferCtxtInner::region_obligations (line 163)
    src/infer/opaque_types.rs - infer::opaque_types::InferCtxt::register_member_constraints (line 312)
    src/infer/opaque_types.rs - infer::opaque_types::may_define_opaque_type (line 605)
    src/infer/outlives/env.rs - infer::outlives::env::OutlivesEnvironment::push_snapshot_pre_typeck_child (line 106)
    src/infer/outlives/obligations.rs - infer::outlives::obligations (line 35)
    src/infer/outlives/verify.rs - infer::outlives::verify::VerifyBoundCx::region_bounds_declared_on_associated_item (line 316)
    src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound (line 178)
    src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound (line 186)
    src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound::AllBounds (line 258)
    src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound::AnyBound (line 246)
    src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound::IfEq (line 197)
    src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound::IfEq (line 221)
    src/infer/region_constraints/mod.rs - infer::region_constraints::VerifyBound::OutlivedBy (line 231)
    src/infer/type_variable.rs - infer::type_variable::TypeVariableStorage::sub_relations (line 77)
    src/infer/type_variable.rs - infer::type_variable::TypeVariableTable::sub_root_var (line 291)

test result: FAILED. 8 passed; 23 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s

error: test failed, to rerun pass '--doc'
	finished in 1.264 seconds
Testing rustc_interface stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.17s
   Doc-tests rustc_interface

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.326 seconds
Testing rustc_lexer stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_lexer

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.167 seconds
Testing rustc_lint stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_lint

running 56 tests
.................ii.....................................
test result: ok. 54 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 1.36s

	finished in 1.815 seconds
Testing rustc_lint_defs stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.14s
   Doc-tests rustc_lint_defs

running 108 tests
ii..........i..i......i......i.ii..i.......i......iii.....................i........i..i. 88/108
............i.......
test result: ok. 91 passed; 0 failed; 17 ignored; 0 measured; 0 filtered out; finished in 2.12s

	finished in 2.398 seconds
Testing rustc_llvm stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_llvm

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.163 seconds
Testing rustc_log stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_log

running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.43s

	finished in 0.595 seconds
Testing rustc_macros stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_macros

running 4 tests
iiii
test result: ok. 0 passed; 0 failed; 4 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.368 seconds
Testing rustc_metadata stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_metadata

running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

	finished in 0.500 seconds
Testing rustc_middle stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_middle

running 97 tests
iiiFFFFFFFFFFiFFFF...iiiF.FFFF.FFiFFFFFFFFFFFiFFF.iFFiiFFiiF.ii..ii..i...FFFFFF.FFF....F 88/97
FFFFF..FF
failures:

---- src/infer/mod.rs - infer::MemberConstraint (line 13) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `member`
 --> src/infer/mod.rs:14:4
  |
3 | R0 member of [O1..On]
  |    ^^^^^^ expected one of 8 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/mir/interpret/allocation.rs - mir::interpret::allocation::InitMask::find_bit::find_bit_fast (line 749) stdout ----
error: expected expression, found `^`
 --> src/mir/interpret/allocation.rs:751:13
  |
4 |      ^      ^ ^      ^
  |             ^ expected expression

error: aborting due to previous error

Couldn't compile the test.
---- src/mir/mod.rs - mir::BorrowKind::Unique (line 756) stdout ----
error: unexpected token: `...`
 --> src/mir/mod.rs:758:21
  |
4 | let x: &mut isize = ...;
  |                     ^^^
  |
help: use `..` for an exclusive range
  |
4 | let x: &mut isize = ..;
  |                     ~~
help: or `..=` for an inclusive range
  |
4 | let x: &mut isize = ..=;
  |                     ~~~

error[E0586]: inclusive range with no end
 --> src/mir/mod.rs:758:21
  |
4 | let x: &mut isize = ...;
  |                     ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: expected identifier, found `&`
 --> src/mir/mod.rs:759:21
  |
5 | let y = (&mut Env { &x }, fn_ptr);  // Closure is pair of env and fn
  |               ---   ^ expected identifier
  |               |
  |               while parsing this struct

error[E0106]: missing lifetime specifier
 --> src/mir/mod.rs:757:17
  |
3 | struct Env { x: & &mut isize }
  |                 ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
3 | struct Env<'a> { x: &'a  &mut isize }
  |           ++++       ++

error[E0106]: missing lifetime specifier
 --> src/mir/mod.rs:757:19
  |
3 | struct Env { x: & &mut isize }
  |                   ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
3 | struct Env<'a> { x: & &'a mut isize }
  |           ++++         ++

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0106, E0586.
For more information about an error, try `rustc --explain E0106`.
Couldn't compile the test.
---- src/mir/mod.rs - mir::BorrowKind::Shallow (line 732) stdout ----
error[E0510]: cannot assign `x` in match guard
 --> src/mir/mod.rs:736:18
  |
4 | match *x {
  |       -- value is immutable in match guard
5 |     None => (),
6 |     Some(_) if { x = &None; false } => (),
  |                  ^^^^^^^^^ cannot assign

error: aborting due to previous error

For more information about this error, try `rustc --explain E0510`.
Couldn't compile the test.
---- src/mir/mod.rs - mir::BorrowKind::Unique (line 750) stdout ----
error: unexpected token: `...`
 --> src/mir/mod.rs:751:21
  |
3 | let x: &mut isize = ...;
  |                     ^^^
  |
help: use `..` for an exclusive range
  |
3 | let x: &mut isize = ..;
  |                     ~~
help: or `..=` for an inclusive range
  |
3 | let x: &mut isize = ..=;
  |                     ~~~

error[E0586]: inclusive range with no end
 --> src/mir/mod.rs:751:21
  |
3 | let x: &mut isize = ...;
  |                     ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0586`.
Couldn't compile the test.
---- src/mir/mod.rs - mir::BorrowKind::Unique (line 765) stdout ----
error: unexpected token: `...`
 --> src/mir/mod.rs:767:21
  |
4 | let x: &mut isize = ...;
  |                     ^^^
  |
help: use `..` for an exclusive range
  |
4 | let x: &mut isize = ..;
  |                     ~~
help: or `..=` for an inclusive range
  |
4 | let x: &mut isize = ..=;
  |                     ~~~

error[E0586]: inclusive range with no end
 --> src/mir/mod.rs:767:21
  |
4 | let x: &mut isize = ...;
  |                     ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: expected identifier, found `&`
 --> src/mir/mod.rs:768:21
  |
5 | let y = (&mut Env { &mut x }, fn_ptr); // changed from &x to &mut x
  |               ---   ^ expected identifier
  |               |
  |               while parsing this struct

error[E0106]: missing lifetime specifier
 --> src/mir/mod.rs:766:17
  |
3 | struct Env { x: &mut &mut isize }
  |                 ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
3 | struct Env<'a> { x: &'a mut &mut isize }
  |           ++++       ++

error[E0106]: missing lifetime specifier
 --> src/mir/mod.rs:766:22
  |
3 | struct Env { x: &mut &mut isize }
  |                      ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
3 | struct Env<'a> { x: &mut &'a mut isize }
  |           ++++            ++

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0106, E0586.
For more information about an error, try `rustc --explain E0106`.
Couldn't compile the test.
---- src/mir/mod.rs - mir::ProjectionElem::ConstantIndex (line 1979) stdout ----
error: expected one of `,` or `]`, found reserved identifier `_`
 --> src/mir/mod.rs:1980:10
  |
3 | [X, _, .._, _, _] => { offset: 0, min_length: 4, from_end: false },
  |          ^
  |          |
  |          expected one of `,` or `]`
  |          help: missing `,`

error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>`
 --> src/mir/mod.rs:1980:19
  |
3 | [X, _, .._, _, _] => { offset: 0, min_length: 4, from_end: false },
  |                   ^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/mir/mod.rs - mir::LocalDecl::source_info (line 1007) stdout ----
error[E0282]: type annotations needed
 --> src/mir/mod.rs:1011:13
  |
6 |             y => y + 2
  |             ^ cannot infer type
  |
help: consider specifying the type argument in the method call
  |
5 |         match x.parse::<F>().unwrap() {
  |                      +++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.
Couldn't compile the test.
---- src/mir/mod.rs - mir::UserTypeProjections (line 3018) stdout ----
error: expected one of `)`, `,`, or `|`, found `:`
 --> src/mir/mod.rs:3020:13
  |
4 | let S((_, w): (i32, &'static str), _): S = ...;
  |             ^ expected one of `)`, `,`, or `|`

error: expected one of `;` or `=`, found `,`
 --> src/mir/mod.rs:3020:34
  |
4 | let S((_, w): (i32, &'static str), _): S = ...;
  |                                  ^ expected one of `;` or `=`

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/hir/map/mod.rs - hir::map::Map::get_return_block (line 752) stdout ----
error[E0308]: mismatched types
 --> src/hir/map/mod.rs:755:9
  |
5 |         true  // If `get_return_block` gets passed the `id` corresponding
  |         ^^^^ expected `()`, found `bool`
  |
help: you might have meant to return this value
  |
5 |         return true;  // If `get_return_block` gets passed the `id` corresponding
  |         ++++++     +

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/mir/mono.rs - mir::mono::CodegenUnitNameBuilder::build_cgu_name (line 461) stdout ----
error: expected one of `!`, `(`, `+`, `::`, `<`, `>`, or `as`, found `-`
 --> src/mir/mono.rs:462:7
  |
3 | <crate-name>.<crate-disambiguator>[-in-<local-crate-id>](-<component>)*[.<special-suffix>]
  |       ^ expected one of 7 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/mir/mod.rs - mir::StatementKind::AscribeUserType (line 1685) stdout ----
error[E0412]: cannot find type `T` in this scope
 --> src/mir/mod.rs:1686:8
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_mir_mod_rs_1685_0() {
  |                                                                            - help: you might be missing a type parameter: `<T>`
3 | let a: T = y;
  |        ^ not found in this scope

error[E0425]: cannot find value `y` in this scope
 --> src/mir/mod.rs:1686:12
  |
3 | let a: T = y;
  |            ^ not found in this scope

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/mir/terminator.rs - mir::terminator::TerminatorKind::DropAndReplace (line 205) stdout ----
error: expected one of `,` or `}`, found `(`
 --> src/mir/terminator.rs:207:17
  |
3 | BB0 {
  | --- while parsing this struct
4 |   DropAndReplace(P <- V, goto BB1, unwind BB2)
  |                 ^ expected one of `,` or `}`

error: expected one of `,` or `}`, found `BB1`
 --> src/mir/terminator.rs:207:31
  |
3 | BB0 {
  | --- while parsing this struct
4 |   DropAndReplace(P <- V, goto BB1, unwind BB2)
  |                               ^^^ expected one of `,` or `}`

error: expected one of `,` or `}`, found `BB2`
 --> src/mir/terminator.rs:207:43
  |
3 | BB0 {
  | --- while parsing this struct
4 |   DropAndReplace(P <- V, goto BB1, unwind BB2)
  |                                           ^^^ expected one of `,` or `}`

error[E0422]: cannot find struct, variant or union type `BB0` in this scope
 --> src/mir/terminator.rs:206:1
  |
3 | BB0 {
  | ^^^ not found in this scope

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0422`.
Couldn't compile the test.
---- src/mir/terminator.rs - mir::terminator::TerminatorKind::DropAndReplace (line 213) stdout ----
error: expected one of `,` or `}`, found `(`
 --> src/mir/terminator.rs:215:7
  |
3 | BB0 {
  | --- while parsing this struct
4 |   Drop(P, goto BB1, unwind BB2)
  |       ^ expected one of `,` or `}`

error: expected one of `,` or `}`, found `BB1`
 --> src/mir/terminator.rs:215:16
  |
3 | BB0 {
  | --- while parsing this struct
4 |   Drop(P, goto BB1, unwind BB2)
  |                ^^^ expected one of `,` or `}`

error: expected one of `,` or `}`, found `BB2`
 --> src/mir/terminator.rs:215:28
  |
3 | BB0 {
  | --- while parsing this struct
4 |   Drop(P, goto BB1, unwind BB2)
  |                            ^^^ expected one of `,` or `}`

error: expected `;`, found `BB1`
 --> src/mir/terminator.rs:216:2
  |
5 | }
  |  ^ help: add `;` here
6 | BB1 {
  | --- unexpected token

error: expected one of `,` or `}`, found `<-`
 --> src/mir/terminator.rs:219:5
  |
6 | BB1 {
  | --- while parsing this struct
7 |   // P is now uninitialized
8 |   P <- V
  |     ^^ expected one of `,` or `}`

error: expected `;`, found `BB2`
  --> src/mir/terminator.rs:220:2
   |
9  | }
   |  ^ help: add `;` here
10 | BB2 {
   | --- unexpected token

error: expected one of `,` or `}`, found `<-`
  --> src/mir/terminator.rs:223:5
   |
10 | BB2 {
   | --- while parsing this struct
11 |   // P is now uninitialized -- its dtor panicked
12 |   P <- V
   |     ^^ expected one of `,` or `}`

error[E0422]: cannot find struct, variant or union type `BB0` in this scope
 --> src/mir/terminator.rs:214:1
  |
3 | BB0 {
  | ^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type `BB1` in this scope
 --> src/mir/terminator.rs:217:1
  |
6 | BB1 {
  | ^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type `BB2` in this scope
  --> src/mir/terminator.rs:221:1
   |
10 | BB2 {
   | ^^^ not found in this scope

error: aborting due to 10 previous errors

For more information about this error, try `rustc --explain E0422`.
Couldn't compile the test.
---- src/traits/mod.rs - traits::ImplSource (line 518) stdout ----
error: non-item in item list
 --> src/traits/mod.rs:519:40
  |
3 | impl<T:Clone> Clone<T> for Option<T> { ... } // Impl_1
  |                                      - ^^^ - item list ends here
  |                                      | |
  |                                      | non-item starts here
  |                                      item list starts here

error: non-item in item list
 --> src/traits/mod.rs:520:37
  |
4 | impl<T:Clone> Clone<T> for Box<T> { ... }    // Impl_2
  |                                   - ^^^ - item list ends here
  |                                   | |
  |                                   | non-item starts here
  |                                   item list starts here

error: non-item in item list
 --> src/traits/mod.rs:521:22
  |
5 | impl Clone for i32 { ... }                   // Impl_3
  |                    - ^^^ - item list ends here
  |                    | |
  |                    | non-item starts here
  |                    item list starts here

error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
   --> src/traits/mod.rs:519:15
    |
3   | impl<T:Clone> Clone<T> for Option<T> { ... } // Impl_1
    |               ^^^^^--- help: remove these generics
    |               |
    |               expected 0 generic arguments
    |
note: trait defined here, with 0 generic parameters
   --> /home/jnelson/rust-lang/rust/library/core/src/clone.rs:110:11
    |
110 | pub trait Clone: Sized {
    |           ^^^^^

error[E0107]: this trait takes 0 generic arguments but 1 generic argument was supplied
   --> src/traits/mod.rs:520:15
    |
4   | impl<T:Clone> Clone<T> for Box<T> { ... }    // Impl_2
    |               ^^^^^--- help: remove these generics
    |               |
    |               expected 0 generic arguments
    |
note: trait defined here, with 0 generic parameters
   --> /home/jnelson/rust-lang/rust/library/core/src/clone.rs:110:11
    |
110 | pub trait Clone: Sized {
    |           ^^^^^

error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
 --> src/traits/mod.rs:519:1
  |
3 | impl<T:Clone> Clone<T> for Option<T> { ... } // Impl_1
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^---------
  | |                          |
  | |                          `Option` is not defined in the current crate
  | impl doesn't use only types from inside the current crate
  |
  = note: define and implement a trait or new type instead

error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
 --> src/traits/mod.rs:520:6
  |
4 | impl<T:Clone> Clone<T> for Box<T> { ... }    // Impl_2
  |      ^ type parameter `T` must be used as the type parameter for some local type
  |
  = note: implementing a foreign trait is only possible if at least one of the types for which it is implemented is local
  = note: only traits defined in the current crate can be implemented for a type parameter

error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
 --> src/traits/mod.rs:521:1
  |
5 | impl Clone for i32 { ... }                   // Impl_3
  | ^^^^^^^^^^^^^^^---
  | |              |
  | |              `i32` is not defined in the current crate
  | impl doesn't use only types from inside the current crate
  |
  = note: define and implement a trait or new type instead

error: aborting due to 8 previous errors

Some errors have detailed explanations: E0107, E0117, E0210.
For more information about an error, try `rustc --explain E0107`.
Couldn't compile the test.
---- src/ty/adjustment.rs - ty::adjustment::Adjustment (line 62) stdout ----
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->`
 --> src/ty/adjustment.rs:63:13
  |
3 | Deref(None) -> [i32; 4],
  |             ^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to previous error

Couldn't compile the test.
---- src/traits/specialization_graph.rs - traits::specialization_graph::LeafDef::finalizing_node (line 182) stdout ----
error[E0658]: specialization is unstable
 --> src/traits/specialization_graph.rs:188:5
  |
8 |     default fn assoc(&self) {}
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
  = help: add `#![feature(specialization)]` to the crate attributes to enable

error[E0119]: conflicting implementations of trait `main::_doctest_main_src_traits_specialization_graph_rs_182_0::Tr` for type `u8`
  --> src/traits/specialization_graph.rs:191:1
   |
7  | impl<T> Tr for T {
   | ---------------- first implementation here
...
11 | impl Tr for u8 {}
   | ^^^^^^^^^^^^^^ conflicting implementation for `u8`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0119, E0658.
For more information about an error, try `rustc --explain E0119`.
Couldn't compile the test.
---- src/ty/adt.rs - ty::adt::AdtDefData (line 85) stdout ----
error: expected `:`, found `}`
 --> src/ty/adt.rs:86:14
  |
3 | struct S { x }
  |              ^ expected `:`

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/closure.rs - ty::closure::BorrowKind::UniqueImmBorrow (line 375) stdout ----
error: unexpected token: `...`
 --> src/ty/closure.rs:376:21
  |
3 | let x: &mut isize = ...;
  |                     ^^^
  |
help: use `..` for an exclusive range
  |
3 | let x: &mut isize = ..;
  |                     ~~
help: or `..=` for an inclusive range
  |
3 | let x: &mut isize = ..=;
  |                     ~~~

error[E0586]: inclusive range with no end
 --> src/ty/closure.rs:376:21
  |
3 | let x: &mut isize = ...;
  |                     ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0586`.
Couldn't compile the test.
---- src/mir/visit.rs - mir::visit (line 32) stdout ----
error: expected type, found `$`
 --> src/mir/visit.rs:35:35
  |
5 |                           data: & $($mutability)? BasicBlockData<'tcx>) {
  |                                   ^ expected type

error: unexpected token: `...`
  --> src/mir/visit.rs:46:5
   |
16 |     ...
   |     ^^^
   |
help: use `..` for an exclusive range
   |
16 |     ..
   |
help: or `..=` for an inclusive range
   |
16 |     ..=
   |

error[E0586]: inclusive range with no end
  --> src/mir/visit.rs:46:5
   |
16 |     ...
   |     ^^^ help: use `..` instead
   |
   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: `self` parameter is only allowed in associated functions
 --> src/mir/visit.rs:33:27
  |
3 | fn super_basic_block_data(&mut self,
  |                           ^^^^^^^^^ not semantically valid as function parameter
  |
  = note: associated functions are those in `impl` or `trait` definitions

error[E0412]: cannot find type `BasicBlock` in this scope
 --> src/mir/visit.rs:34:34
  |
4 |                           block: BasicBlock,
  |                                  ^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use rustc_middle::mir::BasicBlock;
  |

error[E0425]: cannot find value `data` in this scope
  --> src/mir/visit.rs:40:10
   |
10 |     } = *data;
   |          ^^^^ not found in this scope

error[E0422]: cannot find struct, variant or union type `BasicBlockData` in this scope
 --> src/mir/visit.rs:36:9
  |
6 |     let BasicBlockData {
  |         ^^^^^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use rustc_middle::mir::BasicBlockData;
  |

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0412, E0422, E0425, E0586.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/mir/visit.rs - mir::visit::NonMutatingUseContext::Projection (line 1174) stdout ----
error[E0425]: cannot find value `z` in this scope
 --> src/mir/visit.rs:1175:1
  |
3 | z = x.y;
  | ^ not found in this scope

error[E0425]: cannot find value `x` in this scope
 --> src/mir/visit.rs:1175:5
  |
3 | z = x.y;
  |     ^ not found in this scope

error[E0425]: cannot find function `f` in this scope
 --> src/mir/visit.rs:1176:1
  |
4 | f(&x.y);
  | ^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::f;
  |

error[E0425]: cannot find value `x` in this scope
 --> src/mir/visit.rs:1176:4
  |
4 | f(&x.y);
  |    ^ not found in this scope

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/traits/mod.rs - traits::Reveal::UserFacing (line 50) stdout ----
error[E0575]: expected method or associated constant, found associated type `Assoc::Output`
  --> src/traits/mod.rs:60:9
   |
11 |     let <() as Assoc>::Output = true;
   |         ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: can't use a type alias as a constructor

error[E0658]: specialization is unstable
 --> src/traits/mod.rs:56:5
  |
7 |     default type Output = bool;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
  = help: add `#![feature(specialization)]` to the crate attributes to enable

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0575, E0658.
For more information about an error, try `rustc --explain E0575`.
Couldn't compile the test.
---- src/ty/closure.rs - ty::closure::BorrowKind::UniqueImmBorrow (line 383) stdout ----
error: unexpected token: `...`
 --> src/ty/closure.rs:385:21
  |
4 | let x: &mut isize = ...;
  |                     ^^^
  |
help: use `..` for an exclusive range
  |
4 | let x: &mut isize = ..;
  |                     ~~
help: or `..=` for an inclusive range
  |
4 | let x: &mut isize = ..=;
  |                     ~~~

error[E0586]: inclusive range with no end
 --> src/ty/closure.rs:385:21
  |
4 | let x: &mut isize = ...;
  |                     ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: expected identifier, found `&`
 --> src/ty/closure.rs:386:21
  |
5 | let y = (&mut Env { &x }, fn_ptr);  // Closure is pair of env and fn
  |               ---   ^ expected identifier
  |               |
  |               while parsing this struct

error[E0106]: missing lifetime specifier
 --> src/ty/closure.rs:384:17
  |
3 | struct Env { x: & &mut isize }
  |                 ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
3 | struct Env<'a> { x: &'a  &mut isize }
  |           ++++       ++

error[E0106]: missing lifetime specifier
 --> src/ty/closure.rs:384:19
  |
3 | struct Env { x: & &mut isize }
  |                   ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
3 | struct Env<'a> { x: & &'a mut isize }
  |           ++++         ++

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0106, E0586.
For more information about an error, try `rustc --explain E0106`.
Couldn't compile the test.
---- src/ty/closure.rs - ty::closure::BorrowKind::UniqueImmBorrow (line 394) stdout ----
error: unexpected token: `...`
 --> src/ty/closure.rs:396:21
  |
4 | let x: &mut isize = ...;
  |                     ^^^
  |
help: use `..` for an exclusive range
  |
4 | let x: &mut isize = ..;
  |                     ~~
help: or `..=` for an inclusive range
  |
4 | let x: &mut isize = ..=;
  |                     ~~~

error[E0586]: inclusive range with no end
 --> src/ty/closure.rs:396:21
  |
4 | let x: &mut isize = ...;
  |                     ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: expected identifier, found `&`
 --> src/ty/closure.rs:397:21
  |
5 | let y = (&mut Env { &mut x }, fn_ptr); // changed from &x to &mut x
  |               ---   ^ expected identifier
  |               |
  |               while parsing this struct

error[E0106]: missing lifetime specifier
 --> src/ty/closure.rs:395:17
  |
3 | struct Env { x: &mut &mut isize }
  |                 ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
3 | struct Env<'a> { x: &'a mut &mut isize }
  |           ++++       ++

error[E0106]: missing lifetime specifier
 --> src/ty/closure.rs:395:22
  |
3 | struct Env { x: &mut &mut isize }
  |                      ^ expected named lifetime parameter
  |
help: consider introducing a named lifetime parameter
  |
3 | struct Env<'a> { x: &mut &'a mut isize }
  |           ++++            ++

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0106, E0586.
For more information about an error, try `rustc --explain E0106`.
Couldn't compile the test.
---- src/ty/closure.rs - ty::closure::CaptureInfo::capture_kind_expr_id (line 308) stdout ----
error: expected `;`, found `}`
 --> src/ty/closure.rs:312:14
  |
6 |     let _ = x
  |              ^ help: add `;` here
7 | };
  | - unexpected token

error: aborting due to previous error

Couldn't compile the test.
---- src/mir/visit.rs - mir::visit::MutatingUseContext::Projection (line 1203) stdout ----
error: unexpected token: `...`
 --> src/mir/visit.rs:1204:7
  |
3 | x.y = ...;
  |       ^^^
  |
help: use `..` for an exclusive range
  |
3 | x.y = ..;
  |       ~~
help: or `..=` for an inclusive range
  |
3 | x.y = ..=;
  |       ~~~

error[E0586]: inclusive range with no end
 --> src/mir/visit.rs:1204:7
  |
3 | x.y = ...;
  |       ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0425]: cannot find value `x` in this scope
 --> src/mir/visit.rs:1204:1
  |
3 | x.y = ...;
  | ^ not found in this scope

error[E0425]: cannot find function `f` in this scope
 --> src/mir/visit.rs:1205:1
  |
4 | f(&mut x.y);
  | ^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::f;
  |

error[E0425]: cannot find value `x` in this scope
 --> src/mir/visit.rs:1205:8
  |
4 | f(&mut x.y);
  |        ^ not found in this scope

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0425, E0586.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/ty/closure.rs - ty::closure::CaptureInfo::capture_kind_expr_id (line 292) stdout ----
error[E0277]: `({integer}, {integer})` doesn't implement `std::fmt::Display`
 --> src/ty/closure.rs:296:16
  |
6 |     println!("{t}"); // L1
  |                ^ `({integer}, {integer})` cannot be formatted with the default formatter
  |
  = help: the trait `std::fmt::Display` is not implemented for `({integer}, {integer})`
  = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
  = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
Couldn't compile the test.
---- src/ty/context.rs - ty::context::TypeckResults::liberated_fn_sigs (line 462) stdout ----
error: expected identifier, found `(`
 --> src/ty/context.rs:463:3
  |
3 | fn(&'a u32) -> u32
  |   ^ expected identifier

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/context.rs - ty::context::TypeckResults::liberated_fn_sigs (line 453) stdout ----
error: expected one of `async`, `move`, `static`, `|`, or `||`, found keyword `fn`
 --> src/ty/context.rs:454:9
  |
3 | for<'a> fn(&'a u32) -> Foo
  |         ^^ expected one of `async`, `move`, `static`, `|`, or `||`

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/fold.rs - ty::fold (line 44) stdout ----
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `calls`
 --> src/ty/fold.rs:45:23
  |
3 | s.visit_with(visitor) calls
  |                       ^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/fold.rs - ty::fold::TyCtxt::any_free_region_meets::RegionVisitor::outer_index (line 489) stdout ----
error: unknown start of token: `
 --> src/ty/fold.rs:494:29
  |
7 | |          | here, would be `INNERMOST` shifted in by 1
  |                             ^
  |
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
  |
7 | |          | here, would be 'INNERMOST` shifted in by 1
  |                             ~

error: unknown start of token: `
 --> src/ty/fold.rs:494:39
  |
7 | |          | here, would be `INNERMOST` shifted in by 1
  |                                       ^
  |
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
  |
7 | |          | here, would be `INNERMOST' shifted in by 1
  |                                       ~

error: unknown start of token: `
 --> src/ty/fold.rs:495:36
  |
8 | | here, initially, binder would be `INNERMOST`
  |                                    ^
  |
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
  |
8 | | here, initially, binder would be 'INNERMOST`
  |                                    ~

error: unknown start of token: `
 --> src/ty/fold.rs:495:46
  |
8 | | here, initially, binder would be `INNERMOST`
  |                                              ^
  |
help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
  |
8 | | here, initially, binder would be `INNERMOST'
  |                                              ~

error: expected one of `async`, `move`, `static`, `|`, or `||`, found keyword `fn`
 --> src/ty/fold.rs:490:9
  |
3 | for<'a> fn(for<'b> fn(), T)
  |         ^^ expected one of `async`, `move`, `static`, `|`, or `||`

error: aborting due to 5 previous errors

Couldn't compile the test.
---- src/ty/mod.rs - ty::ImplOverlapKind::Issue33140 (line 1957) stdout ----
error: conflicting implementations of trait `main::_doctest_main_src_ty_mod_rs_1957_0::Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
 --> src/ty/mod.rs:1960:1
  |
4 | impl Trait for dyn Send + Sync {}
  | ------------------------------ first implementation here
5 | impl Trait for dyn Sync + Send {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
  |
  = note: `#[deny(order_dependent_trait_objects)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/mod.rs - ty::OpaqueHiddenType::ty (line 1089) stdout ----
error: expected `while`, `for`, `loop` or `{` after a label
 --> src/ty/mod.rs:1090:7
  |
3 | Foo<'a, T> = ?C
  |       ^ expected `while`, `for`, `loop` or `{` after a label

error: expected one of `.`, `:`, `;`, `?`, `for`, `loop`, `while`, `{`, `}`, or an operator, found `,`
 --> src/ty/mod.rs:1090:7
  |
3 | Foo<'a, T> = ?C
  |       ^ expected one of 10 possible tokens
  |
help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
  |
3 | Foo::<'a, T> = ?C
  |    ++

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/ty/context.rs - ty::context::TypeckResults::liberated_fn_sigs (line 447) stdout ----
error[E0404]: expected trait, found derive macro `Debug`
 --> src/ty/context.rs:448:25
  |
3 | fn foo(x: &u32) -> impl Debug { *x }
  |                         ^^^^^ not a trait
  |
help: consider importing one of these items instead
  |
2 | use core::fmt::Debug;
  |
2 | use std::fmt::Debug;
  |

error: aborting due to previous error

For more information about this error, try `rustc --explain E0404`.
Couldn't compile the test.
---- src/ty/mod.rs - ty::UniverseIndex (line 1131) stdout ----
error: unexpected token: `...`
 --> src/ty/mod.rs:1134:36
  |
5 |   let y: for<'a> fn(&'a u8, Foo) = ...;
  |                                    ^^^
  |
help: use `..` for an exclusive range
  |
5 |   let y: for<'a> fn(&'a u8, Foo) = ..;
  |                                    ~~
help: or `..=` for an inclusive range
  |
5 |   let y: for<'a> fn(&'a u8, Foo) = ..=;
  |                                    ~~~

error[E0586]: inclusive range with no end
 --> src/ty/mod.rs:1134:36
  |
5 |   let y: for<'a> fn(&'a u8, Foo) = ...;
  |                                    ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0586`.
Couldn't compile the test.
---- src/ty/inhabitedness/mod.rs - ty::inhabitedness::TyCtxt::is_ty_uninhabited_from (line 59) stdout ----
error[E0412]: cannot find type `Void` in this scope
  --> src/ty/inhabitedness/mod.rs:71:16
   |
14 |         _priv: Void,
   |                ^^^^ not found in this scope
   |
help: consider importing this enum
   |
13 |     use chalk_ir::Void;
   |

error[E0658]: the `!` type is experimental
 --> src/ty/inhabitedness/mod.rs:64:20
  |
7 |             _priv: !,
  |                    ^
  |
  = note: see issue #35121 <https://github.com/rust-lang/rust/issues/35121> for more information
  = help: add `#![feature(never_type)]` to the crate attributes to enable

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0412, E0658.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/ty/mod.rs - ty::UniverseIndex::next_universe (line 1170) stdout ----
error: expected one of `async`, `move`, `static`, `|`, or `||`, found keyword `fn`
 --> src/ty/mod.rs:1171:9
  |
3 | for<'a> fn(&'a u32)
  |         ^^ expected one of `async`, `move`, `static`, `|`, or `||`

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/instance.rs - ty::instance::Instance::resolve (line 340) stdout ----
error: unexpected token: `...`
 --> src/ty/instance.rs:341:26
  |
3 | fn foo<T: Debug>(t: T) { ... }
  |                          ^^^
  |
help: use `..` for an exclusive range
  |
3 | fn foo<T: Debug>(t: T) { .. }
  |                          ~~
help: or `..=` for an inclusive range
  |
3 | fn foo<T: Debug>(t: T) { ..= }
  |                          ~~~

error[E0586]: inclusive range with no end
 --> src/ty/instance.rs:341:26
  |
3 | fn foo<T: Debug>(t: T) { ... }
  |                          ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0404]: expected trait, found derive macro `Debug`
 --> src/ty/instance.rs:341:11
  |
3 | fn foo<T: Debug>(t: T) { ... }
  |           ^^^^^ not a trait
  |
help: consider importing one of these items instead
  |
2 | use core::fmt::Debug;
  |
2 | use std::fmt::Debug;
  |

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0404, E0586.
For more information about an error, try `rustc --explain E0404`.
Couldn't compile the test.
---- src/ty/mod.rs - ty::InstantiatedPredicates (line 1029) stdout ----
error: expected identifier, found `...`
 --> src/ty/mod.rs:1030:28
  |
3 | struct Foo<T, U: Bar<T>> { ... }
  |                            ^^^ expected identifier

error[E0405]: cannot find trait `Bar` in this scope
 --> src/ty/mod.rs:1030:18
  |
3 | struct Foo<T, U: Bar<T>> { ... }
  |                  ^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0405`.
Couldn't compile the test.
---- src/ty/inhabitedness/mod.rs - ty::inhabitedness::TyCtxt::is_ty_uninhabited_from (line 87) stdout ----
error: unexpected token: `...`
 --> src/ty/inhabitedness/mod.rs:88:34
  |
3 | let foo_result: Result<T, Foo> = ... ;
  |                                  ^^^
  |
help: use `..` for an exclusive range
  |
3 | let foo_result: Result<T, Foo> = .. ;
  |                                  ~~
help: or `..=` for an inclusive range
  |
3 | let foo_result: Result<T, Foo> = ..= ;
  |                                  ~~~

error[E0586]: inclusive range with no end
 --> src/ty/inhabitedness/mod.rs:88:34
  |
3 | let foo_result: Result<T, Foo> = ... ;
  |                                  ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0412]: cannot find type `T` in this scope
 --> src/ty/inhabitedness/mod.rs:88:24
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ty_inhabitedness_mod_rs_87_0() {
  |                                                                                       - help: you might be missing a type parameter: `<T>`
3 | let foo_result: Result<T, Foo> = ... ;
  |                        ^ not found in this scope

error[E0412]: cannot find type `Foo` in this scope
 --> src/ty/inhabitedness/mod.rs:88:27
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ty_inhabitedness_mod_rs_87_0() {
  |                                                                                       - help: you might be missing a type parameter: `<Foo>`
3 | let foo_result: Result<T, Foo> = ... ;
  |                           ^^^ not found in this scope

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0412, E0586.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/ty/sty.rs - ty::sty::ClosureSubsts (line 280) stdout ----
error: expected one of `,`, `:`, or `>`, found `...`
 --> src/ty/sty.rs:281:19
  |
3 | struct Closure<'l0...'li, T0...Tj, CK, CS, U>(...U);
  |                   ^^^ expected one of `,`, `:`, or `>`

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/sty.rs - ty::sty::ClosureSubsts (line 299) stdout ----
error: expected expression, found reserved keyword `do`
 --> src/ty/sty.rs:301:6
  |
4 |      do(|| data.count += 1)
  |      ^^ expected expression

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/sty.rs - ty::sty::ClosureSubsts (line 305) stdout ----
error[E0743]: C-variadic type `...` may not be nested inside another type
 --> src/ty/sty.rs:306:26
  |
3 | struct Closure<'a, T, U>(...U);
  |                          ^^^

error: expected one of `)` or `,`, found `U`
 --> src/ty/sty.rs:306:29
  |
3 | struct Closure<'a, T, U>(...U);
  |                             ^
  |                             |
  |                             expected one of `)` or `,`
  |                             help: missing `,`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0743`.
Couldn't compile the test.
---- src/ty/sty.rs - ty::sty::ExistentialTraitRef (line 1016) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `T`
 --> src/ty/sty.rs:1017:8
  |
3 | exists T. T: Trait<'a, 'b, X, Y>
  |        ^ expected one of 8 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/sty.rs - ty::sty::InlineConstSubsts (line 764) stdout ----
error: expected one of `:`, `;`, or `=`, found `<`
 --> src/ty/sty.rs:765:18
  |
3 | const InlineConst<'l0...'li, T0...Tj, R>: R;
  |                  ^ expected one of `:`, `;`, or `=`

error: missing type for `const` item
 --> src/ty/sty.rs:765:7
  |
3 | const InlineConst<'l0...'li, T0...Tj, R>: R;
  |       ^^^^^^^^^^^ help: provide a type for the item: `InlineConst: <type>`

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/ty/sty.rs - ty::sty::RegionKind (line 1437) stdout ----
error: expected identifier, found `-`
 --> src/ty/sty.rs:1438:8
  |
3 | static ----------+-----...------+       (greatest)
  |        ^ expected identifier

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/sty.rs - ty::sty::ClosureSubsts (line 313) stdout ----
error: non-item in item list
 --> src/ty/sty.rs:315:5
  |
3 | impl<'b, 'a, T> FnMut() for Closure<'a, T, (&'b mut &'a mut T,)> {
  |                                                                  - item list starts here
4 |     ...
  |     ^^^ non-item starts here
5 | }
  | - item list ends here

error[E0412]: cannot find type `Closure` in this scope
 --> src/ty/sty.rs:314:29
  |
3 | impl<'b, 'a, T> FnMut() for Closure<'a, T, (&'b mut &'a mut T,)> {
  |                             ^^^^^^^ not found in this scope
  |
help: there is an enum variant `chalk_ir::TyKind::Closure` and 16 others; try using the variant's enum
  |
3 | impl<'b, 'a, T> FnMut() for chalk_ir::TyKind {
  |                             ~~~~~~~~~~~~~~~~
3 | impl<'b, 'a, T> FnMut() for rustc_ast::ExprKind {
  |                             ~~~~~~~~~~~~~~~~~~~
3 | impl<'b, 'a, T> FnMut() for rustc_ast::ExprPrecedence {
  |                             ~~~~~~~~~~~~~~~~~~~~~~~~~
3 | impl<'b, 'a, T> FnMut() for rustc_ast::visit::FnKind {
  |                             ~~~~~~~~~~~~~~~~~~~~~~~~
    and 12 other candidates

error[E0183]: manual implementations of `FnMut` are experimental
 --> src/ty/sty.rs:314:17
  |
3 | impl<'b, 'a, T> FnMut() for Closure<'a, T, (&'b mut &'a mut T,)> {
  |                 ^^^^^^^ manual implementations of `FnMut` are experimental
  |
  = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable

error[E0229]: associated type bindings are not allowed here
 --> src/ty/sty.rs:314:17
  |
3 | impl<'b, 'a, T> FnMut() for Closure<'a, T, (&'b mut &'a mut T,)> {
  |                 ^^^^^^^ associated type not allowed here

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0183, E0229, E0412.
For more information about an error, try `rustc --explain E0183`.
Couldn't compile the test.
---- src/ty/sty.rs - ty::sty::Region::free_region_binding_scope (line 1783) stdout ----
error: non-item in item list
  --> src/ty/sty.rs:1785:6
   |
3  | impl<'a> Foo {
   |              - item list starts here
4  |      ^^ -- early bound, declared on an impl
   |      ^ non-item starts here
...
11 | }
   | - item list ends here

error[E0412]: cannot find type `Foo` in this scope
 --> src/ty/sty.rs:1784:10
  |
3 | impl<'a> Foo {
  |          ^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/ty/sty.rs - ty::sty::TraitRef (line 940) stdout ----
error: comparison operators cannot be chained
 --> src/ty/sty.rs:941:7
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ty_sty_rs_940_0() {
  |                                                                             - while parsing this struct
3 | T: Foo<U>
  |       ^ ^
  |
  = help: use `::<...>` instead of `<...>` to specify lifetime, type, or const arguments
  = help: or use `(...)` if you meant to specify fn arguments

error[E0425]: cannot find value `T` in this scope
 --> src/ty/sty.rs:941:1
  |
3 | T: Foo<U>
  | ^ expecting a type here because of type ascription
  |
help: you might have meant to write a `struct` literal
  |
2 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ty_sty_rs_940_0() { SomeStruct {
3 | T: Foo<U>
4 ~ }} _doctest_main_src_ty_sty_rs_940_0() }
  |
help: you might be missing a type parameter
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ty_sty_rs_940_0<T>() {
  |                                                                          +++

error[E0412]: cannot find type `Foo` in this scope
 --> src/ty/sty.rs:941:4
  |
3 | T: Foo<U>
  |    ^^^ expecting a type here because of type ascription
  |
help: you might have meant to write a `struct` literal
  |
2 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ty_sty_rs_940_0() { SomeStruct {
3 | T: Foo<U>
4 ~ }} _doctest_main_src_ty_sty_rs_940_0() }
  |

error[E0412]: cannot find type `U` in this scope
 --> src/ty/sty.rs:941:8
  |
3 | T: Foo<U>
  |        ^ expecting a type here because of type ascription
  |
help: you might have meant to write a `struct` literal
  |
2 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ty_sty_rs_940_0() { SomeStruct {
3 | T: Foo<U>
4 ~ }} _doctest_main_src_ty_sty_rs_940_0() }
  |
help: there is an enum variant `rustc_middle::ty::cast::IntTy::U`; try using the variant's enum
  |
3 | T: Foo<rustc_middle::ty::cast::IntTy>
  |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: you might be missing a type parameter
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ty_sty_rs_940_0<U>() {
  |                                                                          +++

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/ty/subst.rs - ty::subst::SubstFolder::shift_vars_through_binders (line 688) stdout ----
error: expected `;`, found `}`
 --> src/ty/subst.rs:690:42
  |
4 | type MetaFunc = for<'a> fn(Func<&'a i32>)
  |                                          ^ help: add `;` here
5 | } _doctest_main_src_ty_subst_rs_688_0() }
  | - unexpected token

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/subst.rs - ty::subst::SubstFolder::shift_vars_through_binders (line 695) stdout ----
error: expected one of `async`, `move`, `static`, `|`, or `||`, found keyword `fn`
 --> src/ty/subst.rs:696:9
  |
3 | for<'a> fn(fn(&'a i32))
  |         ^^ expected one of `async`, `move`, `static`, `|`, or `||`

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/subst.rs - ty::subst::SubstFolder::shift_vars_through_binders (line 717) stdout ----
error: expected one of `async`, `move`, `static`, `|`, or `||`, found keyword `fn`
 --> src/ty/subst.rs:718:9
  |
3 | for<'a> fn((&'a i32, fn(&'a i32)))
  |         ^^ expected one of `async`, `move`, `static`, `|`, or `||`

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/subst.rs - ty::subst::SubstFolder::shift_vars_through_binders (line 710) stdout ----
error: expected `;`, found `}`
 --> src/ty/subst.rs:712:52
  |
4 | type MetaFuncTuple = for<'a> fn(FuncTuple<&'a i32>)
  |                                                    ^ help: add `;` here
5 | } _doctest_main_src_ty_subst_rs_710_0() }
  | - unexpected token

error: aborting due to previous error

Couldn't compile the test.
---- src/ty/subst.rs - ty::subst::UserSelfTy (line 770) stdout ----
error[E0392]: parameter `T` is never used
 --> src/ty/subst.rs:771:12
  |
3 | struct Foo<T> { }
  |            ^ unused parameter
  |
  = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
  = help: if you intended `T` to be a const parameter, use `const T: usize` instead

error: aborting due to previous error

For more information about this error, try `rustc --explain E0392`.
Couldn't compile the test.
---- src/ty/sty.rs - ty::sty::TyKind::GeneratorWitness (line 190) stdout ----
error[E0658]: yield syntax is experimental
 --> src/ty/sty.rs:193:5
  |
5 |     yield a;
  |     ^^^^^^^
  |
  = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
  = help: add `#![feature(generators)]` to the crate attributes to enable

error[E0658]: yield syntax is experimental
 --> src/ty/sty.rs:194:5
  |
6 |     yield x[0];
  |     ^^^^^^^^^^
  |
  = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
  = help: add `#![feature(generators)]` to the crate attributes to enable

error[E0308]: mismatched types
 --> src/ty/sty.rs:191:1
  |
2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ty_sty_rs_190_0() {
  |                                                                               - help: a return type might be missing here: `-> _`
3 | / |a| {
4 | |     let x = &vec![3];
5 | |     yield a;
6 | |     yield x[0];
7 | | }
  | |_^ expected `()`, found generator
  |
  = note: expected unit type `()`
             found generator `[generator@src/ty/sty.rs:3:1: 7:2]`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0308, E0658.
For more information about an error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/ty/walk.rs - ty::walk::TypeWalker::skip_current_subtree (line 37) stdout ----
error: unexpected token: `...`
 --> src/ty/walk.rs:38:28
  |
3 | let mut iter: TypeWalker = ...;
  |                            ^^^
  |
help: use `..` for an exclusive range
  |
3 | let mut iter: TypeWalker = ..;
  |                            ~~
help: or `..=` for an inclusive range
  |
3 | let mut iter: TypeWalker = ..=;
  |                            ~~~

error[E0586]: inclusive range with no end
 --> src/ty/walk.rs:38:28
  |
3 | let mut iter: TypeWalker = ...;
  |                            ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0412]: cannot find type `TypeWalker` in this scope
 --> src/ty/walk.rs:38:15
  |
3 | let mut iter: TypeWalker = ...;
  |               ^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use rustc_middle::ty::walk::TypeWalker;
  |

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0412, E0586.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/ty/util.rs - ty::util::ExplicitSelf::determine (line 975) stdout ----
error: expected one of `->`, `where`, or `{`, found keyword `fn`
  --> src/ty/util.rs:986:5
   |
3  | impl<'a> Foo for &'a T {
   |                        - while parsing this item list starting here
...
12 |     fn method_err2(self: &'static T) // ExplicitSelf::ByValue
   |                                     - expected one of `->`, `where`, or `{`
13 |     fn method_err3(self: &&T) // ExplicitSelf::ByReference
   |     ^^ unexpected token
14 | }
   | - the item list ends here

error: associated function in `impl` without body
 --> src/ty/util.rs:978:5
  |
5 |     fn method1(self: &&'a T); // ExplicitSelf::ByReference
  |     ^^^^^^^^^^^^^^^^^^^^^^^^-
  |                             |
  |                             help: provide a definition for the function: `{ <body> }`

error: associated function in `impl` without body
 --> src/ty/util.rs:979:5
  |
6 |     fn method2(self: &'a T); // ExplicitSelf::ByValue
  |     ^^^^^^^^^^^^^^^^^^^^^^^-
  |                            |
  |                            help: provide a definition for the function: `{ <body> }`

error: associated function in `impl` without body
 --> src/ty/util.rs:980:5
  |
7 |     fn method3(self: Box<&'a T>); // ExplicitSelf::ByBox
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
  |                                 |
  |                                 help: provide a definition for the function: `{ <body> }`

error: associated function in `impl` without body
 --> src/ty/util.rs:981:5
  |
8 |     fn method4(self: Rc<&'a T>); // ExplicitSelf::Other
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^-
  |                                |
  |                                help: provide a definition for the function: `{ <body> }`

error: associated function in `impl` without body
  --> src/ty/util.rs:984:5
   |
11 |     fn method_err1(self: &'a mut T); // ExplicitSelf::Other
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
   |                                    |
   |                                    help: provide a definition for the function: `{ <body> }`

error[E0405]: cannot find trait `Foo` in this scope
 --> src/ty/util.rs:976:10
  |
3 | impl<'a> Foo for &'a T {
  |          ^^^ not found in this scope

error[E0412]: cannot find type `T` in this scope
 --> src/ty/util.rs:976:22
  |
3 | impl<'a> Foo for &'a T {
  |                      ^ not found in this scope

error[E0412]: cannot find type `T` in this scope
 --> src/ty/util.rs:978:27
  |
5 |     fn method1(self: &&'a T); // ExplicitSelf::ByReference
  |                           ^ not found in this scope

error[E0412]: cannot find type `T` in this scope
 --> src/ty/util.rs:979:26
  |
6 |     fn method2(self: &'a T); // ExplicitSelf::ByValue
  |                          ^ not found in this scope

error[E0412]: cannot find type `T` in this scope
 --> src/ty/util.rs:980:30
  |
3 | impl<'a> Foo for &'a T {
  |        - help: you might be missing a type parameter: `, T`
...
7 |     fn method3(self: Box<&'a T>); // ExplicitSelf::ByBox
  |                              ^ not found in this scope

error[E0412]: cannot find type `Rc` in this scope
 --> src/ty/util.rs:981:22
  |
8 |     fn method4(self: Rc<&'a T>); // ExplicitSelf::Other
  |                      ^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use std::rc::Rc;
  |

error[E0412]: cannot find type `T` in this scope
 --> src/ty/util.rs:981:29
  |
3 | impl<'a> Foo for &'a T {
  |        - help: you might be missing a type parameter: `, T`
...
8 |     fn method4(self: Rc<&'a T>); // ExplicitSelf::Other
  |                             ^ not found in this scope

error[E0412]: cannot find type `T` in this scope
  --> src/ty/util.rs:984:34
   |
11 |     fn method_err1(self: &'a mut T); // ExplicitSelf::Other
   |                                  ^ not found in this scope

error: aborting due to 14 previous errors

Some errors have detailed explanations: E0405, E0412.
For more information about an error, try `rustc --explain E0405`.
Couldn't compile the test.

failures:
    src/hir/map/mod.rs - hir::map::Map::get_return_block (line 752)
    src/infer/mod.rs - infer::MemberConstraint (line 13)
    src/mir/interpret/allocation.rs - mir::interpret::allocation::InitMask::find_bit::find_bit_fast (line 749)
    src/mir/mod.rs - mir::BorrowKind::Shallow (line 732)
    src/mir/mod.rs - mir::BorrowKind::Unique (line 750)
    src/mir/mod.rs - mir::BorrowKind::Unique (line 756)
    src/mir/mod.rs - mir::BorrowKind::Unique (line 765)
    src/mir/mod.rs - mir::LocalDecl::source_info (line 1007)
    src/mir/mod.rs - mir::ProjectionElem::ConstantIndex (line 1979)
    src/mir/mod.rs - mir::StatementKind::AscribeUserType (line 1685)
    src/mir/mod.rs - mir::UserTypeProjections (line 3018)
    src/mir/mono.rs - mir::mono::CodegenUnitNameBuilder::build_cgu_name (line 461)
    src/mir/terminator.rs - mir::terminator::TerminatorKind::DropAndReplace (line 205)
    src/mir/terminator.rs - mir::terminator::TerminatorKind::DropAndReplace (line 213)
    src/mir/visit.rs - mir::visit (line 32)
    src/mir/visit.rs - mir::visit::MutatingUseContext::Projection (line 1203)
    src/mir/visit.rs - mir::visit::NonMutatingUseContext::Projection (line 1174)
    src/traits/mod.rs - traits::ImplSource (line 518)
    src/traits/mod.rs - traits::Reveal::UserFacing (line 50)
    src/traits/specialization_graph.rs - traits::specialization_graph::LeafDef::finalizing_node (line 182)
    src/ty/adjustment.rs - ty::adjustment::Adjustment (line 62)
    src/ty/adt.rs - ty::adt::AdtDefData (line 85)
    src/ty/closure.rs - ty::closure::BorrowKind::UniqueImmBorrow (line 375)
    src/ty/closure.rs - ty::closure::BorrowKind::UniqueImmBorrow (line 383)
    src/ty/closure.rs - ty::closure::BorrowKind::UniqueImmBorrow (line 394)
    src/ty/closure.rs - ty::closure::CaptureInfo::capture_kind_expr_id (line 292)
    src/ty/closure.rs - ty::closure::CaptureInfo::capture_kind_expr_id (line 308)
    src/ty/context.rs - ty::context::TypeckResults::liberated_fn_sigs (line 447)
    src/ty/context.rs - ty::context::TypeckResults::liberated_fn_sigs (line 453)
    src/ty/context.rs - ty::context::TypeckResults::liberated_fn_sigs (line 462)
    src/ty/fold.rs - ty::fold (line 44)
    src/ty/fold.rs - ty::fold::TyCtxt::any_free_region_meets::RegionVisitor::outer_index (line 489)
    src/ty/inhabitedness/mod.rs - ty::inhabitedness::TyCtxt::is_ty_uninhabited_from (line 59)
    src/ty/inhabitedness/mod.rs - ty::inhabitedness::TyCtxt::is_ty_uninhabited_from (line 87)
    src/ty/instance.rs - ty::instance::Instance::resolve (line 340)
    src/ty/mod.rs - ty::ImplOverlapKind::Issue33140 (line 1957)
    src/ty/mod.rs - ty::InstantiatedPredicates (line 1029)
    src/ty/mod.rs - ty::OpaqueHiddenType::ty (line 1089)
    src/ty/mod.rs - ty::UniverseIndex (line 1131)
    src/ty/mod.rs - ty::UniverseIndex::next_universe (line 1170)
    src/ty/sty.rs - ty::sty::ClosureSubsts (line 280)
    src/ty/sty.rs - ty::sty::ClosureSubsts (line 299)
    src/ty/sty.rs - ty::sty::ClosureSubsts (line 305)
    src/ty/sty.rs - ty::sty::ClosureSubsts (line 313)
    src/ty/sty.rs - ty::sty::ExistentialTraitRef (line 1016)
    src/ty/sty.rs - ty::sty::InlineConstSubsts (line 764)
    src/ty/sty.rs - ty::sty::Region::free_region_binding_scope (line 1783)
    src/ty/sty.rs - ty::sty::RegionKind (line 1437)
    src/ty/sty.rs - ty::sty::TraitRef (line 940)
    src/ty/sty.rs - ty::sty::TyKind::GeneratorWitness (line 190)
    src/ty/subst.rs - ty::subst::SubstFolder::shift_vars_through_binders (line 688)
    src/ty/subst.rs - ty::subst::SubstFolder::shift_vars_through_binders (line 695)
    src/ty/subst.rs - ty::subst::SubstFolder::shift_vars_through_binders (line 710)
    src/ty/subst.rs - ty::subst::SubstFolder::shift_vars_through_binders (line 717)
    src/ty/subst.rs - ty::subst::UserSelfTy (line 770)
    src/ty/util.rs - ty::util::ExplicitSelf::determine (line 975)
    src/ty/walk.rs - ty::walk::TypeWalker::skip_current_subtree (line 37)

test result: FAILED. 21 passed; 57 failed; 19 ignored; 0 measured; 0 filtered out; finished in 1.29s

error: test failed, to rerun pass '--doc'
	finished in 4.961 seconds
Testing rustc_mir_build stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.14s
   Doc-tests rustc_mir_build

running 28 tests
FFFFFFFFFFFFFFFFFFF.FFFFFFFF
failures:

---- src/build/matches/mod.rs - build::matches::Builder::select_matched_candidates (line 1158) stdout ----
error: unexpected token: `...`
 --> src/build/matches/mod.rs:1159:1
  |
3 | ...
  | ^^^
  |
help: use `..` for an exclusive range
  |
3 | ..
  |
help: or `..=` for an inclusive range
  |
3 | ..=
  |

error: expected one of `.`, `;`, `?`, `}`, or an operator, found keyword `if`
 --> src/build/matches/mod.rs:1160:9
  |
4 | Some(x) if cond1 => ...
  |         ^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/build/expr/as_place.rs - build::expr::as_place::PlaceBase::Upvar (line 39) stdout ----
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
 --> src/build/expr/as_place.rs:43:24
  |
6 |     println!("{}", t.0.0.0);
  |                        ^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0610`.
Couldn't compile the test.
---- src/build/matches/mod.rs - build::matches::Builder::test_candidates (line 1479) stdout ----
error[E0308]: mismatched types
 --> src/build/matches/mod.rs:1481:1
  |
4 | / match (x, y, z) {
5 | |     (true, _, true) => true,    // (0)
6 | |     (_, true, _) => true,       // (1)
7 | |     (false, false, _) => false, // (2)
8 | |     (true, _, false) => false,  // (3)
9 | | }
  | |_^ expected `()`, found `bool`
  |
help: consider using a semicolon here
  |
9 | };
  |  +
help: try adding a return type
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_build_matches_mod_rs_1479_0() -> bool {
  |                                                                                         +++++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/build/expr/as_operand.rs - build::expr::as_operand::Builder::as_local_call_operand (line 63) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `foo`
 --> src/build/expr/as_operand.rs:64:24
  |
3 | let tmp0 = box_p; call foo(*tmp0)
  |                        ^^^ expected one of 8 possible tokens

error[E0425]: cannot find value `box_p` in this scope
 --> src/build/expr/as_operand.rs:64:12
  |
3 | let tmp0 = box_p; call foo(*tmp0)
  |            ^^^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/build/expr/as_operand.rs - build::expr::as_operand::Builder::as_local_call_operand (line 45) stdout ----
error: unexpected token: `...`
 --> src/build/expr/as_operand.rs:46:24
  |
3 | fn foo(p: dyn Debug) { ... }
  |                        ^^^
  |
help: use `..` for an exclusive range
  |
3 | fn foo(p: dyn Debug) { .. }
  |                        ~~
help: or `..=` for an inclusive range
  |
3 | fn foo(p: dyn Debug) { ..= }
  |                        ~~~

error[E0586]: inclusive range with no end
 --> src/build/expr/as_operand.rs:46:24
  |
3 | fn foo(p: dyn Debug) { ... }
  |                        ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0404]: expected trait, found derive macro `Debug`
 --> src/build/expr/as_operand.rs:46:15
  |
3 | fn foo(p: dyn Debug) { ... }
  |               ^^^^^ not a trait
  |
help: consider importing one of these items instead
  |
2 | use core::fmt::Debug;
  |
2 | use std::fmt::Debug;
  |

error[E0404]: expected trait, found derive macro `Debug`
 --> src/build/expr/as_operand.rs:48:23
  |
5 | fn bar(box_p: Box<dyn Debug>) { foo(*p); }
  |                       ^^^^^ not a trait
  |
help: consider importing one of these items instead
  |
2 | use core::fmt::Debug;
  |
2 | use std::fmt::Debug;
  |

error[E0425]: cannot find value `p` in this scope
 --> src/build/expr/as_operand.rs:48:38
  |
5 | fn bar(box_p: Box<dyn Debug>) { foo(*p); }
  |                                      ^ not found in this scope

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0404, E0425, E0586.
For more information about an error, try `rustc --explain E0404`.
Couldn't compile the test.
---- src/build/matches/mod.rs - build::matches::Builder::match_candidates (line 1032) stdout ----
error[E0425]: cannot find value `x` in this scope
 --> src/build/matches/mod.rs:1033:7
  |
3 | match x {
  |       ^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/build/expr/as_place.rs - build::expr::as_place::PlaceBase::Upvar (line 48) stdout ----
error[E0425]: cannot find function, tuple struct or tuple variant `Field` in this scope
 --> src/build/expr/as_place.rs:49:3
  |
3 | * Field(0)
  |   ^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_ast::ExprKind::Field;
  |
2 | use rustc_ast::ExprPrecedence::Field;
  |
2 | use rustc_hir::ExprKind::Field;
  |
2 | use rustc_hir::Node::Field;
  |
    and 4 other candidates

error[E0425]: cannot find function, tuple struct or tuple variant `Field` in this scope
 --> src/build/expr/as_place.rs:50:7
  |
4 |     * Field(0)
  |       ^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_ast::ExprKind::Field;
  |
2 | use rustc_ast::ExprPrecedence::Field;
  |
2 | use rustc_hir::ExprKind::Field;
  |
2 | use rustc_hir::Node::Field;
  |
    and 4 other candidates

error[E0425]: cannot find function, tuple struct or tuple variant `Field` in this scope
 --> src/build/expr/as_place.rs:51:11
  |
5 |         * Field(0)
  |           ^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_ast::ExprKind::Field;
  |
2 | use rustc_ast::ExprPrecedence::Field;
  |
2 | use rustc_hir::ExprKind::Field;
  |
2 | use rustc_hir::Node::Field;
  |
    and 4 other candidates

error[E0425]: cannot find function, tuple struct or tuple variant `UpvarRef` in this scope
 --> src/build/expr/as_place.rs:52:15
  |
6 |             * UpvarRef(t)
  |               ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `t` in this scope
 --> src/build/expr/as_place.rs:52:24
  |
6 |             * UpvarRef(t)
  |                        ^ not found in this scope

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/build/matches/mod.rs - build::matches::Builder::test_candidates (line 1521) stdout ----
error: unexpected token: `...`
 --> src/build/matches/mod.rs:1523:27
  |
4 |     "foo" if foo_guard => ...,
  |                           ^^^
  |
help: use `..` for an exclusive range
  |
4 |     "foo" if foo_guard => ..,
  |                           ~~
help: or `..=` for an inclusive range
  |
4 |     "foo" if foo_guard => ..=,
  |                           ~~~

error[E0586]: inclusive range with no end
 --> src/build/matches/mod.rs:1523:27
  |
4 |     "foo" if foo_guard => ...,
  |                           ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: unexpected token: `...`
 --> src/build/matches/mod.rs:1524:27
  |
5 |     "bar" if bar_guard => ...,
  |                           ^^^
  |
help: use `..` for an exclusive range
  |
5 |     "bar" if bar_guard => ..,
  |                           ~~
help: or `..=` for an inclusive range
  |
5 |     "bar" if bar_guard => ..=,
  |                           ~~~

error[E0586]: inclusive range with no end
 --> src/build/matches/mod.rs:1524:27
  |
5 |     "bar" if bar_guard => ...,
  |                           ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: unexpected token: `...`
 --> src/build/matches/mod.rs:1525:27
  |
6 |     "baz" if baz_guard => ...,
  |                           ^^^
  |
help: use `..` for an exclusive range
  |
6 |     "baz" if baz_guard => ..,
  |                           ~~
help: or `..=` for an inclusive range
  |
6 |     "baz" if baz_guard => ..=,
  |                           ~~~

error[E0586]: inclusive range with no end
 --> src/build/matches/mod.rs:1525:27
  |
6 |     "baz" if baz_guard => ...,
  |                           ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: unexpected `...`
 --> src/build/matches/mod.rs:1526:5
  |
7 |     ...
  |     ^^^
  |     |
  |     not a valid pattern
  |     help: for a rest pattern, use `..` instead of `...`

error: expected one of `=>`, `if`, or `|`, found `}`
 --> src/build/matches/mod.rs:1527:1
  |
7 |     ...
  |        - expected one of `=>`, `if`, or `|`
8 | }
  | ^ unexpected token

error[E0425]: cannot find value `x` in this scope
 --> src/build/matches/mod.rs:1522:7
  |
3 | match x {
  |       ^ not found in this scope

error[E0425]: cannot find value `foo_guard` in this scope
 --> src/build/matches/mod.rs:1523:14
  |
4 |     "foo" if foo_guard => ...,
  |              ^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `bar_guard` in this scope
 --> src/build/matches/mod.rs:1524:14
  |
5 |     "bar" if bar_guard => ...,
  |              ^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `baz_guard` in this scope
 --> src/build/matches/mod.rs:1525:14
  |
6 |     "baz" if baz_guard => ...,
  |              ^^^^^^^^^ not found in this scope

error: aborting due to 12 previous errors

Some errors have detailed explanations: E0425, E0586.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/build/expr/as_operand.rs - build::expr::as_operand::Builder::as_local_call_operand (line 53) stdout ----
error[E0425]: cannot find value `box_p` in this scope
 --> src/build/expr/as_operand.rs:54:13
  |
3 | let tmp0 = *box_p; // tmp0 would be the operand returned by this function call
  |             ^^^^^ not found in this scope

error[E0425]: cannot find function `foo` in this scope
 --> src/build/expr/as_operand.rs:55:1
  |
4 | foo(tmp0)
  | ^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat (line 16) stdout ----
error[E0004]: non-exhaustive patterns: `(i32::MIN..=-1_i32, _)` and `(201_i32..=i32::MAX, _)` not covered
 --> src/thir/pattern/deconstruct_pat.rs:17:7
  |
3 | match (0, false) {
  |       ^^^^^^^^^^ patterns `(i32::MIN..=-1_i32, _)` and `(201_i32..=i32::MAX, _)` not covered
  |
  = note: the matched value is of type `(i32, bool)`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
  |
6 ~     (0 ..=200, _) => {} // `p_2`
7 ~     (i32::MIN..=-1_i32, _) | (201_i32..=i32::MAX, _) => todo!() // `q`
  |

error: aborting due to previous error

For more information about this error, try `rustc --explain E0004`.
Couldn't compile the test.
---- src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat::SplitIntRange (line 347) stdout ----
error: expected parameter name, found `-`
 --> src/thir/pattern/deconstruct_pat.rs:348:3
  |
3 | |-------------------------| // `self`
  |   ^ expected parameter name

error: aborting due to previous error

Couldn't compile the test.
---- src/build/scope.rs - build::scope::Builder::record_operands_moved (line 958) stdout ----
error: expected identifier, found `...`
 --> src/build/scope.rs:960:3
  |
3 | bb {
  | -- while parsing this struct
4 |   ...
  |   ^^^ expected identifier

error: expected identifier, found `...`
 --> src/build/scope.rs:961:22
  |
3 | bb {
  | -- while parsing this struct
4 |   ...
5 |   _R = CALL(foo, _X, ...)
  |                      ^^^ expected identifier

error[E0422]: cannot find struct, variant or union type `bb` in this scope
 --> src/build/scope.rs:959:1
  |
3 | bb {
  | ^^ not found in this scope

error[E0425]: cannot find value `_X` in this scope
 --> src/build/scope.rs:961:18
  |
5 |   _R = CALL(foo, _X, ...)
  |                  ^^ not found in this scope

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0422, E0425.
For more information about an error, try `rustc --explain E0422`.
Couldn't compile the test.
---- src/build/scope.rs - build::scope::Builder::local_scope (line 814) stdout ----
error[E0425]: cannot find function `foo` in this scope
 --> src/build/scope.rs:815:1
  |
3 | foo(Box::new(2), panic!())
  | ^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/build/scope.rs - build::scope::Builder::record_operands_moved (line 947) stdout ----
error: unexpected token: `...`
 --> src/build/scope.rs:948:12
  |
3 | foo(bar(), ...)
  |            ^^^
  |
help: use `..` for an exclusive range
  |
3 | foo(bar(), ..)
  |            ~~
help: or `..=` for an inclusive range
  |
3 | foo(bar(), ..=)
  |            ~~~

error[E0586]: inclusive range with no end
 --> src/build/scope.rs:948:12
  |
3 | foo(bar(), ...)
  |            ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0425]: cannot find function `foo` in this scope
 --> src/build/scope.rs:948:1
  |
3 | foo(bar(), ...)
  | ^^^ not found in this scope

error[E0425]: cannot find function `bar` in this scope
 --> src/build/scope.rs:948:5
  |
3 | foo(bar(), ...)
  |     ^^^ not found in this scope

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0425, E0586.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/build/scope.rs - build::scope::Builder::local_scope (line 807) stdout ----
error[E0425]: cannot find function `foo` in this scope
 --> src/build/scope.rs:808:9
  |
3 | let x = foo(bar(X, Y));
  |         ^^^ not found in this scope

error[E0425]: cannot find function `bar` in this scope
 --> src/build/scope.rs:808:13
  |
3 | let x = foo(bar(X, Y));
  |             ^^^ not found in this scope

error[E0425]: cannot find value `X` in this scope
 --> src/build/scope.rs:808:17
  |
3 | let x = foo(bar(X, Y));
  |                 ^ not found in this scope
  |
help: consider importing this unit variant
  |
2 | use rustc_target::asm::AvrInlineAsmReg::X;
  |

error[E0425]: cannot find value `Y` in this scope
 --> src/build/scope.rs:808:20
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_build_scope_rs_807_0() {
  |                                                                               - help: you might be missing a type parameter: `<Y>`
3 | let x = foo(bar(X, Y));
  |                    ^ not found in this scope

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat::SplitIntRange (line 353) stdout ----
error: expected parameter name, found `-`
 --> src/thir/pattern/deconstruct_pat.rs:354:8
  |
3 | ||---|--||-|---|---|---|--|
  |        ^ expected parameter name

error: aborting due to previous error

Couldn't compile the test.
---- src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 153) stdout ----
error: expected one of `!`, `.`, `::`, `?`, `]`, `{`, or an operator, found `,`
 --> src/thir/pattern/usefulness.rs:158:6
  |
7 | [None, 0]
  |      ^ expected one of 7 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat::SplitVarLenSlice (line 502) stdout ----
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>`
 --> src/thir/pattern/deconstruct_pat.rs:504:4
  |
4 | [] => {}
  |    ^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to previous error

Couldn't compile the test.
---- src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat::Fields (line 1130) stdout ----
error[E0425]: cannot find function `foo` in this scope
 --> src/thir/pattern/deconstruct_pat.rs:1131:26
  |
3 | let x: [Option<u8>; 4] = foo();
  |                          ^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 237) stdout ----
error: expected expression, found `]`
  --> src/thir/pattern/usefulness.rs:246:2
   |
11 | [] // p_1''
   |  ^ expected expression

error: aborting due to previous error

Couldn't compile the test.
---- src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat::SplitVarLenSlice (line 494) stdout ----
error[E0425]: cannot find value `x` in this scope
 --> src/thir/pattern/deconstruct_pat.rs:495:7
  |
3 | match x {
  |       ^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 136) stdout ----
error[E0425]: cannot find value `x` in this scope
 --> src/thir/pattern/usefulness.rs:137:7
  |
3 | match x {
  |       ^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 123) stdout ----
error[E0433]: failed to resolve: use of undeclared type `Enum`
 --> src/thir/pattern/usefulness.rs:125:5
  |
4 |     Enum::Variant1(_) => {} // `p1`
  |     ^^^^ use of undeclared type `Enum`

error[E0433]: failed to resolve: use of undeclared type `Enum`
 --> src/thir/pattern/usefulness.rs:126:5
  |
5 |     Enum::Variant2(None, 0) => {} // `p2`
  |     ^^^^ use of undeclared type `Enum`

error[E0433]: failed to resolve: use of undeclared type `Enum`
 --> src/thir/pattern/usefulness.rs:127:5
  |
6 |     Enum::Variant2(Some(_), 0) => {} // `q`
  |     ^^^^ use of undeclared type `Enum`

error[E0425]: cannot find value `x` in this scope
 --> src/thir/pattern/usefulness.rs:124:7
  |
3 | match x {
  |       ^ not found in this scope

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0425, E0433.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 49) stdout ----
error: unexpected token: `...`
 --> src/thir/pattern/usefulness.rs:51:16
  |
4 |     Some(0) => ...,
  |                ^^^
  |
help: use `..` for an exclusive range
  |
4 |     Some(0) => ..,
  |                ~~
help: or `..=` for an inclusive range
  |
4 |     Some(0) => ..=,
  |                ~~~

error[E0586]: inclusive range with no end
 --> src/thir/pattern/usefulness.rs:51:16
  |
4 |     Some(0) => ...,
  |                ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: unexpected token: `...`
 --> src/thir/pattern/usefulness.rs:52:13
  |
5 |     None => ...,
  |             ^^^
  |
help: use `..` for an exclusive range
  |
5 |     None => ..,
  |             ~~
help: or `..=` for an inclusive range
  |
5 |     None => ..=,
  |             ~~~

error[E0586]: inclusive range with no end
 --> src/thir/pattern/usefulness.rs:52:13
  |
5 |     None => ...,
  |             ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0425]: cannot find value `x` in this scope
 --> src/thir/pattern/usefulness.rs:50:7
  |
3 | match x {
  |       ^ not found in this scope

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0425, E0586.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 37) stdout ----
error: unexpected token: `...`
 --> src/thir/pattern/usefulness.rs:39:16
  |
4 |     Some(_) => ...,
  |                ^^^
  |
help: use `..` for an exclusive range
  |
4 |     Some(_) => ..,
  |                ~~
help: or `..=` for an inclusive range
  |
4 |     Some(_) => ..=,
  |                ~~~

error[E0586]: inclusive range with no end
 --> src/thir/pattern/usefulness.rs:39:16
  |
4 |     Some(_) => ...,
  |                ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: unexpected token: `...`
 --> src/thir/pattern/usefulness.rs:40:13
  |
5 |     None => ..., // reachable: `None` is matched by this but not the branch above
  |             ^^^
  |
help: use `..` for an exclusive range
  |
5 |     None => .., // reachable: `None` is matched by this but not the branch above
  |             ~~
help: or `..=` for an inclusive range
  |
5 |     None => ..=, // reachable: `None` is matched by this but not the branch above
  |             ~~~

error[E0586]: inclusive range with no end
 --> src/thir/pattern/usefulness.rs:40:13
  |
5 |     None => ..., // reachable: `None` is matched by this but not the branch above
  |             ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: unexpected token: `...`
 --> src/thir/pattern/usefulness.rs:41:16
  |
6 |     Some(0) => ..., // unreachable: all the values this matches are already matched by
  |                ^^^
  |
help: use `..` for an exclusive range
  |
6 |     Some(0) => .., // unreachable: all the values this matches are already matched by
  |                ~~
help: or `..=` for an inclusive range
  |
6 |     Some(0) => ..=, // unreachable: all the values this matches are already matched by
  |                ~~~

error[E0586]: inclusive range with no end
 --> src/thir/pattern/usefulness.rs:41:16
  |
6 |     Some(0) => ..., // unreachable: all the values this matches are already matched by
  |                ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0425]: cannot find value `x` in this scope
 --> src/thir/pattern/usefulness.rs:38:7
  |
3 | match x {
  |       ^ not found in this scope

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0425, E0586.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/thir/pattern/usefulness.rs - thir::pattern::usefulness::Witness (line 662) stdout ----
error[E0425]: cannot find value `p` in this scope
 --> src/thir/pattern/usefulness.rs:665:8
  |
5 | match (p: Pair) {
  |        ^ expecting a type here because of type ascription

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/build/matches/mod.rs - build::matches::Builder::test_candidates (line 1503) stdout ----
error: unexpected token: `...`
 --> src/build/matches/mod.rs:1504:32
  |
3 | match (var0, var1, var2, var3, ...) {
  |                                ^^^
  |
help: use `..` for an exclusive range
  |
3 | match (var0, var1, var2, var3, ..) {
  |                                ~~
help: or `..=` for an inclusive range
  |
3 | match (var0, var1, var2, var3, ..=) {
  |                                ~~~

error[E0586]: inclusive range with no end
 --> src/build/matches/mod.rs:1504:32
  |
3 | match (var0, var1, var2, var3, ...) {
  |                                ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: unexpected `...`
 --> src/build/matches/mod.rs:1505:35
  |
4 |         (true, _, _, false, true, ...) => false,
  |                                   ^^^
  |                                   |
  |                                   not a valid pattern
  |                                   help: for a rest pattern, use `..` instead of `...`

error: unexpected `...`
 --> src/build/matches/mod.rs:1506:35
  |
5 |         (_, true, true, false, _, ...) => false,
  |                                   ^^^
  |                                   |
  |                                   not a valid pattern
  |                                   help: for a rest pattern, use `..` instead of `...`

error: unexpected `...`
 --> src/build/matches/mod.rs:1507:37
  |
6 |         (false, _, false, false, _, ...) => false,
  |                                     ^^^
  |                                     |
  |                                     not a valid pattern
  |                                     help: for a rest pattern, use `..` instead of `...`

error: unexpected `...`
 --> src/build/matches/mod.rs:1508:9
  |
7 |         ...
  |         ^^^
  |         |
  |         not a valid pattern
  |         help: for a rest pattern, use `..` instead of `...`

error: expected one of `=>`, `if`, or `|`, found reserved identifier `_`
 --> src/build/matches/mod.rs:1509:9
  |
7 |         ...
  |            - expected one of `=>`, `if`, or `|`
8 |         _ => true
  |         ^ unexpected token

error[E0425]: cannot find value `var0` in this scope
 --> src/build/matches/mod.rs:1504:8
  |
3 | match (var0, var1, var2, var3, ...) {
  |        ^^^^ not found in this scope

error[E0425]: cannot find value `var1` in this scope
 --> src/build/matches/mod.rs:1504:14
  |
3 | match (var0, var1, var2, var3, ...) {
  |              ^^^^ not found in this scope

error[E0425]: cannot find value `var2` in this scope
 --> src/build/matches/mod.rs:1504:20
  |
3 | match (var0, var1, var2, var3, ...) {
  |                    ^^^^ not found in this scope

error[E0425]: cannot find value `var3` in this scope
 --> src/build/matches/mod.rs:1504:26
  |
3 | match (var0, var1, var2, var3, ...) {
  |                          ^^^^ not found in this scope

error[E0308]: mismatched types
 --> src/build/matches/mod.rs:1504:1
  |
3 | / match (var0, var1, var2, var3, ...) {
4 | |         (true, _, _, false, true, ...) => false,
5 | |         (_, true, true, false, _, ...) => false,
6 | |         (false, _, false, false, _, ...) => false,
7 | |         ...
8 | |         _ => true
9 | |     }
  | |_____^ expected `()`, found `bool`
  |
help: consider using a semicolon here
  |
9 |     };
  |      +
help: try adding a return type
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_build_matches_mod_rs_1503_0() -> bool {
  |                                                                                         +++++++

error: aborting due to 12 previous errors

Some errors have detailed explanations: E0308, E0425, E0586.
For more information about an error, try `rustc --explain E0308`.
Couldn't compile the test.

failures:
    src/build/expr/as_operand.rs - build::expr::as_operand::Builder::as_local_call_operand (line 45)
    src/build/expr/as_operand.rs - build::expr::as_operand::Builder::as_local_call_operand (line 53)
    src/build/expr/as_operand.rs - build::expr::as_operand::Builder::as_local_call_operand (line 63)
    src/build/expr/as_place.rs - build::expr::as_place::PlaceBase::Upvar (line 39)
    src/build/expr/as_place.rs - build::expr::as_place::PlaceBase::Upvar (line 48)
    src/build/matches/mod.rs - build::matches::Builder::match_candidates (line 1032)
    src/build/matches/mod.rs - build::matches::Builder::select_matched_candidates (line 1158)
    src/build/matches/mod.rs - build::matches::Builder::test_candidates (line 1479)
    src/build/matches/mod.rs - build::matches::Builder::test_candidates (line 1503)
    src/build/matches/mod.rs - build::matches::Builder::test_candidates (line 1521)
    src/build/scope.rs - build::scope::Builder::local_scope (line 807)
    src/build/scope.rs - build::scope::Builder::local_scope (line 814)
    src/build/scope.rs - build::scope::Builder::record_operands_moved (line 947)
    src/build/scope.rs - build::scope::Builder::record_operands_moved (line 958)
    src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat (line 16)
    src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat::Fields (line 1130)
    src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat::SplitIntRange (line 347)
    src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat::SplitIntRange (line 353)
    src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat::SplitVarLenSlice (line 494)
    src/thir/pattern/deconstruct_pat.rs - thir::pattern::deconstruct_pat::SplitVarLenSlice (line 502)
    src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 123)
    src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 136)
    src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 153)
    src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 237)
    src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 37)
    src/thir/pattern/usefulness.rs - thir::pattern::usefulness (line 49)
    src/thir/pattern/usefulness.rs - thir::pattern::usefulness::Witness (line 662)

test result: FAILED. 1 passed; 27 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.74s

error: test failed, to rerun pass '--doc'
	finished in 1.262 seconds
Testing rustc_mir_dataflow stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_mir_dataflow

running 6 tests
iiFFFF
failures:

---- src/impls/mod.rs - impls::EverInitializedPlaces (line 211) stdout ----
error[E0384]: cannot assign twice to immutable variable `b`
  --> src/impls/mod.rs:219:9
   |
6  |     let a = S; let b = S; let c; let d;    // {a, b      }
   |                    -
   |                    |
   |                    first assignment to `b`
   |                    help: consider making this binding mutable: `mut b`
...
10 |         b = S;                             // {a, b,     }
   |         ^^^^^ cannot assign twice to immutable variable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0384`.
Couldn't compile the test.
---- src/impls/mod.rs - impls::MaybeInitializedPlaces (line 38) stdout ----
error[E0384]: cannot assign twice to immutable variable `b`
  --> src/impls/mod.rs:46:9
   |
6  |     let a = S; let b = S; let c; let d;    // {a, b}
   |                    -
   |                    |
   |                    first assignment to `b`
   |                    help: consider making this binding mutable: `mut b`
...
10 |         b = S;                             // {   b}
   |         ^^^^^ cannot assign twice to immutable variable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0384`.
Couldn't compile the test.
---- src/impls/mod.rs - impls::DefinitelyInitializedPlaces (line 156) stdout ----
error[E0384]: cannot assign twice to immutable variable `b`
  --> src/impls/mod.rs:164:9
   |
6  |     let a = S; let b = S; let c; let d;    // {a, b      }
   |                    -
   |                    |
   |                    first assignment to `b`
   |                    help: consider making this binding mutable: `mut b`
...
10 |         b = S;                             // {   b,     }
   |         ^^^^^ cannot assign twice to immutable variable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0384`.
Couldn't compile the test.
---- src/impls/mod.rs - impls::MaybeUninitializedPlaces (line 91) stdout ----
error[E0384]: cannot assign twice to immutable variable `b`
  --> src/impls/mod.rs:99:9
   |
6  |     let a = S; let b = S; let c; let d;    // {      c, d}
   |                    -
   |                    |
   |                    first assignment to `b`
   |                    help: consider making this binding mutable: `mut b`
...
10 |         b = S;                             // {a,    c, d}
   |         ^^^^^ cannot assign twice to immutable variable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0384`.
Couldn't compile the test.

failures:
    src/impls/mod.rs - impls::DefinitelyInitializedPlaces (line 156)
    src/impls/mod.rs - impls::EverInitializedPlaces (line 211)
    src/impls/mod.rs - impls::MaybeInitializedPlaces (line 38)
    src/impls/mod.rs - impls::MaybeUninitializedPlaces (line 91)

test result: FAILED. 0 passed; 4 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.02s

error: test failed, to rerun pass '--doc'
	finished in 0.364 seconds
Testing rustc_mir_transform stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_mir_transform

running 18 tests
iiiiFFFFFFFFFF.F.F
failures:

---- src/generator.rs - generator (line 22) stdout ----
error: expected `:`, found `...`
 --> src/generator.rs:24:11
  |
4 |     upvars...,
  |           ^^^ expected `:`

error: aborting due to previous error

Couldn't compile the test.
---- src/match_branches.rs - match_branches::MatchBranchSimplification (line 17) stdout ----
error: expected one of `async`, `|`, or `||`, found `_3`
 --> src/match_branches.rs:19:20
  |
4 |     switchInt(move _3) -> [42_isize: bb1, otherwise: bb2];
  |                    ^^ expected one of `async`, `|`, or `||`

error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->`
 --> src/match_branches.rs:19:24
  |
4 |     switchInt(move _3) -> [42_isize: bb1, otherwise: bb2];
  |                        ^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: expected type, found `{`
 --> src/match_branches.rs:18:6
  |
3 | bb0: {
  |    - ^ expected type
  |    |
  |    tried to parse a type due to this type ascription
  |
  = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
  = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information

error: aborting due to 3 previous errors

Couldn't compile the test.
---- src/simplify_comparison_integral.rs - simplify_comparison_integral::SimplifyComparisonIntegral (line 23) stdout ----
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->`
 --> src/simplify_comparison_integral.rs:24:15
  |
3 | switchInt(_4) -> [43i32: bb3, otherwise: bb2];
  |               ^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to previous error

Couldn't compile the test.
---- src/match_branches.rs - match_branches::MatchBranchSimplification (line 35) stdout ----
error: expected one of `async`, `|`, or `||`, found `_3`
 --> src/match_branches.rs:37:17
  |
4 |    _2 = Eq(move _3, const 42_isize);
  |                 ^^ expected one of `async`, `|`, or `||`

error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `->`
 --> src/match_branches.rs:38:9
  |
5 |    goto -> bb3;
  |         ^^ expected one of 8 possible tokens

error: struct literal body without path
 --> src/match_branches.rs:35:84
  |
2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_match_branches_rs_35_0() {
  |  ____________________________________________________________________________________^
3 | | bb0: {
4 | |    _2 = Eq(move _3, const 42_isize);
5 | |    goto -> bb3;
6 | | }
7 | | } _doctest_main_src_match_branches_rs_35_0() }
  | |_^
  |
help: you might have forgotten to add the struct literal inside the block
  |
2 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_match_branches_rs_35_0() { SomeStruct {
3 | bb0: {
4 |    _2 = Eq(move _3, const 42_isize);
5 |    goto -> bb3;
6 | }
7 ~ } } _doctest_main_src_match_branches_rs_35_0() }
  |

error: aborting due to 3 previous errors

Couldn't compile the test.
---- src/simplify_try.rs - simplify_try::SimplifyArmIdentity (line 35) stdout ----
error: expected one of `async`, `|`, or `||`, found `_LOCAL_1`
 --> src/simplify_try.rs:36:17
  |
3 | _LOCAL_0 = move _LOCAL_1
  |                 ^^^^^^^^ expected one of `async`, `|`, or `||`

error: aborting due to previous error

Couldn't compile the test.
---- src/simplify_comparison_integral.rs - simplify_comparison_integral::SimplifyComparisonIntegral (line 15) stdout ----
error: expected one of `async`, `|`, or `||`, found `_4`
 --> src/simplify_comparison_integral.rs:16:14
  |
3 | _3 = Eq(move _4, const 43i32);
  |              ^^ expected one of `async`, `|`, or `||`

error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->`
 --> src/simplify_comparison_integral.rs:18:15
  |
5 | switchInt(_3) -> [false: bb2, otherwise: bb3];
  |               ^^ expected one of `.`, `;`, `?`, `}`, or an operator

error[E0425]: cannot find value `_3` in this scope
 --> src/simplify_comparison_integral.rs:16:1
  |
3 | _3 = Eq(move _4, const 43i32);
  | ^^ not found in this scope

error[E0425]: cannot find function, tuple struct or tuple variant `StorageDead` in this scope
 --> src/simplify_comparison_integral.rs:17:1
  |
4 | StorageDead(_4);
  | ^^^^^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_middle::mir::StatementKind::StorageDead;
  |
2 | use rustc_middle::mir::visit::NonUseContext::StorageDead;
  |

error[E0425]: cannot find value `_4` in this scope
 --> src/simplify_comparison_integral.rs:17:13
  |
4 | StorageDead(_4);
  |             ^^ not found in this scope

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/simplify_try.rs - simplify_try::match_set_variant_field (line 495) stdout ----
error: expected one of `async`, `|`, or `||`, found `_LOCAL_INTO`
 --> src/simplify_try.rs:496:45
  |
3 | ((_LOCAL_FROM as Variant).FIELD: TY) = move _LOCAL_INTO;
  |                                -            ^^^^^^^^^^^ expected one of `async`, `|`, or `||`
  |                                |
  |                                tried to parse a type due to this type ascription
  |
  = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
  = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information

error: aborting due to previous error

Couldn't compile the test.
---- src/simplify_try.rs - simplify_try::match_get_variant_field (line 475) stdout ----
error[E0425]: cannot find value `_LOCAL_INTO` in this scope
 --> src/simplify_try.rs:476:1
  |
3 | _LOCAL_INTO = ((_LOCAL_FROM as Variant).FIELD: TY);
  | ^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `_LOCAL_FROM` in this scope
 --> src/simplify_try.rs:476:17
  |
3 | _LOCAL_INTO = ((_LOCAL_FROM as Variant).FIELD: TY);
  |                 ^^^^^^^^^^^ expecting a type here because of type ascription

error[E0412]: cannot find type `Variant` in this scope
 --> src/simplify_try.rs:476:32
  |
3 | _LOCAL_INTO = ((_LOCAL_FROM as Variant).FIELD: TY);
  |                                ^^^^^^^ expecting a type here because of type ascription
  |
help: consider importing one of these items
  |
2 | use rustc_ast::Variant;
  |
2 | use rustc_hir::Variant;
  |

error[E0412]: cannot find type `TY` in this scope
 --> src/simplify_try.rs:476:48
  |
3 | _LOCAL_INTO = ((_LOCAL_FROM as Variant).FIELD: TY);
  |                                                ^^ expecting a type here because of type ascription

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/simplify_try.rs - simplify_try::SimplifyArmIdentity (line 26) stdout ----
error: expected one of `async`, `|`, or `||`, found `_TMP_2`
 --> src/simplify_try.rs:29:42
  |
5 | ((_LOCAL_0 as Variant).FIELD: TY) = move _TMP_2;
  |                             -            ^^^^^^ expected one of `async`, `|`, or `||`
  |                             |
  |                             tried to parse a type due to this type ascription
  |
  = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
  = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information

error[E0425]: cannot find value `_LOCAL_TMP` in this scope
 --> src/simplify_try.rs:27:1
  |
3 | _LOCAL_TMP = ((_LOCAL_1 as Variant ).FIELD: TY );
  | ^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `_LOCAL_1` in this scope
 --> src/simplify_try.rs:27:16
  |
3 | _LOCAL_TMP = ((_LOCAL_1 as Variant ).FIELD: TY );
  |                ^^^^^^^^ expecting a type here because of type ascription

error[E0412]: cannot find type `Variant` in this scope
 --> src/simplify_try.rs:27:28
  |
3 | _LOCAL_TMP = ((_LOCAL_1 as Variant ).FIELD: TY );
  |                            ^^^^^^^ expecting a type here because of type ascription
  |
help: consider importing one of these items
  |
2 | use rustc_ast::Variant;
  |
2 | use rustc_hir::Variant;
  |

error[E0412]: cannot find type `TY` in this scope
 --> src/simplify_try.rs:27:45
  |
3 | _LOCAL_TMP = ((_LOCAL_1 as Variant ).FIELD: TY );
  |                                             ^^ expecting a type here because of type ascription

error[E0425]: cannot find value `_TMP_2` in this scope
 --> src/simplify_try.rs:28:1
  |
4 | _TMP_2 = _LOCAL_TMP;
  | ^^^^^^ not found in this scope

error[E0425]: cannot find value `_LOCAL_TMP` in this scope
 --> src/simplify_try.rs:28:10
  |
4 | _TMP_2 = _LOCAL_TMP;
  |          ^^^^^^^^^^ not found in this scope

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.
Couldn't compile the test.
---- src/simplify_try.rs - simplify_try::SimplifyBranchSameOptimizationFinder::statement_equality (line 693) stdout ----
error: expected one of `async`, `|`, or `||`, found `_1`
 --> src/simplify_try.rs:695:11
  |
4 | _0 = move _1;           // bb2
  |           ^^ expected one of `async`, `|`, or `||`

error[E0425]: cannot find function `discriminant` in this scope
 --> src/simplify_try.rs:694:1
  |
3 | discriminant(_0) = 0;   // bb1
  | ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use core::mem::discriminant;
  |
2 | use std::mem::discriminant;
  |

error[E0425]: cannot find value `_0` in this scope
 --> src/simplify_try.rs:694:14
  |
3 | discriminant(_0) = 0;   // bb1
  |              ^^ not found in this scope

error[E0070]: invalid left-hand side of assignment
 --> src/simplify_try.rs:694:18
  |
3 | discriminant(_0) = 0;   // bb1
  | ---------------- ^
  | |
  | cannot assign to this expression

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0070, E0425.
For more information about an error, try `rustc --explain E0070`.
Couldn't compile the test.
---- src/simplify_try.rs - simplify_try::match_set_discr (line 510) stdout ----
error[E0425]: cannot find function `discriminant` in this scope
 --> src/simplify_try.rs:511:1
  |
3 | discriminant(_LOCAL_TO_SET) = VAR_IDX;
  | ^^^^^^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use core::mem::discriminant;
  |
2 | use std::mem::discriminant;
  |

error[E0425]: cannot find value `_LOCAL_TO_SET` in this scope
 --> src/simplify_try.rs:511:14
  |
3 | discriminant(_LOCAL_TO_SET) = VAR_IDX;
  |              ^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `VAR_IDX` in this scope
 --> src/simplify_try.rs:511:31
  |
3 | discriminant(_LOCAL_TO_SET) = VAR_IDX;
  |                               ^^^^^^^ not found in this scope

error[E0070]: invalid left-hand side of assignment
 --> src/simplify_try.rs:511:29
  |
3 | discriminant(_LOCAL_TO_SET) = VAR_IDX;
  | --------------------------- ^
  | |
  | cannot assign to this expression

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0070, E0425.
For more information about an error, try `rustc --explain E0070`.
Couldn't compile the test.
---- src/simplify_try.rs - simplify_try (line 3) stdout ----
error[E0425]: cannot find value `x` in this scope
 --> src/simplify_try.rs:4:7
  |
3 | match x {
  |       ^ not found in this scope

error[E0308]: mismatched types
 --> src/simplify_try.rs:4:1
  |
3 | / match x {
4 | |     Ok(x) => Ok(x),
5 | |     Err(x) => Err(x)
6 | | }
  | |_^ expected `()`, found enum `Result`
  |
  = note: expected unit type `()`
                  found enum `Result<_, _>`
help: consider using a semicolon here
  |
6 | };
  |  +
help: a return type might be missing here
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_simplify_try_rs_3_0() -> _ {
  |                                                                                 ++++

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0308, E0425.
For more information about an error, try `rustc --explain E0308`.
Couldn't compile the test.

failures:
    src/generator.rs - generator (line 22)
    src/match_branches.rs - match_branches::MatchBranchSimplification (line 17)
    src/match_branches.rs - match_branches::MatchBranchSimplification (line 35)
    src/simplify_comparison_integral.rs - simplify_comparison_integral::SimplifyComparisonIntegral (line 15)
    src/simplify_comparison_integral.rs - simplify_comparison_integral::SimplifyComparisonIntegral (line 23)
    src/simplify_try.rs - simplify_try (line 3)
    src/simplify_try.rs - simplify_try::SimplifyArmIdentity (line 26)
    src/simplify_try.rs - simplify_try::SimplifyArmIdentity (line 35)
    src/simplify_try.rs - simplify_try::SimplifyBranchSameOptimizationFinder::statement_equality (line 693)
    src/simplify_try.rs - simplify_try::match_get_variant_field (line 475)
    src/simplify_try.rs - simplify_try::match_set_discr (line 510)
    src/simplify_try.rs - simplify_try::match_set_variant_field (line 495)

test result: FAILED. 2 passed; 12 failed; 4 ignored; 0 measured; 0 filtered out; finished in 0.65s

error: test failed, to rerun pass '--doc'
	finished in 1.348 seconds
Testing rustc_monomorphize stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_monomorphize

running 2 tests
F.
failures:

---- src/collector.rs - collector (line 94) stdout ----
error[E0405]: cannot find trait `Display` in this scope
 --> src/collector.rs:95:17
  |
2 | fn print_val<T: Display>(x: T) {
  |                 ^^^^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use core::fmt::Display;
  |
2 | use std::fmt::Display;
  |

error: aborting due to previous error

For more information about this error, try `rustc --explain E0405`.
Couldn't compile the test.

failures:
    src/collector.rs - collector (line 94)

test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s

error: test failed, to rerun pass '--doc'
	finished in 0.425 seconds
Testing rustc_parse stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_parse

running 17 tests
iiiiiFFFFFFFFFFFF
failures:

---- src/parser/item.rs - parser::item::Parser::parse_item_impl (line 496) stdout ----
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `GENERICS`
 --> src/parser/item.rs:497:8
  |
3 | "impl" GENERICS "const"? "!"? TYPE "for"? (TYPE | "..") ("where" PREDICATES)? "{" BODY "}"
  |        ^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to previous error

Couldn't compile the test.
---- src/parser/item.rs - parser::item::Parser::parse_item_decl_macro (line 1632) stdout ----
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `TOKEN_STREAM`
 --> src/parser/item.rs:1633:15
  |
3 | MacBody = "{" TOKEN_STREAM "}" ;
  |               ^^^^^^^^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to previous error

Couldn't compile the test.
---- src/parser/item.rs - parser::item::Parser::parse_item_extern_crate (line 933) stdout ----
error[E0463]: can't find crate for `foo`
 --> src/parser/item.rs:933:1
  |
2 | extern crate foo;
  | ^^^^^^^^^^^^^^^^^ can't find crate

error[E0463]: can't find crate for `bar`
 --> src/parser/item.rs:934:1
  |
3 | extern crate bar as foo;
  | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0463`.
Couldn't compile the test.
---- src/parser/item.rs - parser::item::Parser::parse_type_alias (line 809) stdout ----
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `Ident`
 --> src/parser/item.rs:810:20
  |
3 | TypeAlias = "type" Ident Generics {":" GenericBounds}? {"=" Ty}? ";" ;
  |                    ^^^^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to previous error

Couldn't compile the test.
---- src/parser/attr.rs - parser::attr::Parser::parse_meta_item (line 375) stdout ----
error: expected one of `)`, `,`, `.`, `?`, or an operator, found `UNSUFFIXED_LIT`
 --> src/parser/attr.rs:376:24
  |
3 | meta_item : PATH ( '=' UNSUFFIXED_LIT | '(' meta_item_inner? ')' )? ;
  |                       -^^^^^^^^^^^^^^ expected one of `)`, `,`, `.`, `?`, or an operator
  |                       |
  |                       help: missing `,`

error: expected one of `)`, `,`, `.`, `?`, or an operator, found `meta_item_inner`
 --> src/parser/attr.rs:376:45
  |
3 | meta_item : PATH ( '=' UNSUFFIXED_LIT | '(' meta_item_inner? ')' )? ;
  |                                            -^^^^^^^^^^^^^^^ expected one of `)`, `,`, `.`, `?`, or an operator
  |                                            |
  |                                            help: missing `,`

error: expected one of `)`, `,`, `.`, `?`, or an operator, found `')'`
 --> src/parser/attr.rs:376:62
  |
3 | meta_item : PATH ( '=' UNSUFFIXED_LIT | '(' meta_item_inner? ')' )? ;
  |                                                             -^^^ expected one of `)`, `,`, `.`, `?`, or an operator
  |                                                             |
  |                                                             help: missing `,`

error: expected type, found `'='`
 --> src/parser/attr.rs:376:20
  |
3 | meta_item : PATH ( '=' UNSUFFIXED_LIT | '(' meta_item_inner? ')' )? ;
  |           -        ^^^ expected type
  |           |
  |           help: maybe write a path separator here: `::`
  |
  = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`

error: aborting due to 4 previous errors

Couldn't compile the test.
---- src/parser/ty.rs - parser::ty::Parser::parse_ty_bare_fn (line 502) stdout ----
error: expected `{`, found `]`
 --> src/parser/ty.rs:503:8
  |
3 | [unsafe] [extern "ABI"] fn (S) -> T
  |  ------^ expected `{`
  |  |
  |  while parsing this `unsafe` expression

error: aborting due to previous error

Couldn't compile the test.
---- src/parser/ty.rs - parser::ty::RecoverReturnSign (line 55) stdout ----
error: return types are denoted using `->`
 --> src/parser/ty.rs:56:10
  |
3 | fn foo() => u8 { 0 }
  |          ^^ help: use `->` instead

error: return types are denoted using `->`
 --> src/parser/ty.rs:57:9
  |
4 | fn bar(): u8 { 0 }
  |         ^ help: use `->` instead

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/parser/item.rs - parser::item::Parser::parse_item_impl (line 488) stdout ----
error[E0412]: cannot find type `TYPE` in this scope
 --> src/parser/item.rs:489:13
  |
3 | impl<'a, T> TYPE { /* impl items */ }
  |             ^^^^ not found in this scope

error[E0405]: cannot find trait `TRAIT` in this scope
 --> src/parser/item.rs:490:13
  |
4 | impl<'a, T> TRAIT for TYPE { /* impl items */ }
  |             ^^^^^ not found in this scope

error[E0412]: cannot find type `TYPE` in this scope
 --> src/parser/item.rs:490:23
  |
4 | impl<'a, T> TRAIT for TYPE { /* impl items */ }
  |                       ^^^^ not found in this scope

error[E0405]: cannot find trait `TRAIT` in this scope
 --> src/parser/item.rs:491:14
  |
5 | impl<'a, T> !TRAIT for TYPE { /* impl items */ }
  |              ^^^^^ not found in this scope

error[E0412]: cannot find type `TYPE` in this scope
 --> src/parser/item.rs:491:24
  |
5 | impl<'a, T> !TRAIT for TYPE { /* impl items */ }
  |                        ^^^^ not found in this scope

error[E0405]: cannot find trait `TRAIT` in this scope
 --> src/parser/item.rs:492:19
  |
6 | impl<'a, T> const TRAIT for TYPE { /* impl items */ }
  |                   ^^^^^ not found in this scope

error[E0412]: cannot find type `TYPE` in this scope
 --> src/parser/item.rs:492:29
  |
6 | impl<'a, T> const TRAIT for TYPE { /* impl items */ }
  |                             ^^^^ not found in this scope

error[E0658]: const trait impls are experimental
 --> src/parser/item.rs:492:13
  |
6 | impl<'a, T> const TRAIT for TYPE { /* impl items */ }
  |             ^^^^^
  |
  = note: see issue #67792 <https://github.com/rust-lang/rust/issues/67792> for more information
  = help: add `#![feature(const_trait_impl)]` to the crate attributes to enable

error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now
 --> src/parser/item.rs:491:13
  |
5 | impl<'a, T> !TRAIT for TYPE { /* impl items */ }
  |             ^^^^^^
  |
  = note: see issue #68318 <https://github.com/rust-lang/rust/issues/68318> for more information
  = help: add `#![feature(negative_impls)]` to the crate attributes to enable

error: aborting due to 9 previous errors

Some errors have detailed explanations: E0405, E0412, E0658.
For more information about an error, try `rustc --explain E0405`.
Couldn't compile the test.
---- src/parser/ty.rs - parser::ty::Parser::parse_generic_bound (line 707) stdout ----
error[E0425]: cannot find value `BOUND` in this scope
 --> src/parser/ty.rs:708:1
  |
3 | BOUND = TY_BOUND | LT_BOUND
  | ^^^^^ not found in this scope

error[E0425]: cannot find value `TY_BOUND` in this scope
 --> src/parser/ty.rs:708:9
  |
3 | BOUND = TY_BOUND | LT_BOUND
  |         ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `LT_BOUND` in this scope
 --> src/parser/ty.rs:708:20
  |
3 | BOUND = TY_BOUND | LT_BOUND
  |                    ^^^^^^^^ not found in this scope

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/parser/ty.rs - parser::ty::Parser::parse_generic_ty_bound (line 807) stdout ----
error: expected `;`, found `TY_BOUND_NOPAREN`
 --> src/parser/ty.rs:808:49
  |
3 | TY_BOUND = TY_BOUND_NOPAREN | (TY_BOUND_NOPAREN)
  |                                                 ^ help: add `;` here
4 | TY_BOUND_NOPAREN = [TY_BOUND_MODIFIERS] [for<LT_PARAM_DEFS>] SIMPLE_PATH
  | ---------------- unexpected token

error: expected one of `async`, `move`, `static`, `|`, or `||`, found `]`
 --> src/parser/ty.rs:809:60
  |
4 | TY_BOUND_NOPAREN = [TY_BOUND_MODIFIERS] [for<LT_PARAM_DEFS>] SIMPLE_PATH
  |                                                            ^ expected one of `async`, `move`, `static`, `|`, or `||`

error[E0425]: cannot find value `TY_BOUND` in this scope
 --> src/parser/ty.rs:808:1
  |
3 | TY_BOUND = TY_BOUND_NOPAREN | (TY_BOUND_NOPAREN)
  | ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `TY_BOUND_NOPAREN` in this scope
 --> src/parser/ty.rs:808:12
  |
3 | TY_BOUND = TY_BOUND_NOPAREN | (TY_BOUND_NOPAREN)
  |            ^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `TY_BOUND_NOPAREN` in this scope
 --> src/parser/ty.rs:808:32
  |
3 | TY_BOUND = TY_BOUND_NOPAREN | (TY_BOUND_NOPAREN)
  |                                ^^^^^^^^^^^^^^^^ not found in this scope

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/parser/ty.rs - parser::ty::Parser::parse_generic_lt_bound (line 729) stdout ----
error[E0425]: cannot find value `LT_BOUND` in this scope
 --> src/parser/ty.rs:730:1
  |
3 | LT_BOUND = LIFETIME
  | ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `LIFETIME` in this scope
 --> src/parser/ty.rs:730:12
  |
3 | LT_BOUND = LIFETIME
  |            ^^^^^^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/parser/ty.rs - parser::ty::Parser::parse_ty_bound_modifiers (line 787) stdout ----
error[E0425]: cannot find value `TY_BOUND_MODIFIERS` in this scope
 --> src/parser/ty.rs:788:1
  |
3 | TY_BOUND_MODIFIERS = ["~const"] ["?"]
  | ^^^^^^^^^^^^^^^^^^ not found in this scope

error[E0277]: the type `[&str]` cannot be indexed by `&str`
 --> src/parser/ty.rs:788:22
  |
3 | TY_BOUND_MODIFIERS = ["~const"] ["?"]
  |                      ^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
  |
  = help: the trait `SliceIndex<[&str]>` is not implemented for `&str`
  = note: required because of the requirements on the impl of `Index<&str>` for `[&str]`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0277, E0425.
For more information about an error, try `rustc --explain E0277`.
Couldn't compile the test.

failures:
    src/parser/attr.rs - parser::attr::Parser::parse_meta_item (line 375)
    src/parser/item.rs - parser::item::Parser::parse_item_decl_macro (line 1632)
    src/parser/item.rs - parser::item::Parser::parse_item_extern_crate (line 933)
    src/parser/item.rs - parser::item::Parser::parse_item_impl (line 488)
    src/parser/item.rs - parser::item::Parser::parse_item_impl (line 496)
    src/parser/item.rs - parser::item::Parser::parse_type_alias (line 809)
    src/parser/ty.rs - parser::ty::Parser::parse_generic_bound (line 707)
    src/parser/ty.rs - parser::ty::Parser::parse_generic_lt_bound (line 729)
    src/parser/ty.rs - parser::ty::Parser::parse_generic_ty_bound (line 807)
    src/parser/ty.rs - parser::ty::Parser::parse_ty_bare_fn (line 502)
    src/parser/ty.rs - parser::ty::Parser::parse_ty_bound_modifiers (line 787)
    src/parser/ty.rs - parser::ty::RecoverReturnSign (line 55)

test result: FAILED. 0 passed; 12 failed; 5 ignored; 0 measured; 0 filtered out; finished in 0.12s

error: test failed, to rerun pass '--doc'
	finished in 0.539 seconds
Testing rustc_parse_format stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_parse_format

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.182 seconds
Testing rustc_passes stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_passes

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.375 seconds
Testing rustc_plugin_impl stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_plugin_impl

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.204 seconds
Testing rustc_privacy stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_privacy

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.226 seconds
Testing rustc_query_impl stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_query_impl

running 12 tests
iiiiii......
test result: ok. 6 passed; 0 failed; 6 ignored; 0 measured; 0 filtered out; finished in 0.26s

	finished in 1.178 seconds
Testing rustc_query_system stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_query_system

running 1 test
F
failures:

---- src/dep_graph/debug.rs - dep_graph::debug::DepNodeFilter (line 11) stdout ----
error[E0425]: cannot find value `x` in this scope
 --> src/dep_graph/debug.rs:12:1
  |
3 | x & y & z
  | ^ not found in this scope

error[E0425]: cannot find value `y` in this scope
 --> src/dep_graph/debug.rs:12:5
  |
3 | x & y & z
  |     ^ not found in this scope

error[E0425]: cannot find value `z` in this scope
 --> src/dep_graph/debug.rs:12:9
  |
3 | x & y & z
  |         ^ not found in this scope

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.

failures:
    src/dep_graph/debug.rs - dep_graph::debug::DepNodeFilter (line 11)

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s

error: test failed, to rerun pass '--doc'
	finished in 0.360 seconds
Testing rustc_resolve stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_resolve

running 11 tests
iiiFFFFFF..
failures:

---- src/diagnostics.rs - diagnostics::find_span_immediately_after_crate_name (line 1761) stdout ----
error: expected expression, found `^`
 --> src/diagnostics.rs:1763:10
  |
4 |          ^^^^^^^^^^ // false
  |          ^ expected expression

error[E0433]: failed to resolve: use of undeclared crate or module `foo`
 --> src/diagnostics.rs:1762:5
  |
3 | use foo::a::{b, c};
  |     ^^^ use of undeclared crate or module `foo`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/late/lifetimes.rs - late::lifetimes::resolve_lifetimes_trait_definition (line 409) stdout ----
error[E0106]: missing lifetime specifier
 --> src/late/lifetimes.rs:414:22
  |
7 |    type SubItem: Sub<BaseItem = &'b u32>;
  |                      ^ expected named lifetime parameter
  |
help: consider using the `'b` lifetime
  |
7 |    type SubItem: Sub<'b, BaseItem = &'b u32>;
  |                      +++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0106`.
Couldn't compile the test.
---- src/diagnostics.rs - diagnostics::extend_span_to_previous_binding (line 1718) stdout ----
error: expected expression, found `^`
 --> src/diagnostics.rs:1720:15
  |
4 |               ^^--- binding span
  |               ^ expected expression

error[E0433]: failed to resolve: use of undeclared crate or module `foo`
 --> src/diagnostics.rs:1719:5
  |
3 | use foo::a::{a, b, c};
  |     ^^^ use of undeclared crate or module `foo`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/late/lifetimes.rs - late::lifetimes::LifetimeContext::supertrait_hrtb_lifetimes (line 2556) stdout ----
error[E0428]: the name `Bar` is defined multiple times
 --> src/late/lifetimes.rs:2561:1
  |
6 | trait Bar<'b>: for<'a> Foo<'a, 'b> {}
  | ---------------------------------- previous definition of the trait `Bar` here
7 | trait Bar: for<'b> Bar<'b> {}
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `Bar` redefined here
  |
  = note: `Bar` must be defined only once in the type namespace of this block

error: aborting due to previous error

For more information about this error, try `rustc --explain E0428`.
Couldn't compile the test.
---- src/diagnostics.rs - diagnostics::find_span_of_binding_until_next_binding (line 1672) stdout ----
error: expected expression, found `^`
 --> src/diagnostics.rs:1674:14
  |
4 |              ^^^
  |              ^ expected expression

error[E0432]: unresolved import `foo`
 --> src/diagnostics.rs:1673:5
  |
3 | use foo::{a, b, c};
  |     ^^^ use of undeclared crate or module `foo`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0432`.
Couldn't compile the test.
---- src/diagnostics.rs - diagnostics::find_span_of_binding_until_next_binding (line 1665) stdout ----
error: expected expression, found `^`
 --> src/diagnostics.rs:1667:14
  |
4 |              ^
  |              ^ expected expression

error[E0432]: unresolved import `foo`
 --> src/diagnostics.rs:1666:5
  |
3 | use foo::{a, b, c};
  |     ^^^ use of undeclared crate or module `foo`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0432`.
Couldn't compile the test.

failures:
    src/diagnostics.rs - diagnostics::extend_span_to_previous_binding (line 1718)
    src/diagnostics.rs - diagnostics::find_span_immediately_after_crate_name (line 1761)
    src/diagnostics.rs - diagnostics::find_span_of_binding_until_next_binding (line 1665)
    src/diagnostics.rs - diagnostics::find_span_of_binding_until_next_binding (line 1672)
    src/late/lifetimes.rs - late::lifetimes::LifetimeContext::supertrait_hrtb_lifetimes (line 2556)
    src/late/lifetimes.rs - late::lifetimes::resolve_lifetimes_trait_definition (line 409)

test result: FAILED. 2 passed; 6 failed; 3 ignored; 0 measured; 0 filtered out; finished in 0.17s

error: test failed, to rerun pass '--doc'
	finished in 0.775 seconds
Testing rustc_save_analysis stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.14s
   Doc-tests rustc_save_analysis

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.273 seconds
Testing rustc_serialize stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_serialize

running 3 tests
...
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s

	finished in 0.605 seconds
Testing rustc_session stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_session

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.410 seconds
Testing rustc_span stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_span

running 6 tests
iFFFFF
failures:

---- src/source_map.rs - source_map::SourceMap::mac_call_stmt_semi_span (line 1062) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `output`
 --> src/source_map.rs:1063:3
  |
3 | v output
  |   ^^^^^^ expected one of 8 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/hygiene.rs - hygiene::SyntaxContext::remove_mark (line 699) stdout ----
error: no rules expected the token `!`
 --> src/hygiene.rs:701:15
  |
4 |    macro_rules! g {
  |               ^ no rules expected this token in macro call

error: aborting due to previous error

Couldn't compile the test.
---- src/hygiene.rs - hygiene::SyntaxContext::adjust (line 722) stdout ----
error[E0658]: `macro` is experimental
  --> src/hygiene.rs:725:1
   |
5  | / macro m($f:ident) {
6  | |     mod bar {
7  | |         pub fn f() {} // `f`'s `SyntaxContext` has a single `ExpnId` from `m`.
8  | |         pub fn $f() {} // `$f`'s `SyntaxContext` is empty.
...  |
18 | |     //| and it resolves to `::bar::$f`.
19 | | }
   | |_^
   |
   = note: see issue #39412 <https://github.com/rust-lang/rust/issues/39412> for more information
   = help: add `#![feature(decl_macro)]` to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- src/hygiene.rs - hygiene::SyntaxContext::glob_adjust (line 759) stdout ----
error[E0425]: cannot find function `f` in this scope
 --> src/hygiene.rs:766:8
  |
3 | m!(f);
  | ----- in this macro invocation
...
9 |     n!(f);
  |        ^ not found in this scope
  |
  = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this constant
  |
2 | use rustc_span::sym::f;
  |

error[E0658]: `macro` is experimental
  --> src/hygiene.rs:767:5
   |
3  |   m!(f);
   |   ----- in this macro invocation
...
10 | /     macro n($j:ident) {
11 | |         use foo::*;
12 | |         f(); // `f`'s `SyntaxContext` has a mark from `m` and a mark from `n`
13 | |         //^ `glob_adjust` removes the mark from `n`, so this resolves to `foo::f`.
...  |
17 | |         //^ This cannot be glob-adjusted, so this is a resolution error.
18 | |     }
   | |_____^
   |
   = note: see issue #39412 <https://github.com/rust-lang/rust/issues/39412> for more information
   = help: add `#![feature(decl_macro)]` to the crate attributes to enable
   = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0658]: `macro` is experimental
  --> src/hygiene.rs:761:1
   |
4  | / macro m($i:ident) {
5  | |     mod foo {
6  | |         pub fn f() {} // `f`'s `SyntaxContext` has a single `ExpnId` from `m`.
7  | |         pub fn $i() {} // `$i`'s `SyntaxContext` is empty.
...  |
18 | |     }
19 | | }
   | |_^
   |
   = note: see issue #39412 <https://github.com/rust-lang/rust/issues/39412> for more information
   = help: add `#![feature(decl_macro)]` to the crate attributes to enable

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0425, E0658.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/hygiene.rs - hygiene::SyntaxContext::reverse_glob_adjust (line 799) stdout ----
error[E0424]: expected value, found module `self`
 --> src/hygiene.rs:800:39
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_hygiene_rs_799_0() {
  |                                         ---------------------------------- this function can't have a `self` parameter
3 | if let Some(privacy_checking_scope) = self.reverse_glob_adjust(expansion, glob_ctxt) {
  |                                       ^^^^ `self` value is a keyword only available in methods with a `self` parameter

error[E0425]: cannot find value `expansion` in this scope
 --> src/hygiene.rs:800:64
  |
3 | if let Some(privacy_checking_scope) = self.reverse_glob_adjust(expansion, glob_ctxt) {
  |                                                                ^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `glob_ctxt` in this scope
 --> src/hygiene.rs:800:75
  |
3 | if let Some(privacy_checking_scope) = self.reverse_glob_adjust(expansion, glob_ctxt) {
  |                                                                           ^^^^^^^^^ not found in this scope

error[E0424]: expected value, found module `self`
 --> src/hygiene.rs:801:13
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_hygiene_rs_799_0() {
  |                                         ---------------------------------- this function can't have a `self` parameter
3 | if let Some(privacy_checking_scope) = self.reverse_glob_adjust(expansion, glob_ctxt) {
4 |     assert!(self.glob_adjust(expansion, glob_ctxt) == Some(privacy_checking_scope));
  |             ^^^^ `self` value is a keyword only available in methods with a `self` parameter

error[E0425]: cannot find value `expansion` in this scope
 --> src/hygiene.rs:801:30
  |
4 |     assert!(self.glob_adjust(expansion, glob_ctxt) == Some(privacy_checking_scope));
  |                              ^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `glob_ctxt` in this scope
 --> src/hygiene.rs:801:41
  |
4 |     assert!(self.glob_adjust(expansion, glob_ctxt) == Some(privacy_checking_scope));
  |                                         ^^^^^^^^^ not found in this scope

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0424, E0425.
For more information about an error, try `rustc --explain E0424`.
Couldn't compile the test.

failures:
    src/hygiene.rs - hygiene::SyntaxContext::adjust (line 722)
    src/hygiene.rs - hygiene::SyntaxContext::glob_adjust (line 759)
    src/hygiene.rs - hygiene::SyntaxContext::remove_mark (line 699)
    src/hygiene.rs - hygiene::SyntaxContext::reverse_glob_adjust (line 799)
    src/source_map.rs - source_map::SourceMap::mac_call_stmt_semi_span (line 1062)

test result: FAILED. 0 passed; 5 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.05s

error: test failed, to rerun pass '--doc'
	finished in 0.561 seconds
Testing rustc_symbol_mangling stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_symbol_mangling

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.228 seconds
Testing rustc_target stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_target

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.835 seconds
Testing rustc_traits stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.13s
   Doc-tests rustc_traits

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.277 seconds
Testing rustc_trait_selection stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.14s
   Doc-tests rustc_trait_selection

running 15 tests
FFFFFFFFFFFFF.F
failures:

---- src/opaque_types.rs - opaque_types::InferCtxt::infer_opaque_definition_from_instantiation (line 26) stdout ----
error: expected one of `+`, `::`, `;`, or `where`, found `=`
 --> src/opaque_types.rs:27:30
  |
3 | type Foo1<'x> = impl Bar<'x> = AAA; <-- this type AAA
  |                              ^ expected one of `+`, `::`, `;`, or `where`

error: aborting due to previous error

Couldn't compile the test.
---- src/traits/coherence.rs - traits::coherence::orphan_check_trait_ref (line 550) stdout ----
error: expected one of `!`, `+`, `::`, `where`, or `{`, found keyword `impl`
 --> src/traits/coherence.rs:552:1
  |
3 | impl<T> IntoIterator for Vec<T>
  |                                - expected one of `!`, `+`, `::`, `where`, or `{`
4 | impl<T: Iterator> IntoIterator for T
  | ^^^^ unexpected token

error: aborting due to previous error

Couldn't compile the test.
---- src/traits/object_safety.rs - traits::object_safety::receiver_is_dispatchable (line 626) stdout ----
error: expected expression, found `?`
 --> src/traits/object_safety.rs:627:20
  |
3 | forall (U: Trait + ?Sized) {
  | ------             ^ expected expression
  | |
  | while parsing this struct

error: expected expression, found `?`
 --> src/traits/object_safety.rs:627:20
  |
3 | forall (U: Trait + ?Sized) {
  |                    ^ expected expression

error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
 --> src/traits/object_safety.rs:627:28
  |
3 | forall (U: Trait + ?Sized) {
  |                            ^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to 3 previous errors

Couldn't compile the test.
---- src/traits/auto_trait.rs - traits::auto_trait::AutoTraitFinder::evaluate_predicates (line 259) stdout ----
error: expected one of `(`, `+`, `,`, `::`, `<`, or `{`, found `}`
 --> src/traits/auto_trait.rs:261:1
  |
3 | impl<T> Send for Foo<T> where T: IntoIterator
  |                                              - expected one of `(`, `+`, `,`, `::`, `<`, or `{`
4 | } _doctest_main_src_traits_auto_trait_rs_259_0() }
  | ^ unexpected token

error: aborting due to previous error

Couldn't compile the test.
---- src/traits/object_safety.rs - traits::object_safety::receiver_is_dispatchable (line 599) stdout ----
error: expected one of `!`, `.`, `::`, `?`, `]`, `{`, or an operator, found `=>`
 --> src/traits/object_safety.rs:600:15
  |
3 | Receiver[Self => T]: DispatchFromDyn<Receiver[Self => dyn Trait]>
  |               ^^ expected one of 7 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/traits/project.rs - traits::project::poly_project_and_unify_type (line 161) stdout ----
error[E0743]: C-variadic type `...` may not be nested inside another type
 --> src/traits/project.rs:162:5
  |
3 | for<...> <T as Trait>::U == V
  |     ^^^

error: expected `::`, found `<`
 --> src/traits/project.rs:162:10
  |
3 | for<...> <T as Trait>::U == V
  |          ^ expected `::`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0743`.
Couldn't compile the test.
---- src/traits/specialize/mod.rs - traits::specialize::translate_substs (line 55) stdout ----
error: non-item in item list
 --> src/traits/specialize/mod.rs:56:13
  |
3 | trait Foo { ... }
  |           - ^^^ - item list ends here
  |           | |
  |           | non-item starts here
  |           item list starts here

error: non-item in item list
 --> src/traits/specialize/mod.rs:57:29
  |
4 | impl<T, U> Foo for (T, U) { ... }  // target impl
  |                           - ^^^ - item list ends here
  |                           | |
  |                           | non-item starts here
  |                           item list starts here

error: non-item in item list
 --> src/traits/specialize/mod.rs:58:26
  |
5 | impl<V> Foo for (V, V) { ... }     // source impl
  |                        - ^^^ - item list ends here
  |                        | |
  |                        | non-item starts here
  |                        item list starts here

error[E0119]: conflicting implementations of trait `main::_doctest_main_src_traits_specialize_mod_rs_55_0::Foo` for type `(_, _)`
 --> src/traits/specialize/mod.rs:58:1
  |
4 | impl<T, U> Foo for (T, U) { ... }  // target impl
  | ------------------------- first implementation here
5 | impl<V> Foo for (V, V) { ... }     // source impl
  | ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(_, _)`

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0119`.
Couldn't compile the test.
---- src/traits/select/mod.rs - traits::select::SelectionContext::constituent_types_for_ty (line 1936) stdout ----
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->`
 --> src/traits/select/mod.rs:1937:12
  |
3 | (i32, u32) -> [i32, u32]
  |            ^^ expected one of `.`, `;`, `?`, `}`, or an operator

error: aborting due to previous error

Couldn't compile the test.
---- src/traits/specialize/mod.rs - traits::specialize::translate_substs (line 67) stdout ----
error: expected one of `(`, `+`, `,`, `::`, `<`, or `{`, found `}`
 --> src/traits/specialize/mod.rs:70:1
  |
4 |    where I: Iterator<Item = &'a T>, T: Clone
  |                                             - expected one of `(`, `+`, `,`, `::`, `<`, or `{`
5 | } _doctest_main_src_traits_specialize_mod_rs_67_0() }
  | ^ unexpected token

error: aborting due to previous error

Couldn't compile the test.
---- src/traits/wf.rs - traits::wf::Elaborate (line 173) stdout ----
error[E0277]: the trait bound `T: Copy` is not satisfied
 --> src/traits/wf.rs:177:9
  |
6 | impl<T> Bar for T { }
  |         ^^^ the trait `Copy` is not implemented for `T`
  |
note: required by a bound in `Bar`
 --> src/traits/wf.rs:175:12
  |
4 | trait Bar: Foo { }
  |            ^^^ required by this bound in `Bar`
help: consider restricting type parameter `T`
  |
6 | impl<T: std::marker::Copy> Bar for T { }
  |       +++++++++++++++++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
Couldn't compile the test.
---- src/traits/project.rs - traits::project::assemble_candidates_from_trait_def (line 1260) stdout ----
error: expected `;`, found `}`
 --> src/traits/project.rs:1262:30
  |
4 |     type FooT : Bar<BarT=i32>
  |                              ^ help: add `;` here
5 | }
  | - unexpected token

error[E0405]: cannot find trait `Bar` in this scope
 --> src/traits/project.rs:1262:17
  |
4 |     type FooT : Bar<BarT=i32>
  |                 ^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0405`.
Couldn't compile the test.
---- src/traits/auto_trait.rs - traits::auto_trait::AutoTraitFinder::add_user_pred (line 424) stdout ----
error: expected `;`, found `T`
 --> src/traits/auto_trait.rs:425:17
  |
3 | T as MyTrait<'a>
  |                 ^ help: add `;` here
4 | T as MyTrait<'static>
  | - unexpected token

error[E0425]: cannot find value `T` in this scope
 --> src/traits/auto_trait.rs:425:1
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_traits_auto_trait_rs_424_0() {
  |                                                                                     - help: you might be missing a type parameter: `<T>`
3 | T as MyTrait<'a>
  | ^ not found in this scope

error[E0412]: cannot find type `MyTrait` in this scope
 --> src/traits/auto_trait.rs:425:6
  |
3 | T as MyTrait<'a>
  |      ^^^^^^^ not found in this scope

error[E0425]: cannot find value `T` in this scope
 --> src/traits/auto_trait.rs:426:1
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_traits_auto_trait_rs_424_0() {
  |                                                                                     - help: you might be missing a type parameter: `<T>`
3 | T as MyTrait<'a>
4 | T as MyTrait<'static>
  | ^ not found in this scope

error[E0412]: cannot find type `MyTrait` in this scope
 --> src/traits/auto_trait.rs:426:6
  |
4 | T as MyTrait<'static>
  |      ^^^^^^^ not found in this scope

error[E0261]: use of undeclared lifetime name `'a`
 --> src/traits/auto_trait.rs:425:14
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_traits_auto_trait_rs_424_0() {
  |                                                                                     - help: consider introducing lifetime `'a` here: `<'a>`
3 | T as MyTrait<'a>
  |              ^^ undeclared lifetime

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0261, E0412, E0425.
For more information about an error, try `rustc --explain E0261`.
Couldn't compile the test.
---- src/traits/select/confirmation.rs - traits::select::confirmation::SelectionContext::confirm_poly_trait_refs (line 716) stdout ----
error: non-item in item list
 --> src/traits/select/confirmation.rs:717:28
  |
3 | impl Fn(i32) for Closure { ... }
  |                          - ^^^ - item list ends here
  |                          | |
  |                          | non-item starts here
  |                          item list starts here

error[E0412]: cannot find type `Closure` in this scope
 --> src/traits/select/confirmation.rs:717:18
  |
3 | impl Fn(i32) for Closure { ... }
  |                  ^^^^^^^ not found in this scope
  |
help: there is an enum variant `rustc_ast::ExprKind::Closure` and 20 others; try using the variant's enum
  |
3 | impl Fn(i32) for rustc_ast::ExprKind { ... }
  |                  ~~~~~~~~~~~~~~~~~~~
3 | impl Fn(i32) for rustc_ast::ExprPrecedence { ... }
  |                  ~~~~~~~~~~~~~~~~~~~~~~~~~
3 | impl Fn(i32) for rustc_ast::visit::FnKind { ... }
  |                  ~~~~~~~~~~~~~~~~~~~~~~~~
3 | impl Fn(i32) for rustc_hir::AsyncGeneratorKind { ... }
  |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    and 16 other candidates

error[E0183]: manual implementations of `Fn` are experimental
 --> src/traits/select/confirmation.rs:717:6
  |
3 | impl Fn(i32) for Closure { ... }
  |      ^^^^^^^ manual implementations of `Fn` are experimental
  |
  = help: add `#![feature(unboxed_closures)]` to the crate attributes to enable

error[E0229]: associated type bindings are not allowed here
 --> src/traits/select/confirmation.rs:717:6
  |
3 | impl Fn(i32) for Closure { ... }
  |      ^^^^^^^ associated type not allowed here

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0183, E0229, E0412.
For more information about an error, try `rustc --explain E0183`.
Couldn't compile the test.
---- src/traits/project.rs - traits::project::project_and_unify_type (line 227) stdout ----
error[E0433]: failed to resolve: use of undeclared type `Trait`
 --> src/traits/project.rs:228:7
  |
3 | <T as Trait>::U == V
  |       ^^^^^ use of undeclared type `Trait`

error[E0412]: cannot find type `T` in this scope
 --> src/traits/project.rs:228:2
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_traits_project_rs_227_0() {
  |                                                                                  - help: you might be missing a type parameter: `<T>`
3 | <T as Trait>::U == V
  |  ^ not found in this scope

error[E0425]: cannot find value `V` in this scope
 --> src/traits/project.rs:228:20
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_traits_project_rs_227_0() {
  |                                                                                  - help: you might be missing a type parameter: `<V>`
3 | <T as Trait>::U == V
  |                    ^ not found in this scope

error[E0308]: mismatched types
 --> src/traits/project.rs:228:1
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_traits_project_rs_227_0() {
  |                                                                                     - help: try adding a return type: `-> bool`
3 | <T as Trait>::U == V
  | ^^^^^^^^^^^^^^^^^^^^ expected `()`, found `bool`

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0308, E0412, E0425, E0433.
For more information about an error, try `rustc --explain E0308`.
Couldn't compile the test.

failures:
    src/opaque_types.rs - opaque_types::InferCtxt::infer_opaque_definition_from_instantiation (line 26)
    src/traits/auto_trait.rs - traits::auto_trait::AutoTraitFinder::add_user_pred (line 424)
    src/traits/auto_trait.rs - traits::auto_trait::AutoTraitFinder::evaluate_predicates (line 259)
    src/traits/coherence.rs - traits::coherence::orphan_check_trait_ref (line 550)
    src/traits/object_safety.rs - traits::object_safety::receiver_is_dispatchable (line 599)
    src/traits/object_safety.rs - traits::object_safety::receiver_is_dispatchable (line 626)
    src/traits/project.rs - traits::project::assemble_candidates_from_trait_def (line 1260)
    src/traits/project.rs - traits::project::poly_project_and_unify_type (line 161)
    src/traits/project.rs - traits::project::project_and_unify_type (line 227)
    src/traits/select/confirmation.rs - traits::select::confirmation::SelectionContext::confirm_poly_trait_refs (line 716)
    src/traits/select/mod.rs - traits::select::SelectionContext::constituent_types_for_ty (line 1936)
    src/traits/specialize/mod.rs - traits::specialize::translate_substs (line 55)
    src/traits/specialize/mod.rs - traits::specialize::translate_substs (line 67)
    src/traits/wf.rs - traits::wf::Elaborate (line 173)

test result: FAILED. 1 passed; 14 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.59s

error: test failed, to rerun pass '--doc'
	finished in 1.685 seconds
Testing rustc_typeck stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.14s
   Doc-tests rustc_typeck

running 54 tests
FFFFFFFFFFFFFFFFFFFFFFiFFFFF..FFFFiFiF.FiFF.F.FFFF.F.F
failures:

---- src/astconv/mod.rs - astconv::dynAstConv+'o::create_substs_for_ast_path (line 297) stdout ----
error: expected `:`, found `=`
 --> src/astconv/mod.rs:298:34
  |
3 | T: std::ops::Index<usize, Output = u32>
  |                                 -^
  |                                 |
  |                                 help: replace equals symbol with a colon: `:`

error: expected expression, found `^`
 --> src/astconv/mod.rs:299:1
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_astconv_mod_rs_297_0() {
  |                                                                                  - while parsing this struct
3 | T: std::ops::Index<usize, Output = u32>
4 | ^1 ^^^^^^^^^^^^^^2 ^^^^3  ^^^^^^^^^^^4
  | ^ expected expression

error: struct literal body without path
 --> src/astconv/mod.rs:297:82
  |
2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_astconv_mod_rs_297_0() {
  |  __________________________________________________________________________________^
3 | | T: std::ops::Index<usize, Output = u32>
4 | | ^1 ^^^^^^^^^^^^^^2 ^^^^3  ^^^^^^^^^^^4
5 | | } _doctest_main_src_astconv_mod_rs_297_0() }
  | |_^
  |
help: you might have forgotten to add the struct literal inside the block
  |
2 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_astconv_mod_rs_297_0() { SomeStruct {
3 | T: std::ops::Index<usize, Output = u32>
4 | ^1 ^^^^^^^^^^^^^^2 ^^^^3  ^^^^^^^^^^^4
5 ~ } } _doctest_main_src_astconv_mod_rs_297_0() }
  |

error: aborting due to 3 previous errors

Couldn't compile the test.
---- src/astconv/mod.rs - astconv::dynAstConv+'o::create_substs_for_ast_path (line 313) stdout ----
error[E0433]: failed to resolve: use of undeclared type `Iterable`
 --> src/astconv/mod.rs:314:13
  |
3 | <Vec<u8> as Iterable<u8>>::Iter::<'a>
  |             ^^^^^^^^ use of undeclared type `Iterable`

error[E0261]: use of undeclared lifetime name `'a`
 --> src/astconv/mod.rs:314:35
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_astconv_mod_rs_313_0() {
  |                                                                               - help: consider introducing lifetime `'a` here: `<'a>`
3 | <Vec<u8> as Iterable<u8>>::Iter::<'a>
  |                                   ^^ undeclared lifetime

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0261, E0433.
For more information about an error, try `rustc --explain E0261`.
Couldn't compile the test.
---- src/check/demand.rs - check::demand::FnCtxt::can_use_as_ref (line 442) stdout ----
error[E0308]: mismatched types
 --> src/check/demand.rs:447:27
  |
7 | opt.map(|param| takes_ref(param));
  |     ---                   ^^^^^ expected `&Foo`, found struct `Foo`
  |     |
  |     help: consider using `as_ref` instead: `as_ref().map`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/check/demand.rs - check::demand::FnCtxt::check_ref (line 569) stdout ----
error[E0308]: mismatched types
 --> src/check/demand.rs:573:9
  |
6 | some_fn(x); // error
  |         ^
  |         |
  |         expected `&str`, found struct `String`
  |         help: consider borrowing here: `&x`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/check/coercion.rs - check::coercion (line 24) stdout ----
error[E0308]: mismatched types
  --> src/check/coercion.rs:33:16
   |
11 | foo(&mut 7i32, &7i32);
   |                ^^^^^ types differ in mutability
   |
   = note: expected mutable reference `&mut i32`
                      found reference `&i32`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/check/closure.rs - check::closure::FnCtxt::sig_of_closure_with_expectation (line 374) stdout ----
error: unexpected token: `...`
 --> src/check/closure.rs:378:26
  |
6 | with_closure(|x: &u32| { ... })
  |                          ^^^
  |
help: use `..` for an exclusive range
  |
6 | with_closure(|x: &u32| { .. })
  |                          ~~
help: or `..=` for an inclusive range
  |
6 | with_closure(|x: &u32| { ..= })
  |                          ~~~

error[E0586]: inclusive range with no end
 --> src/check/closure.rs:378:26
  |
6 | with_closure(|x: &u32| { ... })
  |                          ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0308]: mismatched types
 --> src/check/closure.rs:376:31
  |
4 |   where F: Fn(&u32) -> &u32 { .. }
  |   -                           ^^ expected `()`, found struct `RangeFull`
  |   |
  |   help: try adding a return type: `-> RangeFull`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0308, E0586.
For more information about an error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/check/fallback.rs - check::fallback::FnCtxt::calculate_diverging_fallback (line 171) stdout ----
error: expected expression, found `?`
 --> src/check/fallback.rs:172:1
  |
3 | ?Diverging -> ?V
  | ^ expected expression

error: aborting due to previous error

Couldn't compile the test.
---- src/check/fn_ctxt/checks.rs - check::fn_ctxt::checks::FnCtxt::consider_hint_about_removing_semicolon (line 913) stdout ----
error[E0308]: mismatched types
 --> src/check/fn_ctxt/checks.rs:914:13
  |
3 | fn foo() -> usize {
  |    ---      ^^^^^ expected `usize`, found `()`
  |    |
  |    implicitly returns `()` as its body has no tail or `return` expression
4 |     22;
  |       - help: remove this semicolon

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/check/fn_ctxt/suggestions.rs - check::fn_ctxt::suggestions::FnCtxt::suggest_fn_call (line 74) stdout ----
error[E0308]: mismatched types
 --> src/check/fn_ctxt/suggestions.rs:76:16
  |
3 | fn foo(x: usize) -> usize { x }
  | ------------------------- fn(usize) -> usize {foo} defined here
4 | let x: usize = foo;  // suggest calling the `foo` function: `foo(42)`
  |        -----   ^^^ expected `usize`, found fn item
  |        |
  |        expected due to this
  |
  = note: expected type `usize`
          found fn item `fn(usize) -> usize {foo}`
help: use parentheses to call this function
  |
4 | let x: usize = foo(x);  // suggest calling the `foo` function: `foo(42)`
  |                   +++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/astconv/mod.rs - astconv::dynAstConv+'o::compute_bounds (line 1029) stdout ----
error: expected expression, found `^`
 --> src/astconv/mod.rs:1031:8
  |
4 |        ^  ^^^^^^^^^ ast_bounds
  |        ^ expected expression

error[E0405]: cannot find trait `Bar` in this scope
 --> src/astconv/mod.rs:1030:11
  |
3 | fn foo<T: Bar + Baz>() { }
  |           ^^^ not found in this scope

error[E0405]: cannot find trait `Baz` in this scope
 --> src/astconv/mod.rs:1030:17
  |
3 | fn foo<T: Bar + Baz>() { }
  |                 ^^^ not found in this scope

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0405`.
Couldn't compile the test.
---- src/astconv/mod.rs - astconv::dynAstConv+'o::instantiate_poly_trait_ref (line 759) stdout ----
error[E0425]: cannot find value `poly_trait_ref` in this scope
 --> src/astconv/mod.rs:760:1
  |
3 | poly_trait_ref = Iterator<Item = u32>
  | ^^^^^^^^^^^^^^ not found in this scope

error[E0423]: expected value, found trait `Iterator`
 --> src/astconv/mod.rs:760:18
  |
3 | poly_trait_ref = Iterator<Item = u32>
  |                  ^^^^^^^^ not a value
  |
help: consider importing this constant instead
  |
2 | use rustc_span::sym::Iterator;
  |

error[E0425]: cannot find value `Item` in this scope
 --> src/astconv/mod.rs:760:27
  |
3 | poly_trait_ref = Iterator<Item = u32>
  |                           ^^^^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use rustc_ast::StmtKind::Item;
  |
2 | use rustc_ast::token::NonterminalKind::Item;
  |
2 | use rustc_hir::Node::Item;
  |
2 | use rustc_hir::OwnerNode::Item;
  |
    and 4 other candidates

error[E0423]: expected value, found builtin type `u32`
 --> src/astconv/mod.rs:760:34
  |
3 | poly_trait_ref = Iterator<Item = u32>
  |                                  ^^^ not a value
  |
help: consider importing this constant instead
  |
2 | use rustc_span::sym::u32;
  |

error[E0425]: cannot find value `self_ty` in this scope
 --> src/astconv/mod.rs:761:1
  |
4 | self_ty = Foo
  | ^^^^^^^ not found in this scope

error[E0425]: cannot find value `Foo` in this scope
 --> src/astconv/mod.rs:761:11
  |
4 | self_ty = Foo
  |           ^^^ not found in this scope

error[E0070]: invalid left-hand side of assignment
 --> src/astconv/mod.rs:760:32
  |
3 | poly_trait_ref = Iterator<Item = u32>
  |                  ------------- ^
  |                  |
  |                  cannot assign to this expression

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0070, E0423, E0425.
For more information about an error, try `rustc --explain E0070`.
Couldn't compile the test.
---- src/check/coercion.rs - check::coercion::CoerceMany (line 1216) stdout ----
error[E0433]: failed to resolve: use of undeclared type `CoerceMany`
 --> src/check/coercion.rs:1217:18
  |
3 | let mut coerce = CoerceMany::new(expected_ty);
  |                  ^^^^^^^^^^ not found in this scope
  |
help: consider importing this struct
  |
2 | use rustc_typeck::check::coercion::CoerceMany;
  |

error[E0425]: cannot find value `expected_ty` in this scope
 --> src/check/coercion.rs:1217:34
  |
3 | let mut coerce = CoerceMany::new(expected_ty);
  |                                  ^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `exprs` in this scope
 --> src/check/coercion.rs:1218:13
  |
4 | for expr in exprs {
  |             ^^^^^ not found in this scope

error[E0425]: cannot find value `fcx` in this scope
 --> src/check/coercion.rs:1219:19
  |
5 |     let expr_ty = fcx.check_expr_with_expectation(expr, expected);
  |                   ^^^ not found in this scope

error[E0425]: cannot find value `expected` in this scope
 --> src/check/coercion.rs:1219:57
  |
5 |     let expr_ty = fcx.check_expr_with_expectation(expr, expected);
  |                                                         ^^^^^^^^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::expected;
  |

error[E0425]: cannot find value `fcx` in this scope
 --> src/check/coercion.rs:1220:19
  |
6 |     coerce.coerce(fcx, &cause, expr, expr_ty);
  |                   ^^^ not found in this scope

error[E0425]: cannot find value `cause` in this scope
 --> src/check/coercion.rs:1220:25
  |
6 |     coerce.coerce(fcx, &cause, expr, expr_ty);
  |                         ^^^^^ not found in this scope

error[E0425]: cannot find value `fcx` in this scope
 --> src/check/coercion.rs:1222:32
  |
8 | let final_ty = coerce.complete(fcx);
  |                                ^^^ not found in this scope

error: aborting due to 8 previous errors

Some errors have detailed explanations: E0425, E0433.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/check/demand.rs - check::demand::FnCtxt::can_use_as_ref (line 452) stdout ----
error[E0425]: cannot find value `opt` in this scope
 --> src/check/demand.rs:453:1
  |
3 | opt.map(|param| { takes_ref(param) });
  | ^^^ not found in this scope

error[E0425]: cannot find function `takes_ref` in this scope
 --> src/check/demand.rs:453:19
  |
3 | opt.map(|param| { takes_ref(param) });
  |                   ^^^^^^^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/check/fallback.rs - check::fallback::FnCtxt::calculate_diverging_fallback (line 146) stdout ----
error[E0425]: cannot find function `foo` in this scope
 --> src/check/fallback.rs:147:7
  |
3 | match foo() {
  |       ^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/check/generator_interior/drop_ranges/cfg_build.rs - check::generator_interior::drop_ranges::cfg_build::DropRangeVisitor (line 74) stdout ----
error[E0382]: assign to part of moved value: `a`
 --> src/check/generator_interior/drop_ranges/cfg_build.rs:77:1
  |
3 | let mut a = (vec![0], vec![0]);
  |     ----- move occurs because `a` has type `(Vec<i32>, Vec<i32>)`, which does not implement the `Copy` trait
4 | drop(a);
  |      - value moved here
5 | a.1 = vec![1];
  | ^^^ value partially assigned here after move

error: aborting due to previous error

For more information about this error, try `rustc --explain E0382`.
Couldn't compile the test.
---- src/check/fn_ctxt/suggestions.rs - check::fn_ctxt::suggestions::FnCtxt::try_suggest_return_impl_trait (line 581) stdout ----
error[E0308]: mismatched types
 --> src/check/fn_ctxt/suggestions.rs:583:5
  |
3 | fn cant_name_it<T: Fn() -> u32>() -> T {
  |                 -                    -
  |                 |                    |
  |                 |                    expected `T` because of return type
  |                 |                    help: consider using an impl return type: `impl Fn() -> u32`
  |                 this type parameter
4 |     || 3
  |     ^^^^ expected type parameter `T`, found closure
  |
  = note: expected type parameter `T`
                    found closure `[closure@src/check/fn_ctxt/suggestions.rs:4:5: 4:9]`
  = help: every closure has a distinct type and so could not always match the caller-chosen type of parameter `T`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
Couldn't compile the test.
---- src/check/method/probe.rs - check::method::probe::ProbeContext::collapse_candidates_to_trait_pick (line 1630) stdout ----
error: non-item in item list
 --> src/check/method/probe.rs:1631:13
  |
3 | trait Foo { ... }
  |           - ^^^ - item list ends here
  |           | |
  |           | non-item starts here
  |           item list starts here

error: non-item in item list
 --> src/check/method/probe.rs:1632:25
  |
4 | impl Foo for Vec<i32> { ... }
  |                       - ^^^ - item list ends here
  |                       | |
  |                       | non-item starts here
  |                       item list starts here

error: non-item in item list
 --> src/check/method/probe.rs:1633:27
  |
5 | impl Foo for Vec<usize> { ... }
  |                         - ^^^ - item list ends here
  |                         | |
  |                         | non-item starts here
  |                         item list starts here

error: aborting due to 3 previous errors

Couldn't compile the test.
---- src/check/mod.rs - check::TupleArgumentsFlag (line 892) stdout ----
error: expected one of `->`, `where`, or `{`, found `}`
 --> src/check/mod.rs:894:1
  |
3 | fn f(x: (isize, isize))
  |    -                   - expected one of `->`, `where`, or `{`
  |    |
  |    while parsing this `fn`
4 | } _doctest_main_src_check_mod_rs_892_0() }
  | ^ unexpected token

error: free function without a body
 --> src/check/mod.rs:893:1
  |
3 | fn f(x: (isize, isize))
  | ^^^^^^^^^^^^^^^^^^^^^^^- help: provide a definition for the function: `{ <body> }`

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/check/fn_ctxt/suggestions.rs - check::fn_ctxt::suggestions::FnCtxt::suggest_missing_return_type (line 506) stdout ----
error[E0425]: cannot find function `bar_that_returns_u32` in this scope
 --> src/check/fn_ctxt/suggestions.rs:508:5
  |
4 |     bar_that_returns_u32()
  |     ^^^^^^^^^^^^^^^^^^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/check/fn_ctxt/suggestions.rs - check::fn_ctxt::suggestions::FnCtxt::suggest_missing_semicolon (line 465) stdout ----
error[E0425]: cannot find function `bar_that_returns_u32` in this scope
 --> src/check/fn_ctxt/suggestions.rs:467:5
  |
4 |     bar_that_returns_u32()
  |     ^^^^^^^^^^^^^^^^^^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/check/inherited.rs - check::inherited::Inherited (line 21) stdout ----
error: unexpected token: `...`
 --> src/check/inherited.rs:23:18
  |
4 |     bar(move|| { ... })
  |                  ^^^
  |
help: use `..` for an exclusive range
  |
4 |     bar(move|| { .. })
  |                  ~~
help: or `..=` for an inclusive range
  |
4 |     bar(move|| { ..= })
  |                  ~~~

error[E0586]: inclusive range with no end
 --> src/check/inherited.rs:23:18
  |
4 |     bar(move|| { ... })
  |                  ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0425]: cannot find function `bar` in this scope
 --> src/check/inherited.rs:23:5
  |
4 |     bar(move|| { ... })
  |     ^^^ not found in this scope

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0425, E0586.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/check/method/probe.rs - check::method::probe::Pick::autoderefs (line 204) stdout ----
error: unexpected token: `...`
 --> src/check/method/probe.rs:205:29
  |
3 | A = expr | *expr | **expr | ...
  |                             ^^^
  |
help: use `..` for an exclusive range
  |
3 | A = expr | *expr | **expr | ..
  |                             ~~
help: or `..=` for an inclusive range
  |
3 | A = expr | *expr | **expr | ..=
  |                             ~~~

error[E0586]: inclusive range with no end
 --> src/check/method/probe.rs:205:29
  |
3 | A = expr | *expr | **expr | ...
  |                             ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error[E0425]: cannot find value `A` in this scope
 --> src/check/method/probe.rs:205:1
  |
3 | A = expr | *expr | **expr | ...
  | ^ not found in this scope
  |
help: consider importing this unit variant
  |
2 | use rustc_session::config::PAuthKey::A;
  |

error[E0425]: cannot find value `expr` in this scope
 --> src/check/method/probe.rs:205:5
  |
3 | A = expr | *expr | **expr | ...
  |     ^^^^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::expr;
  |

error[E0425]: cannot find value `expr` in this scope
 --> src/check/method/probe.rs:205:13
  |
3 | A = expr | *expr | **expr | ...
  |             ^^^^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::expr;
  |

error[E0425]: cannot find value `expr` in this scope
 --> src/check/method/probe.rs:205:22
  |
3 | A = expr | *expr | **expr | ...
  |                      ^^^^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::expr;
  |

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0425, E0586.
For more information about an error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/check/mod.rs - check::TupleArgumentsFlag (line 896) stdout ----
error[E0425]: cannot find function `f` in this scope
 --> src/check/mod.rs:897:1
  |
3 | f(1, 2);
  | ^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::f;
  |

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/check/mod.rs - check::TupleArgumentsFlag (line 900) stdout ----
error[E0425]: cannot find function `f` in this scope
 --> src/check/mod.rs:901:1
  |
3 | f((1, 2));
  | ^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::f;
  |

error: aborting due to previous error

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/check/upvar.rs - check::upvar (line 9) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `->`
 --> src/check/upvar.rs:10:15
  |
3 | ty::ImmBorrow -> ty::UniqueImmBorrow -> ty::MutBorrow
  |               ^^ expected one of 8 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/check/upvar.rs - check::upvar::FnCtxt::compute_min_captures (line 450) stdout ----
error[E0277]: `Point` doesn't implement `std::fmt::Display`
  --> src/check/upvar.rs:459:19
   |
11 |        println!("{p}"); // L4
   |                   ^ `Point` cannot be formatted with the default formatter
   |
   = help: the trait `std::fmt::Display` is not implemented for `Point`
   = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
   = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
Couldn't compile the test.
---- src/check/pat.rs - check::pat::FnCtxt::check_pat_slice (line 1897) stdout ----
error: unexpected token: `...`
 --> src/check/pat.rs:1898:12
  |
3 | [before_0, ..., before_n, (slice, after_0, ... after_n)?]
  |            ^^^
  |
help: use `..` for an exclusive range
  |
3 | [before_0, .., before_n, (slice, after_0, ... after_n)?]
  |            ~~
help: or `..=` for an inclusive range
  |
3 | [before_0, ..=, before_n, (slice, after_0, ... after_n)?]
  |            ~~~

error[E0586]: inclusive range with no end
 --> src/check/pat.rs:1898:12
  |
3 | [before_0, ..., before_n, (slice, after_0, ... after_n)?]
  |            ^^^ help: use `..` instead
  |
  = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: unexpected token: `...`
 --> src/check/pat.rs:1898:44
  |
3 | [before_0, ..., before_n, (slice, after_0, ... after_n)?]
  |                                            ^^^
  |
help: use `..` for an exclusive range
  |
3 | [before_0, ..., before_n, (slice, after_0, .. after_n)?]
  |                                            ~~
help: or `..=` for an inclusive range
  |
3 | [before_0, ..., before_n, (slice, after_0, ..= after_n)?]
  |                                            ~~~

error[E0425]: cannot find value `before_0` in this scope
 --> src/check/pat.rs:1898:2
  |
3 | [before_0, ..., before_n, (slice, after_0, ... after_n)?]
  |  ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `before_n` in this scope
 --> src/check/pat.rs:1898:17
  |
3 | [before_0, ..., before_n, (slice, after_0, ... after_n)?]
  |                 ^^^^^^^^ not found in this scope

error[E0425]: cannot find value `slice` in this scope
 --> src/check/pat.rs:1898:28
  |
3 | [before_0, ..., before_n, (slice, after_0, ... after_n)?]
  |                            ^^^^^ not found in this scope
  |
help: consider importing this constant
  |
2 | use rustc_span::sym::slice;
  |

error[E0425]: cannot find value `after_0` in this scope
 --> src/check/pat.rs:1898:35
  |
3 | [before_0, ..., before_n, (slice, after_0, ... after_n)?]
  |                                   ^^^^^^^ not found in this scope

error[E0425]: cannot find value `after_n` in this scope
 --> src/check/pat.rs:1898:48
  |
3 | [before_0, ..., before_n, (slice, after_0, ... after_n)?]
  |                                                ^^^^^^^ not found in this scope

error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
 --> src/check/pat.rs:1898:56
  |
2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_check_pat_rs_1897_0() {
  |  ______________________________________-
3 | | [before_0, ..., before_n, (slice, after_0, ... after_n)?]
  | |                                                        ^ cannot use the `?` operator in a function that returns `()`
4 | | } _doctest_main_src_check_pat_rs_1897_0() }
  | |_- this function should return `Result` or `Option` to accept `?`
  |
  = help: the trait `FromResidual<_>` is not implemented for `()`

error: aborting due to 9 previous errors

Some errors have detailed explanations: E0277, E0425, E0586.
For more information about an error, try `rustc --explain E0277`.
Couldn't compile the test.
---- src/check/upvar.rs - check::upvar::FnCtxt::has_significant_drop_outside_of_captures (line 1284) stdout ----
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `v`
 --> src/check/upvar.rs:1289:47
  |
7 |                    v                          v
  |                                               ^ expected one of 8 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/check/upvar.rs - check::upvar::FnCtxt::has_significant_drop_outside_of_captures (line 1322) stdout ----
error: expected one of `async`, `|`, or `||`, found `(`
  --> src/check/upvar.rs:1331:20
   |
11 |     let c = || move(y.0);
   |                    ^ expected one of `async`, `|`, or `||`

error[E0046]: not all trait items implemented, missing: `drop`
 --> src/check/upvar.rs:1324:1
  |
4 | impl Drop for X {}
  | ^^^^^^^^^^^^^^^ missing `drop` in implementation
  |
  = help: implement the missing item: `fn drop(&mut self) { todo!() }`

error[E0046]: not all trait items implemented, missing: `drop`
 --> src/check/upvar.rs:1327:1
  |
7 | impl Drop for Y {}
  | ^^^^^^^^^^^^^^^ missing `drop` in implementation
  |
  = help: implement the missing item: `fn drop(&mut self) { todo!() }`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0046`.
Couldn't compile the test.
---- src/check/upvar.rs - check::upvar::InferBorrowKind::capture_information (line 1726) stdout ----
error: expected `;`, found keyword `let`
 --> src/check/upvar.rs:1730:68
  |
6 | let mut s = SomeStruct { str1: format!("s1"), str2: format!("s2") }
  |                                                                    ^ help: add `;` here
7 | 
8 | let fix_s = |new_s2| {
  | --- unexpected token

error: argument never used
  --> src/check/upvar.rs:1734:48
   |
10 |     println!("Updating SomeStruct with str1=", s.str1);
   |              --------------------------------  ^^^^^^ argument never used
   |              |
   |              formatting specifier missing

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/check/regionck.rs - check::regionck::RegionCtxt::resolve_type (line 272) stdout ----
error: expected type, found `@`
 --> src/check/regionck.rs:274:11
  |
4 | fn foo(x: @i32) -> i32 {  // block: B
  |           ^ expected type

error[E0425]: cannot find value `x` in this scope
 --> src/check/regionck.rs:275:20
  |
5 |     let b = borrow(x);    // region: <R0>
  |                    ^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/check/upvar.rs - check::upvar::InferBorrowKind::capture_information (line 1742) stdout ----
error: expected identifier, found `[`
 --> src/check/upvar.rs:1743:13
  |
3 | Place { V1, [ProjectionKind::Field(Index=0, Variant=0)] } : CaptureKind { E1, ImmutableBorrow }
  | -----       ^ expected identifier
  | |
  | while parsing this struct

error: expected one of `!`, `(`, `.`, `::`, `;`, `<`, `?`, or `}`, found `{`
 --> src/check/upvar.rs:1743:73
  |
3 | Place { V1, [ProjectionKind::Field(Index=0, Variant=0)] } : CaptureKind { E1, ImmutableBorrow }
  |                                                           -             ^ expected one of 8 possible tokens
  |                                                           |
  |                                                           help: maybe write a path separator here: `::`
  |
  = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/check/upvar.rs - check::upvar::determine_capture_info (line 2068) stdout ----
error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `=`, found `{`
 --> src/check/upvar.rs:2070:18
  |
4 | let mut p: Point { x: 10, y: 10 };
  |                  ^ expected one of 7 possible tokens

error: aborting due to previous error

Couldn't compile the test.
---- src/check/wfcheck.rs - check::wfcheck::CheckWfFcxBuilder (line 40) stdout ----
error: expected one of `async`, `move`, `static`, `|`, or `||`, found keyword `where`
 --> src/check/wfcheck.rs:41:18
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_check_wfcheck_rs_40_0() {
  |                                                                                   - while parsing this struct
3 | F: for<'b, 'tcx> where 'tcx FnOnce(FnCtxt<'b, 'tcx>)
  |                  ^^^^^ expected one of `async`, `move`, `static`, `|`, or `||`

error: expected identifier, found `'tcx`
 --> src/check/wfcheck.rs:41:47
  |
2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_check_wfcheck_rs_40_0() {
  |                                                                                   - while parsing this struct
3 | F: for<'b, 'tcx> where 'tcx FnOnce(FnCtxt<'b, 'tcx>)
  |                                               ^^^^ expected identifier

error: expected identifier, found keyword `where`
 --> src/check/wfcheck.rs:41:18
  |
3 | F: for<'b, 'tcx> where 'tcx FnOnce(FnCtxt<'b, 'tcx>)
  |                  ^^^^^ expected identifier, found keyword

error: struct literal body without path
 --> src/check/wfcheck.rs:40:83
  |
2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_check_wfcheck_rs_40_0() {
  |  ___________________________________________________________________________________^
3 | | F: for<'b, 'tcx> where 'tcx FnOnce(FnCtxt<'b, 'tcx>)
4 | | } _doctest_main_src_check_wfcheck_rs_40_0() }
  | |_^
  |
help: you might have forgotten to add the struct literal inside the block
  |
2 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_check_wfcheck_rs_40_0() { SomeStruct {
3 | F: for<'b, 'tcx> where 'tcx FnOnce(FnCtxt<'b, 'tcx>)
4 ~ } } _doctest_main_src_check_wfcheck_rs_40_0() }
  |

error: aborting due to 4 previous errors

Couldn't compile the test.
---- src/constrained_generic_params.rs - constrained_generic_params::setup_constraining_predicates (line 113) stdout ----
error: expected one of `!`, `(`, `+`, `::`, `<`, `where`, or `{`, found `}`
 --> src/constrained_generic_params.rs:115:1
  |
3 | impl<T: Debug, U: Iterator<Item = T>> Trait for U
  |                                                  - expected one of 7 possible tokens
4 | } _doctest_main_src_constrained_generic_params_rs_113_0() }
  | ^ unexpected token

error: aborting due to previous error

Couldn't compile the test.
---- src/expr_use_visitor.rs - expr_use_visitor::ExprUseVisitor::walk_captures (line 700) stdout ----
error: expected `;`, found `}`
 --> src/expr_use_visitor.rs:705:2
  |
7 | }
  |  ^ help: add `;` here
8 | } _doctest_main_src_expr_use_visitor_rs_700_0() }
  | - unexpected token

error[E0609]: no field `x` on type `RangeFull`
 --> src/expr_use_visitor.rs:704:22
  |
6 |    let nested = || p.x += incr;
  |                      ^ unknown field

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0609`.
Couldn't compile the test.
---- src/collect/type_of.rs - collect::type_of::find_opaque_ty_constraints (line 533) stdout ----
error[E0428]: the name `b` is defined multiple times
  --> src/collect/type_of.rs:543:1
   |
9  | fn b<T>() -> Foo<T, T> { .. }
   | ---------------------- previous definition of the value `b` here
...
12 | fn b<T>() -> Foo<T, u32> { .. }
   | ^^^^^^^^^^^^^^^^^^^^^^^^ `b` redefined here
   |
   = note: `b` must be defined only once in the value namespace of this block

error[E0405]: cannot find trait `Bar` in this scope
 --> src/collect/type_of.rs:534:23
  |
3 | type Foo<A, B> = impl Bar<A, B>;
  |                       ^^^ not found in this scope

error[E0658]: `impl Trait` in type aliases is unstable
 --> src/collect/type_of.rs:534:18
  |
3 | type Foo<A, B> = impl Bar<A, B>;
  |                  ^^^^^^^^^^^^^^
  |
  = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
  = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0405, E0428, E0658.
For more information about an error, try `rustc --explain E0405`.
Couldn't compile the test.
---- src/outlives/outlives_bounds.rs - outlives::outlives_bounds::InferCtxt::implied_outlives_bounds (line 30) stdout ----
error: expected one of `->`, `where`, or `{`, found `}`
 --> src/outlives/outlives_bounds.rs:32:1
  |
3 | fn foo<'a,T>(x: &'a T)
  |    ---                - expected one of `->`, `where`, or `{`
  |    |
  |    while parsing this `fn`
4 | } _doctest_main_src_outlives_outlives_bounds_rs_30_0() }
  | ^ unexpected token

error: free function without a body
 --> src/outlives/outlives_bounds.rs:31:1
  |
3 | fn foo<'a,T>(x: &'a T)
  | ^^^^^^^^^^^^^^^^^^^^^^- help: provide a definition for the function: `{ <body> }`

error: aborting due to 2 previous errors

Couldn't compile the test.
---- src/impl_wf_check/min_specialization.rs - impl_wf_check::min_specialization (line 32) stdout ----
error[E0405]: cannot find trait `SpecExtend` in this scope
 --> src/impl_wf_check/min_specialization.rs:33:9
  |
3 | impl<T> SpecExtend<T> for std::vec::IntoIter<T> { /* specialized impl */ }
  |         ^^^^^^^^^^ not found in this scope

error[E0405]: cannot find trait `SpecExtend` in this scope
 --> src/impl_wf_check/min_specialization.rs:34:30
  |
4 | impl<T, I: Iterator<Item=T>> SpecExtend<T> for I { /* default impl */ }
  |                              ^^^^^^^^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0405`.
Couldn't compile the test.
---- src/check/upvar.rs - check::upvar::truncate_capture_for_optimization (line 2216) stdout ----
error[E0412]: cannot find type `A` in this scope
 --> src/check/upvar.rs:2218:16
  |
4 |    a: &'static A,
  |                ^ not found in this scope
  |
help: there is an enum variant `rustc_session::config::PAuthKey::A`; try using the variant's enum
  |
4 |    a: &'static rustc_session::config::PAuthKey,
  |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: you might be missing a type parameter
  |
3 | struct MyStruct<'a, A> {
  |                   +++

error[E0412]: cannot find type `B` in this scope
 --> src/check/upvar.rs:2219:7
  |
5 |    b: B,
  |       ^ not found in this scope
  |
help: there is an enum variant `rustc_session::config::PAuthKey::B`; try using the variant's enum
  |
5 |    b: rustc_session::config::PAuthKey,
  |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: you might be missing a type parameter
  |
3 | struct MyStruct<'a, B> {
  |                   +++

error[E0412]: cannot find type `C` in this scope
 --> src/check/upvar.rs:2220:7
  |
6 |    c: C<'a>,
  |       ^ not found in this scope
  |
help: there is an enum variant `rustc_middle::middle::exported_symbols::SymbolExportLevel::C` and 4 others; try using the variant's enum
  |
6 |    c: rustc_middle::middle::exported_symbols::SymbolExportLevel,
  |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 |    c: rustc_session::cstore::DllCallingConvention,
  |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 |    c: rustc_target::abi::call::Conv,
  |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 |    c: rustc_target::spec::abi::Abi,
  |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0277]: expected a `FnMut<()>` closure, found `()`
 --> src/check/upvar.rs:2223:40
  |
9 | fn foo<'a, 'b>(m: &'a MyStruct<'b>) -> impl FnMut() + 'static {
  |                                        ^^^^^^^^^^^^^^^^^^^^^^ expected an `FnMut<()>` closure, found `()`
  |
  = help: the trait `FnMut<()>` is not implemented for `()`
  = note: wrap the `()` in a closure with no arguments: `|| { /* code */ }`

error[E0277]: expected a `FnMut<()>` closure, found `()`
  --> src/check/upvar.rs:2223:63
   |
9  |   fn foo<'a, 'b>(m: &'a MyStruct<'b>) -> impl FnMut() + 'static {
   |  _______________________________________________________________^
10 | |     let c = || drop(&*m.a.field_of_a);
11 | |     // Here we really do want to capture `*m.a` because that outlives `'static`
12 | |
13 | |     // If we capture `m`, then the closure no longer outlives `'static'
14 | |     // it is constrained to `'a`
15 | | }
   | |_^ expected an `FnMut<()>` closure, found `()`
   |
   = help: the trait `FnMut<()>` is not implemented for `()`
   = note: wrap the `()` in a closure with no arguments: `|| { /* code */ }`

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0277, E0412.
For more information about an error, try `rustc --explain E0277`.
Couldn't compile the test.
---- src/mem_categorization.rs - mem_categorization (line 13) stdout ----
error[E0425]: cannot find value `E` in this scope
 --> src/mem_categorization.rs:14:1
  |
3 | E = rvalue    // some computed rvalue
  | ^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use core::f32::consts::E;
  |
2 | use core::f64::consts::E;
  |
2 | use std::f32::consts::E;
  |
2 | use std::f64::consts::E;
  |

error[E0425]: cannot find value `rvalue` in this scope
 --> src/mem_categorization.rs:14:5
  |
3 | E = rvalue    // some computed rvalue
  |     ^^^^^^ not found in this scope

error[E0425]: cannot find value `x` in this scope
 --> src/mem_categorization.rs:15:5
  |
4 |   | x         // address of a local variable or argument
  |     ^ not found in this scope

error[E0425]: cannot find value `E` in this scope
 --> src/mem_categorization.rs:16:6
  |
5 |   | *E        // deref of a ptr
  |      ^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use core::f32::consts::E;
  |
2 | use core::f64::consts::E;
  |
2 | use std::f32::consts::E;
  |
2 | use std::f64::consts::E;
  |

error[E0425]: cannot find value `E` in this scope
 --> src/mem_categorization.rs:17:5
  |
6 |   | E.comp    // access to an interior component
  |     ^ not found in this scope
  |
help: consider importing one of these items
  |
2 | use core::f32::consts::E;
  |
2 | use core::f64::consts::E;
  |
2 | use std::f32::consts::E;
  |
2 | use std::f64::consts::E;
  |

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0425`.
Couldn't compile the test.
---- src/outlives/implicit_infer.rs - outlives::implicit_infer::check_explicit_predicates (line 240) stdout ----
error: expected identifier, found `...`
 --> src/outlives/implicit_infer.rs:246:5
  |
8 |     ...
  |     ^^^ expected identifier

error[E0404]: expected trait, found struct `Foo`
 --> src/outlives/implicit_infer.rs:245:36
  |
7 | struct Bar<U> where U: 'static, U: Foo {
  |                                    ^^^ not a trait

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0404`.
Couldn't compile the test.
---- src/variance/constraints.rs - variance::constraints::CurrentItem (line 38) stdout ----
error[E0412]: cannot find type `Bar` in this scope
 --> src/variance/constraints.rs:40:8
  |
4 |     b: Bar<T>
  |        ^^^ not found in this scope

error: aborting due to previous error

For more information about this error, try `rustc --explain E0412`.
Couldn't compile the test.

failures:
    src/astconv/mod.rs - astconv::dynAstConv+'o::compute_bounds (line 1029)
    src/astconv/mod.rs - astconv::dynAstConv+'o::create_substs_for_ast_path (line 297)
    src/astconv/mod.rs - astconv::dynAstConv+'o::create_substs_for_ast_path (line 313)
    src/astconv/mod.rs - astconv::dynAstConv+'o::instantiate_poly_trait_ref (line 759)
    src/check/closure.rs - check::closure::FnCtxt::sig_of_closure_with_expectation (line 374)
    src/check/coercion.rs - check::coercion (line 24)
    src/check/coercion.rs - check::coercion::CoerceMany (line 1216)
    src/check/demand.rs - check::demand::FnCtxt::can_use_as_ref (line 442)
    src/check/demand.rs - check::demand::FnCtxt::can_use_as_ref (line 452)
    src/check/demand.rs - check::demand::FnCtxt::check_ref (line 569)
    src/check/fallback.rs - check::fallback::FnCtxt::calculate_diverging_fallback (line 146)
    src/check/fallback.rs - check::fallback::FnCtxt::calculate_diverging_fallback (line 171)
    src/check/fn_ctxt/checks.rs - check::fn_ctxt::checks::FnCtxt::consider_hint_about_removing_semicolon (line 913)
    src/check/fn_ctxt/suggestions.rs - check::fn_ctxt::suggestions::FnCtxt::suggest_fn_call (line 74)
    src/check/fn_ctxt/suggestions.rs - check::fn_ctxt::suggestions::FnCtxt::suggest_missing_return_type (line 506)
    src/check/fn_ctxt/suggestions.rs - check::fn_ctxt::suggestions::FnCtxt::suggest_missing_semicolon (line 465)
    src/check/fn_ctxt/suggestions.rs - check::fn_ctxt::suggestions::FnCtxt::try_suggest_return_impl_trait (line 581)
    src/check/generator_interior/drop_ranges/cfg_build.rs - check::generator_interior::drop_ranges::cfg_build::DropRangeVisitor (line 74)
    src/check/inherited.rs - check::inherited::Inherited (line 21)
    src/check/method/probe.rs - check::method::probe::Pick::autoderefs (line 204)
    src/check/method/probe.rs - check::method::probe::ProbeContext::collapse_candidates_to_trait_pick (line 1630)
    src/check/mod.rs - check::TupleArgumentsFlag (line 892)
    src/check/mod.rs - check::TupleArgumentsFlag (line 896)
    src/check/mod.rs - check::TupleArgumentsFlag (line 900)
    src/check/pat.rs - check::pat::FnCtxt::check_pat_slice (line 1897)
    src/check/regionck.rs - check::regionck::RegionCtxt::resolve_type (line 272)
    src/check/upvar.rs - check::upvar (line 9)
    src/check/upvar.rs - check::upvar::FnCtxt::compute_min_captures (line 450)
    src/check/upvar.rs - check::upvar::FnCtxt::has_significant_drop_outside_of_captures (line 1284)
    src/check/upvar.rs - check::upvar::FnCtxt::has_significant_drop_outside_of_captures (line 1322)
    src/check/upvar.rs - check::upvar::InferBorrowKind::capture_information (line 1726)
    src/check/upvar.rs - check::upvar::InferBorrowKind::capture_information (line 1742)
    src/check/upvar.rs - check::upvar::determine_capture_info (line 2068)
    src/check/upvar.rs - check::upvar::truncate_capture_for_optimization (line 2216)
    src/check/wfcheck.rs - check::wfcheck::CheckWfFcxBuilder (line 40)
    src/collect/type_of.rs - collect::type_of::find_opaque_ty_constraints (line 533)
    src/constrained_generic_params.rs - constrained_generic_params::setup_constraining_predicates (line 113)
    src/expr_use_visitor.rs - expr_use_visitor::ExprUseVisitor::walk_captures (line 700)
    src/impl_wf_check/min_specialization.rs - impl_wf_check::min_specialization (line 32)
    src/mem_categorization.rs - mem_categorization (line 13)
    src/outlives/implicit_infer.rs - outlives::implicit_infer::check_explicit_predicates (line 240)
    src/outlives/outlives_bounds.rs - outlives::outlives_bounds::InferCtxt::implied_outlives_bounds (line 30)
    src/variance/constraints.rs - variance::constraints::CurrentItem (line 38)

test result: FAILED. 7 passed; 43 failed; 4 ignored; 0 measured; 0 filtered out; finished in 0.82s

error: test failed, to rerun pass '--doc'
	finished in 2.855 seconds
Testing rustc_type_ir stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.14s
   Doc-tests rustc_type_ir

running 4 tests
FFFF
failures:

---- src/lib.rs - DebruijnIndex::shifted_out_to_binder (line 206) stdout ----
error: expected one of `async`, `move`, `static`, `|`, or `||`, found keyword `fn`
 --> src/lib.rs:207:11
  |
3 | for<'a>   fn(for<'b>   for<'c>   fn(&'a u32), _)
  |           ^^ expected one of `async`, `move`, `static`, `|`, or `||`

error: aborting due to previous error

Couldn't compile the test.
---- src/lib.rs - DebruijnIndex (line 126) stdout ----
error: expected one of `async`, `move`, `static`, `|`, or `||`, found keyword `fn`
 --> src/lib.rs:127:9
  |
3 | for<'a> fn(for<'b> fn(&'b isize, &'a isize), &'a char)
  |         ^^ expected one of `async`, `move`, `static`, `|`, or `||`

error: aborting due to previous error

Couldn't compile the test.
---- src/lib.rs - Variance::xform (line 475) stdout ----
error: expected expression, found keyword `mut`
 --> src/lib.rs:476:2
  |
3 | *mut Vec<i32>
  |  ^^^ expected expression

error: aborting due to previous error

Couldn't compile the test.
---- src/lib.rs - Variance::xform (line 487) stdout ----
error: expected identifier, found `(`
 --> src/lib.rs:488:3
  |
3 | fn(*const Vec<i32>, *mut Vec<i32)
  |   ^ expected identifier

error: aborting due to previous error

Couldn't compile the test.

failures:
    src/lib.rs - DebruijnIndex (line 126)
    src/lib.rs - DebruijnIndex::shifted_out_to_binder (line 206)
    src/lib.rs - Variance::xform (line 475)
    src/lib.rs - Variance::xform (line 487)

test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

error: test failed, to rerun pass '--doc'
	finished in 0.251 seconds
Testing rustc_ty_utils stage1 (x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu) -> x86_64-unknown-linux-gnu(x86_64-unknown-linux-gnu))
    Finished release [optimized] target(s) in 0.12s
   Doc-tests rustc_ty_utils

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

	finished in 0.276 seconds

23 command(s) did not execute successfully:

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_ast_pretty" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_borrowck" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_builtin_macros" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_codegen_llvm" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_data_structures" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_driver" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_errors" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_expand" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_hir" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_incremental" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_infer" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_middle" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_mir_build" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_mir_dataflow" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_mir_transform" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_monomorphize" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_parse" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_query_system" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_resolve" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_span" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_trait_selection" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_typeck" "--" "--quiet"

  - "/home/jnelson/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "llvm" "--manifest-path" "/home/jnelson/rust-lang/rust/compiler/rustc/Cargo.toml" "--no-fail-fast" "--doc" "-p" "rustc_type_ir" "--" "--quiet"

Build completed unsuccessfully in 0:00:54
