Skip to content

Conversation

Kobzol
Copy link
Member

@Kobzol Kobzol commented Sep 1, 2025

This PR finishes the initial pass of refactorings that fixed up staging of various bootstrap steps after the stage0 redesign. Now the real refactorings can begin =D

It fixes the unnecessary stage2 build of cargo for run-make tests (https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/run-make.20cargo.20staging/with/536662651), and also consolidates staging of messages printed by bootstrap for test steps (Testing stageN... etc.).

r? @jieyouxu

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Sep 1, 2025
@rust-log-analyzer

This comment has been minimized.

@practicalrs
Copy link
Contributor

@Kobzol

Is there any RFC or blog post that describes the intended changes and goals of the whole refactoring?

@Kobzol
Copy link
Member Author

Kobzol commented Sep 1, 2025

Essentially this: https://blog.rust-lang.org/inside-rust/2025/05/29/redesigning-the-initial-bootstrap-sequence/. This landed ~3 months ago, and since then I'm trying to fix various bugs and issues around it.

@Kobzol Kobzol force-pushed the bootstrap-compiletest branch from e5a53f2 to cc625c6 Compare September 1, 2025 09:29
@rust-log-analyzer

This comment has been minimized.

@Kobzol Kobzol force-pushed the bootstrap-compiletest branch from cc625c6 to 66d0607 Compare September 1, 2025 11:08
Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, r=me with two comment nits

View changes since this review

@Kobzol Kobzol force-pushed the bootstrap-compiletest branch from 66d0607 to 6f5fc69 Compare September 1, 2025 12:30
@Kobzol
Copy link
Member Author

Kobzol commented Sep 1, 2025

@bors r=jieyouxu rollup=never

@bors
Copy link
Collaborator

bors commented Sep 1, 2025

📌 Commit 6f5fc69 has been approved by jieyouxu

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 1, 2025
@bors
Copy link
Collaborator

bors commented Sep 1, 2025

⌛ Testing commit 6f5fc69 with merge a56e02f...

bors added a commit that referenced this pull request Sep 1, 2025
Consolidate staging for compiletest steps in bootstrap

This PR finishes the initial pass of refactorings that fixed up staging of various bootstrap steps after the stage0 redesign. Now the *real* refactorings can begin =D

It fixes the unnecessary stage2 build of cargo for run-make tests (https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/run-make.20cargo.20staging/with/536662651), and also consolidates staging of messages printed by bootstrap for test steps (`Testing stageN...` etc.).

r? `@jieyouxu`
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-llvm-20-3 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
---- [ui] tests/ui-fulldeps/compiler-calls.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/compiler-calls.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/compiler-calls/a" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/compiler-calls.rs:9:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_interface`
##[error]  --> /checkout/tests/ui-fulldeps/compiler-calls.rs:10:1
   |
LL | extern crate rustc_interface;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/compiler-calls.rs stdout end ----
---- [ui] tests/ui-fulldeps/deriving-hygiene.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/deriving-hygiene.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/deriving-hygiene/a" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_macros`
##[error]  --> /checkout/tests/ui-fulldeps/deriving-hygiene.rs:5:1
   |
LL | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_serialize`
##[error]  --> /checkout/tests/ui-fulldeps/deriving-hygiene.rs:6:1
   |
LL | extern crate rustc_serialize;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_span`
##[error]  --> /checkout/tests/ui-fulldeps/deriving-hygiene.rs:7:1
   |
LL | extern crate rustc_span;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/deriving-hygiene.rs:14:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/deriving-hygiene.rs stdout end ----
---- [ui] tests/ui-fulldeps/deriving-global.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/deriving-global.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/deriving-global/a" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_macros`
##[error]  --> /checkout/tests/ui-fulldeps/deriving-global.rs:5:1
   |
LL | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_serialize`
##[error]  --> /checkout/tests/ui-fulldeps/deriving-global.rs:6:1
   |
LL | extern crate rustc_serialize;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_span`
##[error]  --> /checkout/tests/ui-fulldeps/deriving-global.rs:7:1
   |
LL | extern crate rustc_span;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/deriving-global.rs:12:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
-    | borrow might be used here, when `arena` is dropped and runs the `Drop` code for type `TypedArena`
+ LL | extern crate rustc_arena;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
13 
14 error: aborting due to 1 previous error
15 

- For more information about this error, try `rustc --explain E0597`.
---
+   --> $DIR/dropck-tarena-cycle-checked.rs:11:1
+ LL | extern crate rustc_arena;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args dropck-tarena-cycle-checked.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/dropck-tarena-cycle-checked.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/dropck-tarena-cycle-checked" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_arena`
##[error]  --> /checkout/tests/ui-fulldeps/dropck-tarena-cycle-checked.rs:11:1
   |
LL | extern crate rustc_arena;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
-    | borrow might be used here, when `arena` is dropped and runs the `Drop` code for type `TypedArena`
+ LL | extern crate rustc_arena;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
13 
14 error: aborting due to 1 previous error
15 

- For more information about this error, try `rustc --explain E0597`.
---
+   --> $DIR/dropck-tarena-unsound-drop.rs:14:1
+ LL | extern crate rustc_arena;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args dropck-tarena-unsound-drop.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/dropck-tarena-unsound-drop.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/dropck-tarena-unsound-drop" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_arena`
##[error]  --> /checkout/tests/ui-fulldeps/dropck-tarena-unsound-drop.rs:14:1
   |
LL | extern crate rustc_arena;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/dropck-tarena-unsound-drop.rs stdout end ----
---- [ui] tests/ui-fulldeps/dropck_tarena_sound_drop.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/dropck_tarena_sound_drop.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/dropck_tarena_sound_drop/a" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_arena`
##[error]  --> /checkout/tests/ui-fulldeps/dropck_tarena_sound_drop.rs:15:1
   |
LL | extern crate rustc_arena;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/dropck_tarena_sound_drop.rs:20:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
6    |
-    = note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
-    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
-    = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
10 
- error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
+ error[E0463]: can't find crate for `rustc_macros`
12   --> $DIR/hash-stable-is-unstable.rs:6:1
13    |
14 LL | extern crate rustc_macros;

-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
16    |
-    = note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
-    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
-    = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
20 
- error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
+ error[E0463]: can't find crate for `rustc_query_system`
22   --> $DIR/hash-stable-is-unstable.rs:10:1
23    |
24 LL | extern crate rustc_query_system;

-    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
26    |
-    = note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
-    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
-    = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
30 
- error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
-   --> $DIR/hash-stable-is-unstable.rs:15:5
-    |
- LL | use rustc_macros::HashStable;
-    |     ^^^^^^^^^^^^^^^^^^^^^^^^
-    |
-    = note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
-    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
-    = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
+ error: aborting due to 3 previous errors
40 
- error[E0658]: use of unstable library feature `rustc_private`: this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
-   --> $DIR/hash-stable-is-unstable.rs:20:10
-    |
- LL | #[derive(HashStable)]
-    |          ^^^^^^^^^^
-    |
-    = note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
-    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
-    = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
-    = note: this error originates in the derive macro `HashStable` (in Nightly builds, run with -Z macro-backtrace for more info)
- 
- error: aborting due to 5 previous errors
- 
- For more information about this error, try `rustc --explain E0658`.
---
To only update this specific test, also pass `--test-args hash-stable-is-unstable.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/hash-stable-is-unstable.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/hash-stable-is-unstable" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Zdeduplicate-diagnostics=yes"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_data_structures`
##[error]  --> /checkout/tests/ui-fulldeps/hash-stable-is-unstable.rs:2:1
   |
LL | extern crate rustc_data_structures;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_macros`
##[error]  --> /checkout/tests/ui-fulldeps/hash-stable-is-unstable.rs:6:1
   |
LL | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_query_system`
##[error]  --> /checkout/tests/ui-fulldeps/hash-stable-is-unstable.rs:10:1
   |
LL | extern crate rustc_query_system;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
-   --> $DIR/bad_opt_access.rs:8:9
-    |
- LL | #![deny(rustc::bad_opt_access)]
-    |         ^^^^^^^^^^^^^^^^^^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
12 
- error: use `TyCtxt::crate_types` instead of this field
-   --> $DIR/bad_opt_access.rs:17:13
-    |
- LL |     let _ = sess.opts.crate_types;
---
+ error[E0463]: can't find crate for `rustc_session`
+   --> $DIR/bad_opt_access.rs:10:1
+ LL | extern crate rustc_session;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error: aborting due to 1 previous error
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args internal-lints/bad_opt_access.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/bad_opt_access.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/bad_opt_access" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_session`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/bad_opt_access.rs:10:1
   |
LL | extern crate rustc_session;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
9    |
- LL |     rustc_fluent_macro::fluent_messages! { "../definitely_does_not_exist.ftl" }
-    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
12 
- error: could not parse Fluent resource
-   --> $DIR/test.rs:31:44
+ error[E0463]: can't find crate for `rustc_fluent_macro`
+   --> $DIR/test.rs:6:1
15    |
- LL |     rustc_fluent_macro::fluent_messages! { "./missing-message.ftl" }
-    |                                            ^^^^^^^^^^^^^^^^^^^^^^^
+ LL | extern crate rustc_fluent_macro;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
18    |
-    = help: see additional errors emitted
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
20 
- error: expected a message field for "no_crate_missing_message"
-  --> ./missing-message.ftl:1:1
-   |
- 1 | no_crate_missing_message =
---
+   --> $DIR/test.rs:54:21
30    |
- LL |     rustc_fluent_macro::fluent_messages! { "./duplicate.ftl" }
-    |                                            ^^^^^^^^^^^^^^^^^
+ LL |         use super::{fluent_generated::no_crate_key, DEFAULT_LOCALE_RESOURCE};
+    |                     ^^^^^^^^^^^^^^^^                ^^^^^^^^^^^^^^^^^^^^^^^ no `DEFAULT_LOCALE_RESOURCE` in `valid`
+    |                     |
+    |                     could not find `fluent_generated` in `super`
33 
- error: name `no_crate_this-slug-has-hyphens` contains a '-' character
-   --> $DIR/test.rs:41:44
+ error[E0432]: unresolved imports `super::fluent_generated`, `super::DEFAULT_LOCALE_RESOURCE`
+   --> $DIR/test.rs:66:13
36    |
- LL |     rustc_fluent_macro::fluent_messages! { "./slug-with-hyphens.ftl" }
-    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^
-    |
-    = help: replace any '-'s with '_'s
+ LL |             fluent_generated::{no_crate_foo, with_hyphens},
+    |             ^^^^^^^^^^^^^^^^ could not find `fluent_generated` in `super`
+ LL |             DEFAULT_LOCALE_RESOURCE,
+    |             ^^^^^^^^^^^^^^^^^^^^^^^ no `DEFAULT_LOCALE_RESOURCE` in `missing_crate_name`
41 
- error: attribute `label-has-hyphens` contains a '-' character
-   --> $DIR/test.rs:46:44
-    |
- LL |     rustc_fluent_macro::fluent_messages! { "./label-with-hyphens.ftl" }
---
+ error[E0463]: can't find crate for `rustc_errors`
+   --> $DIR/test.rs:5:1
+ LL | extern crate rustc_errors;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error[E0463]: can't find crate for `rustc_fluent_macro`
+   --> $DIR/test.rs:6:1
+ LL | extern crate rustc_fluent_macro;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error[E0432]: unresolved imports `super::fluent_generated`, `super::DEFAULT_LOCALE_RESOURCE`
+   --> $DIR/test.rs:54:21
+ LL |         use super::{fluent_generated::no_crate_key, DEFAULT_LOCALE_RESOURCE};
+    |                     ^^^^^^^^^^^^^^^^                ^^^^^^^^^^^^^^^^^^^^^^^ no `DEFAULT_LOCALE_RESOURCE` in `valid`
+    |                     |
+    |                     could not find `fluent_generated` in `super`
+ error[E0432]: unresolved imports `super::fluent_generated`, `super::DEFAULT_LOCALE_RESOURCE`
+   --> $DIR/test.rs:66:13
+ LL |             fluent_generated::{no_crate_foo, with_hyphens},
+    |             ^^^^^^^^^^^^^^^^ could not find `fluent_generated` in `super`
+ LL |             DEFAULT_LOCALE_RESOURCE,
+    |             ^^^^^^^^^^^^^^^^^^^^^^^ no `DEFAULT_LOCALE_RESOURCE` in `missing_crate_name`
+ error: aborting due to 4 previous errors
+ Some errors have detailed explanations: E0432, E0463.
+ For more information about an error, try `rustc --explain E0432`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args fluent-messages/test.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/fluent-messages/test.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/fluent-messages/test" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_errors`
##[error]  --> /checkout/tests/ui-fulldeps/fluent-messages/test.rs:5:1
   |
LL | extern crate rustc_errors;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_fluent_macro`
##[error]  --> /checkout/tests/ui-fulldeps/fluent-messages/test.rs:6:1
   |
LL | extern crate rustc_fluent_macro;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0432]: unresolved imports `super::fluent_generated`, `super::DEFAULT_LOCALE_RESOURCE`
##[error]  --> /checkout/tests/ui-fulldeps/fluent-messages/test.rs:54:21
   |
LL |         use super::{fluent_generated::no_crate_key, DEFAULT_LOCALE_RESOURCE};
   |                     ^^^^^^^^^^^^^^^^                ^^^^^^^^^^^^^^^^^^^^^^^ no `DEFAULT_LOCALE_RESOURCE` in `valid`
   |                     |
   |                     could not find `fluent_generated` in `super`

error[E0432]: unresolved imports `super::fluent_generated`, `super::DEFAULT_LOCALE_RESOURCE`
##[error]  --> /checkout/tests/ui-fulldeps/fluent-messages/test.rs:66:13
   |
LL |             fluent_generated::{no_crate_foo, with_hyphens},
   |             ^^^^^^^^^^^^^^^^ could not find `fluent_generated` in `super`
LL |             DEFAULT_LOCALE_RESOURCE,
   |             ^^^^^^^^^^^^^^^^^^^^^^^ no `DEFAULT_LOCALE_RESOURCE` in `missing_crate_name`

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0432, E0463.
For more information about an error, try `rustc --explain E0432`.
------------------------------------------

---- [ui] tests/ui-fulldeps/fluent-messages/test.rs stdout end ----
---- [ui] tests/ui-fulldeps/empty-struct-braces-derive.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/empty-struct-braces-derive.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/empty-struct-braces-derive/a" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_macros`
##[error]  --> /checkout/tests/ui-fulldeps/empty-struct-braces-derive.rs:6:1
   |
LL | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_serialize`
##[error]  --> /checkout/tests/ui-fulldeps/empty-struct-braces-derive.rs:7:1
   |
LL | extern crate rustc_serialize;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_span`
##[error]  --> /checkout/tests/ui-fulldeps/empty-struct-braces-derive.rs:8:1
   |
LL | extern crate rustc_span;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/empty-struct-braces-derive.rs:13:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
-   --> $DIR/import-of-type-ir-inherent.rs:4:9
-    |
- LL | #![deny(rustc::usage_of_type_ir_inherent)]
-    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
13 
- error: do not use `rustc_type_ir::inherent` unless you're inside of the trait solver
-   --> $DIR/import-of-type-ir-inherent.rs:10:20
-    |
- LL | use rustc_type_ir::inherent;
---
+ error[E0463]: can't find crate for `rustc_type_ir`
+   --> $DIR/import-of-type-ir-inherent.rs:6:1
+ LL | extern crate rustc_type_ir;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error: aborting due to 1 previous error
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args internal-lints/import-of-type-ir-inherent.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/import-of-type-ir-inherent.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/import-of-type-ir-inherent" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_type_ir`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/import-of-type-ir-inherent.rs:6:1
   |
LL | extern crate rustc_type_ir;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
-   --> $DIR/default_hash_types.rs:4:9
-    |
- LL | #![deny(rustc::default_hash_types)]
-    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
13 
- error: prefer `FxHashMap` over `HashMap`, it has better performance
-   --> $DIR/default_hash_types.rs:16:15
-    |
- LL |     let _map: HashMap<String, String> = HashMap::default();
---
+ error[E0463]: can't find crate for `rustc_data_structures`
+   --> $DIR/default_hash_types.rs:6:1
+ LL | extern crate rustc_data_structures;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error: aborting due to 1 previous error
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args internal-lints/default_hash_types.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/default_hash_types.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/default_hash_types" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_data_structures`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/default_hash_types.rs:6:1
   |
LL | extern crate rustc_data_structures;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
-   --> $DIR/non_glob_import_of_type_ir_inherent.rs:3:9
-    |
- LL | #![deny(rustc::non_glob_import_of_type_ir_inherent)]
-    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
14 
- error: non-glob import of `rustc_type_ir::inherent`
-   --> $DIR/non_glob_import_of_type_ir_inherent.rs:17:35
-    |
- LL |     use rustc_type_ir::inherent::{AdtDef, Ty};
---
- error: non-glob import of `rustc_type_ir::inherent`
-   --> $DIR/non_glob_import_of_type_ir_inherent.rs:24:9
-    |
- LL |     use rustc_type_ir::inherent;
-    |         ^^^^^^^^^^^^^^^^^^^^^^^- help: try using a glob import instead: `::*`
- 
- error: non-glob import of `rustc_type_ir::inherent`
-   --> $DIR/non_glob_import_of_type_ir_inherent.rs:25:9
-    |
- LL |     use rustc_type_ir::inherent as inh;
---
+ error[E0463]: can't find crate for `rustc_type_ir`
+   --> $DIR/non_glob_import_of_type_ir_inherent.rs:5:1
+ LL | extern crate rustc_type_ir;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error: aborting due to 1 previous error
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args internal-lints/non_glob_import_of_type_ir_inherent.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/non_glob_import_of_type_ir_inherent.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/non_glob_import_of_type_ir_inherent" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_type_ir`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/non_glob_import_of_type_ir_inherent.rs:5:1
   |
LL | extern crate rustc_type_ir;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
+    |
+ LL | extern crate rustc_middle;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ 
+ error[E0463]: can't find crate for `rustc_session`
+   --> $DIR/lint_pass_impl_without_macro.rs:7:1
+    |
+ LL | extern crate rustc_session;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ 
+ error[E0425]: cannot find value `TEST_LINT` in this scope
+   --> $DIR/lint_pass_impl_without_macro.rs:26:14
+    |
+ LL |         vec![TEST_LINT]
---
+    |
+ LL | extern crate rustc_middle;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ 
+ error[E0463]: can't find crate for `rustc_session`
+   --> $DIR/lint_pass_impl_without_macro.rs:7:1
+    |
+ LL | extern crate rustc_session;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ 
+ error[E0425]: cannot find value `TEST_LINT` in this scope
+   --> $DIR/lint_pass_impl_without_macro.rs:26:14
+    |
+ LL |         vec![TEST_LINT]
---
To only update this specific test, also pass `--test-args internal-lints/lint_pass_impl_without_macro.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/lint_pass_impl_without_macro" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_middle`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs:6:1
   |
LL | extern crate rustc_middle;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_session`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs:7:1
   |
LL | extern crate rustc_session;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0425]: cannot find value `TEST_LINT` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.rs:26:14
   |
LL |         vec![TEST_LINT]
---
-   --> $DIR/query_completeness.rs:10:15
+ error[E0463]: can't find crate for `rustc_data_structures`
+   --> $DIR/query_completeness.rs:5:1
3    |
- LL |     let _ = x.is_stolen();
-    |               ^^^^^^^^^
+ LL | extern crate rustc_data_structures;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
6    |
-    = note: if you believe this case to be fine, allow this lint and add a comment explaining your rationale
- note: the lint level is defined here
-   --> $DIR/query_completeness.rs:3:9
-    |
- LL | #![deny(rustc::untracked_query_information)]
-    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
13 
14 error: aborting due to 1 previous error
15 

+ For more information about this error, try `rustc --explain E0463`.
---
+ error[E0463]: can't find crate for `rustc_data_structures`
+   --> $DIR/query_completeness.rs:5:1
+ LL | extern crate rustc_data_structures;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args internal-lints/query_completeness.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/query_completeness.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/query_completeness" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_data_structures`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/query_completeness.rs:5:1
   |
LL | extern crate rustc_data_structures;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
-   --> $DIR/qualified_ty_ty_ctxt.rs:4:9
-    |
- LL | #![deny(rustc::usage_of_qualified_ty)]
-    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
12 
- error: usage of qualified `ty::TyCtxt<'_>`
-   --> $DIR/qualified_ty_ty_ctxt.rs:27:16
-    |
- LL |     ty_ctxt_q: ty::TyCtxt<'_>,
---
+ error[E0463]: can't find crate for `rustc_middle`
+   --> $DIR/qualified_ty_ty_ctxt.rs:7:1
+ LL | extern crate rustc_middle;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error: aborting due to 1 previous error
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args internal-lints/qualified_ty_ty_ctxt.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_middle`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/qualified_ty_ty_ctxt.rs:7:1
   |
LL | extern crate rustc_middle;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
-   --> $DIR/rustc_pass_by_value.rs:5:9
-    |
- LL | #![deny(rustc::pass_by_value)]
-    |         ^^^^^^^^^^^^^^^^^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
12 
- error: passing `TyCtxt<'_>` by reference
-   --> $DIR/rustc_pass_by_value.rs:16:18
-    |
- LL |     ty_ctxt_ref: &TyCtxt<'_>,
---
+ error[E0463]: can't find crate for `rustc_middle`
+   --> $DIR/rustc_pass_by_value.rs:8:1
+ LL | extern crate rustc_middle;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error: aborting due to 1 previous error
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args internal-lints/rustc_pass_by_value.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/rustc_pass_by_value.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/rustc_pass_by_value" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_middle`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/rustc_pass_by_value.rs:8:1
   |
LL | extern crate rustc_middle;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/internal-lints/rustc_pass_by_value.rs stdout end ----
---- [ui] tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.rs stdout ----
Saved the actual stderr to `/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/span_use_eq_ctxt/span_use_eq_ctxt.stderr`
diff of stderr:

- error: use `.eq_ctxt()` instead of `.ctxt() == .ctxt()`
-   --> $DIR/span_use_eq_ctxt.rs:12:5
+ error[E0463]: can't find crate for `rustc_span`
+   --> $DIR/span_use_eq_ctxt.rs:8:1
3    |
- LL |     s.ctxt() == t.ctxt()
-    |     ^^^^^^^^^^^^^^^^^^^^
+ LL | extern crate rustc_span;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
6    |
- note: the lint level is defined here
-   --> $DIR/span_use_eq_ctxt.rs:5:9
-    |
- LL | #![deny(rustc::span_use_eq_ctxt)]
-    |         ^^^^^^^^^^^^^^^^^^^^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
12 
13 error: aborting due to 1 previous error
14 

+ For more information about this error, try `rustc --explain E0463`.
---
+ error[E0463]: can't find crate for `rustc_span`
+   --> $DIR/span_use_eq_ctxt.rs:8:1
+ LL | extern crate rustc_span;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args internal-lints/span_use_eq_ctxt.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/span_use_eq_ctxt" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_span`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/span_use_eq_ctxt.rs:8:1
   |
LL | extern crate rustc_span;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
-   --> $DIR/ty_tykind_usage.rs:11:8
-    |
- LL | #[deny(rustc::usage_of_ty_tykind)]
-    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
12 
- error: usage of `ty::TyKind::<kind>`
-   --> $DIR/ty_tykind_usage.rs:16:9
+ error[E0463]: can't find crate for `rustc_type_ir`
+   --> $DIR/ty_tykind_usage.rs:6:1
---
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
21    |
- LL |     if let TyKind::Int(int_ty) = kind {}
-    |            ^^^^^^ help: try using `ty::<kind>` directly: `ty`
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
24 
- error: usage of `ty::TyKind`
-   --> $DIR/ty_tykind_usage.rs:24:24
-    |
- LL |     fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
---
+ error[E0463]: can't find crate for `rustc_middle`
+   --> $DIR/ty_tykind_usage.rs:5:1
+ LL | extern crate rustc_middle;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error[E0463]: can't find crate for `rustc_type_ir`
+   --> $DIR/ty_tykind_usage.rs:6:1
+ LL | extern crate rustc_type_ir;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error: aborting due to 2 previous errors
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args internal-lints/ty_tykind_usage.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/ty_tykind_usage.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/ty_tykind_usage" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_middle`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/ty_tykind_usage.rs:5:1
   |
LL | extern crate rustc_middle;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_type_ir`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/ty_tykind_usage.rs:6:1
   |
LL | extern crate rustc_type_ir;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/internal-lints/ty_tykind_usage.rs stdout end ----
---- [ui] tests/ui-fulldeps/lint-pass-macros.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/lint-pass-macros.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/lint-pass-macros" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_session`
##[error]  --> /checkout/tests/ui-fulldeps/lint-pass-macros.rs:6:1
   |
LL | extern crate rustc_session;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/lint-pass-macros.rs stdout end ----
---- [ui] tests/ui-fulldeps/lexer/unicode-version.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/lexer/unicode-version.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/lexer/unicode-version/a" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/lexer/unicode-version.rs:14:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_lexer`
##[error]  --> /checkout/tests/ui-fulldeps/lexer/unicode-version.rs:15:1
   |
LL | extern crate rustc_lexer;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_parse`
##[error]  --> /checkout/tests/ui-fulldeps/lexer/unicode-version.rs:16:1
   |
LL | extern crate rustc_parse;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
+ LL | extern crate rustc_serialize;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
6    |
-    = help: try adding `extern crate rustc_driver;` at the top level of this crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
8 
- error: crate `rustc_stable_hash` required to be available in rlib format, but was not found in this form
-    |
-    = help: try adding `extern crate rustc_driver;` at the top level of this crate
+ error: aborting due to NUMBER previous error
---
+ error[E0463]: can't find crate for `rustc_serialize`
+   --> $DIR/missing-rustc-driver-error.rs:9:1
+ LL | extern crate rustc_serialize;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error: aborting due to NUMBER previous error
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args missing-rustc-driver-error.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/missing-rustc-driver-error.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/missing-rustc-driver-error" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "--emit" "link"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_serialize`
##[error]  --> /checkout/tests/ui-fulldeps/missing-rustc-driver-error.rs:9:1
   |
LL | extern crate rustc_serialize;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
+    |         ^^^^^^^^^^^^ can't find crate
6    |
-    = note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
-    = help: add `#![feature(rustc_private)]` to the crate attributes to enable
-    = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
10 
- error: aborting due to 1 previous error
+ error[E0463]: can't find crate for `rustc_middle`
+   --> $DIR/pathless-extern-unstable.rs:6:9
+    |
+ LL | pub use rustc_middle;
+    |         ^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
12 
- For more information about this error, try `rustc --explain E0658`.
+ error: aborting due to 2 previous errors
+ 
+ For more information about this error, try `rustc --explain E0463`.
14 

Note: some mismatched output was normalized before being compared
-   --> /checkout/tests/ui-fulldeps/pathless-extern-unstable.rs:6:9
+ error[E0463]: can't find crate for `rustc_middle`
+    |         ^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error[E0463]: can't find crate for `rustc_middle`
+   --> $DIR/pathless-extern-unstable.rs:6:9
+    |
+ LL | pub use rustc_middle;
+    |         ^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
+ error: aborting due to 2 previous errors
+ 
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args pathless-extern-unstable.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/pathless-extern-unstable.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/pathless-extern-unstable" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "--edition=2018" "--extern" "rustc_middle"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_middle`
##[error]  --> /checkout/tests/ui-fulldeps/pathless-extern-unstable.rs:6:9
   |
LL | pub use rustc_middle;
   |         ^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_middle`
##[error]  --> /checkout/tests/ui-fulldeps/pathless-extern-unstable.rs:6:9
   |
LL | pub use rustc_middle;
   |         ^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/pathless-extern-unstable.rs stdout end ----
---- [ui] tests/ui-fulldeps/mod_dir_path_canonicalized.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/mod_dir_path_canonicalized.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/mod_dir_path_canonicalized/a" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_ast`
##[error]  --> /checkout/tests/ui-fulldeps/mod_dir_path_canonicalized.rs:9:1
   |
LL | extern crate rustc_ast;
   | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_parse`
##[error]  --> /checkout/tests/ui-fulldeps/mod_dir_path_canonicalized.rs:10:1
   |
LL | extern crate rustc_parse;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_session`
##[error]  --> /checkout/tests/ui-fulldeps/mod_dir_path_canonicalized.rs:11:1
   |
LL | extern crate rustc_session;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_span`
##[error]  --> /checkout/tests/ui-fulldeps/mod_dir_path_canonicalized.rs:12:1
   |
LL | extern crate rustc_span;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/mod_dir_path_canonicalized.rs:17:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/mod_dir_path_canonicalized.rs stdout end ----
---- [ui] tests/ui-fulldeps/pprust-expr-roundtrip.rs stdout ----

error: auxiliary build of /checkout/tests/ui-fulldeps/auxiliary/parser.rs failed to compile: 
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/auxiliary/parser.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/pprust-expr-roundtrip/auxiliary" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "--crate-type" "dylib" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/pprust-expr-roundtrip/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_ast`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:3:1
   |
LL | extern crate rustc_ast;
   | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:4:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_errors`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:5:1
   |
LL | extern crate rustc_errors;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_parse`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:6:1
   |
LL | extern crate rustc_parse;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_session`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:7:1
   |
LL | extern crate rustc_session;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_span`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:8:1
   |
LL | extern crate rustc_span;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/pprust-expr-roundtrip.rs stdout end ----
---- [ui] tests/ui-fulldeps/pprust-parenthesis-insertion.rs stdout ----

error: auxiliary build of /checkout/tests/ui-fulldeps/auxiliary/parser.rs failed to compile: 
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/auxiliary/parser.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/pprust-parenthesis-insertion/auxiliary" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "--crate-type" "dylib" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/pprust-parenthesis-insertion/auxiliary"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_ast`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:3:1
   |
LL | extern crate rustc_ast;
   | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:4:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_errors`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:5:1
   |
LL | extern crate rustc_errors;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_parse`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:6:1
   |
LL | extern crate rustc_parse;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_session`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:7:1
   |
LL | extern crate rustc_session;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_span`
##[error]  --> /checkout/tests/ui-fulldeps/auxiliary/parser.rs:8:1
   |
LL | extern crate rustc_span;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/pprust-parenthesis-insertion.rs stdout end ----
---- [ui] tests/ui-fulldeps/rustc_encodable_hygiene.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/rustc_encodable_hygiene.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/rustc_encodable_hygiene" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_macros`
##[error]  --> /checkout/tests/ui-fulldeps/rustc_encodable_hygiene.rs:5:1
   |
LL | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_serialize`
##[error]  --> /checkout/tests/ui-fulldeps/rustc_encodable_hygiene.rs:6:1
   |
LL | extern crate rustc_serialize;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_span`
##[error]  --> /checkout/tests/ui-fulldeps/rustc_encodable_hygiene.rs:7:1
   |
LL | extern crate rustc_span;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/rustc_encodable_hygiene.rs:12:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/rustc_encodable_hygiene.rs stdout end ----
---- [ui] tests/ui-fulldeps/regions-mock-tcx.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/regions-mock-tcx.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/regions-mock-tcx/a" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_arena`
##[error]  --> /checkout/tests/ui-fulldeps/regions-mock-tcx.rs:14:1
   |
LL | extern crate rustc_arena;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/regions-mock-tcx.rs:19:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0463`.
------------------------------------------
---
+    | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
6    |
-    = note: slug is `compiletest_example` but the crate name is `rustc_dummy`
-    = help: expected a slug starting with `dummy_...`
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
9 
- error: aborting due to 1 previous error
+ error[E0463]: can't find crate for `rustc_macros`
+   --> $DIR/enforce_slug_naming.rs:10:1
+    |
+ LL | extern crate rustc_macros;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
11 
+ error[E0463]: can't find crate for `rustc_middle`
+   --> $DIR/enforce_slug_naming.rs:13:1
+    |
+ LL | extern crate rustc_middle;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ 
+ error[E0463]: can't find crate for `rustc_errors`
+   --> $DIR/enforce_slug_naming.rs:16:1
+    |
+ LL | extern crate rustc_errors;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ 
+ error[E0463]: can't find crate for `rustc_session`
+   --> $DIR/enforce_slug_naming.rs:19:1
+    |
+ LL | extern crate rustc_session;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ 
+ error: cannot find attribute `diag` in this scope
+   --> $DIR/enforce_slug_naming.rs:22:3
+    |
+ LL | #[diag(compiletest_example, code = E0123)]
---
+ error[E0463]: can't find crate for `rustc_span`
+   --> $DIR/enforce_slug_naming.rs:6:1
+ LL | extern crate rustc_span;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error[E0463]: can't find crate for `rustc_macros`
+   --> $DIR/enforce_slug_naming.rs:10:1
+    |
+ LL | extern crate rustc_macros;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error[E0463]: can't find crate for `rustc_middle`
+   --> $DIR/enforce_slug_naming.rs:13:1
+    |
+ LL | extern crate rustc_middle;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ 
+ error[E0463]: can't find crate for `rustc_errors`
+   --> $DIR/enforce_slug_naming.rs:16:1
+    |
+ LL | extern crate rustc_errors;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ 
+ error[E0463]: can't find crate for `rustc_session`
+   --> $DIR/enforce_slug_naming.rs:19:1
+    |
+ LL | extern crate rustc_session;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    |
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ 
+ error: cannot find attribute `diag` in this scope
+   --> $DIR/enforce_slug_naming.rs:22:3
+    |
+ LL | #[diag(compiletest_example, code = E0123)]
---
To only update this specific test, also pass `--test-args session-diagnostic/enforce_slug_naming.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR CARGO_CRATE_NAME="rustc_dummy" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/session-diagnostic/enforce_slug_naming" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_span`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs:6:1
   |
LL | extern crate rustc_span;
   | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_macros`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs:10:1
   |
LL | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_middle`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs:13:1
   |
LL | extern crate rustc_middle;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_errors`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs:16:1
   |
LL | extern crate rustc_errors;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_session`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs:19:1
   |
LL | extern crate rustc_session;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: cannot find attribute `diag` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/enforce_slug_naming.rs:22:3
   |
LL | #[diag(compiletest_example, code = E0123)]
---
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
9    |
- LL |     D(bool),
-    |       ^^^^
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
12 
- error: enum variant cannot have fields (TryFromU32)
-   --> $DIR/errors.rs:19:7
-    |
- LL |     E(bool, bool),
---
- 
- error: enum variant cannot have fields (TryFromU32)
-   --> $DIR/errors.rs:21:9
-    |
- LL |     G { x: bool, y: bool },
-    |         ^
- 
- error: aborting due to 5 previous errors
- 
+ For more information about this error, try `rustc --explain E0463`.
---
+ error[E0463]: can't find crate for `rustc_macros`
+   --> $DIR/errors.rs:6:1
+ LL | extern crate rustc_macros;
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
+    = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`
+ error: aborting due to 1 previous error
+ For more information about this error, try `rustc --explain E0463`.


The actual stderr differed from the expected stderr
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args try-from-u32/errors.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/try-from-u32/errors.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/try-from-u32/errors" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "--edition=2021"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_macros`
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/errors.rs:6:1
   |
LL | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0463`.
------------------------------------------

---- [ui] tests/ui-fulldeps/try-from-u32/errors.rs stdout end ----
---- [ui] tests/ui-fulldeps/session-diagnostic/invalid-variable.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/session-diagnostic/invalid-variable.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/session-diagnostic/invalid-variable/a" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "--test"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_driver`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/invalid-variable.rs:8:1
   |
LL | extern crate rustc_driver;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_fluent_macro`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/invalid-variable.rs:9:1
   |
LL | extern crate rustc_fluent_macro;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_macros`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/invalid-variable.rs:10:1
   |
LL | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_errors`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/invalid-variable.rs:11:1
   |
LL | extern crate rustc_errors;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0463]: can't find crate for `rustc_session`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/invalid-variable.rs:14:1
   |
LL | extern crate rustc_session;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error: cannot find attribute `diag` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/invalid-variable.rs:19:3
   |
LL | #[diag(no_crate_bad_reference)]
---
---- [ui] tests/ui-fulldeps/try-from-u32/hygiene.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/try-from-u32/hygiene.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/try-from-u32/hygiene" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "--edition=2021"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_macros`
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/hygiene.rs:8:1
   |
LL | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0277]: the trait bound `MyEnum: std::convert::TryFrom<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/hygiene.rs:31:34
   |
LL |     let _: Result<MyEnum, u32> = MyEnum::try_from(1u32);
   |                                  ^^^^^^ the trait `From<u32>` is not implemented for `MyEnum`
   |
   = note: required for `u32` to implement `Into<MyEnum>`
   = note: required for `MyEnum` to implement `std::convert::TryFrom<u32>`

error[E0308]: mismatched types
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/hygiene.rs:31:34
   |
LL |     let _: Result<MyEnum, u32> = MyEnum::try_from(1u32);
   |            -------------------   ^^^^^^^^^^^^^^^^^^^^^^ expected `Result<MyEnum, u32>`, found `Result<MyEnum, Infallible>`
   |            |
   |            expected due to this
   |
   = note: expected enum `std::result::Result<_, u32>`
              found enum `std::result::Result<_, Infallible>`

error[E0277]: the trait bound `MyEnum: From<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/hygiene.rs:31:34
   |
LL |     let _: Result<MyEnum, u32> = MyEnum::try_from(1u32);
   |                                  ^^^^^^^^^^^^^^^^^^^^^^ the trait `From<u32>` is not implemented for `MyEnum`
   |
   = note: required for `u32` to implement `Into<MyEnum>`
   = note: required for `MyEnum` to implement `std::convert::TryFrom<u32>`

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0277, E0308, E0463.
For more information about an error, try `rustc --explain E0277`.
------------------------------------------

---- [ui] tests/ui-fulldeps/try-from-u32/hygiene.rs stdout end ----
---- [ui] tests/ui-fulldeps/try-from-u32/values.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "/checkout/tests/ui-fulldeps/try-from-u32/values.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui-fulldeps/try-from-u32/values/a" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "--edition=2021"
stdout: none
--- stderr -------------------------------
error[E0463]: can't find crate for `rustc_macros`
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:8:1
   |
LL | extern crate rustc_macros;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
   |
   = help: maybe you need to install the missing components with: `rustup component add rust-src rustc-dev llvm-tools-preview`

error[E0277]: the trait bound `Repr: TryFrom<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:28:16
   |
LL |     assert_eq!(Repr::try_from(0u32), Ok(Repr::Zero));
   |                ^^^^ the trait `From<u32>` is not implemented for `Repr`
   |
   = note: required for `u32` to implement `Into<Repr>`
   = note: required for `Repr` to implement `TryFrom<u32>`

error[E0277]: the trait bound `Repr: TryFrom<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:29:16
   |
LL |     assert_eq!(Repr::try_from(1u32), Ok(Repr::One()));
   |                ^^^^ the trait `From<u32>` is not implemented for `Repr`
   |
   = note: required for `u32` to implement `Into<Repr>`
   = note: required for `Repr` to implement `TryFrom<u32>`

error[E0277]: the trait bound `Repr: TryFrom<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:30:16
   |
LL |     assert_eq!(Repr::try_from(2u32), Err(2));
   |                ^^^^ the trait `From<u32>` is not implemented for `Repr`
   |
   = note: required for `u32` to implement `Into<Repr>`
   = note: required for `Repr` to implement `TryFrom<u32>`

error[E0308]: mismatched types
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:30:38
   |
LL |     assert_eq!(Repr::try_from(2u32), Err(2));
   |                                      ^^^^^^ expected `Result<Repr, Infallible>`, found `Result<_, {integer}>`
   |
   = note: expected enum `Result<Repr, Infallible>`
              found enum `Result<_, {integer}>`

error[E0277]: the trait bound `Repr: TryFrom<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:31:16
   |
LL |     assert_eq!(Repr::try_from(7u32), Ok(Repr::Seven));
   |                ^^^^ the trait `From<u32>` is not implemented for `Repr`
   |
   = note: required for `u32` to implement `Into<Repr>`
   = note: required for `Repr` to implement `TryFrom<u32>`

error[E0277]: the trait bound `NoRepr: TryFrom<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:33:21
   |
LL |     assert_matches!(NoRepr::try_from(0u32), Ok(NoRepr::Zero));
   |                     ^^^^^^ the trait `From<u32>` is not implemented for `NoRepr`
   |
   = note: required for `u32` to implement `Into<NoRepr>`
   = note: required for `NoRepr` to implement `TryFrom<u32>`

error[E0277]: the trait bound `NoRepr: TryFrom<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:34:21
   |
LL |     assert_matches!(NoRepr::try_from(1u32), Ok(NoRepr::One));
   |                     ^^^^^^ the trait `From<u32>` is not implemented for `NoRepr`
   |
   = note: required for `u32` to implement `Into<NoRepr>`
   = note: required for `NoRepr` to implement `TryFrom<u32>`

error[E0277]: the trait bound `NoRepr: TryFrom<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:35:21
   |
LL |     assert_matches!(NoRepr::try_from(2u32), Err(2));
   |                     ^^^^^^ the trait `From<u32>` is not implemented for `NoRepr`
   |
   = note: required for `u32` to implement `Into<NoRepr>`
   = note: required for `NoRepr` to implement `TryFrom<u32>`

error[E0308]: mismatched types
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:35:49
   |
LL |     assert_matches!(NoRepr::try_from(2u32), Err(2));
   |                     ----------------------      ^ expected `Infallible`, found integer
   |                     |
   |                     this expression has type `Result<NoRepr, Infallible>`

error[E0277]: the trait bound `Repr: From<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:28:16
   |
LL |     assert_eq!(Repr::try_from(0u32), Ok(Repr::Zero));
   |                ^^^^^^^^^^^^^^^^^^^^ the trait `From<u32>` is not implemented for `Repr`
   |
   = note: required for `u32` to implement `Into<Repr>`
   = note: required for `Repr` to implement `TryFrom<u32>`

error[E0277]: the trait bound `NoRepr: From<u32>` is not satisfied
##[error]  --> /checkout/tests/ui-fulldeps/try-from-u32/values.rs:33:21
   |
LL |     assert_matches!(NoRepr::try_from(0u32), Ok(NoRepr::Zero));
   |                     ^^^^^^^^^^^^^^^^^^^^^^ the trait `From<u32>` is not implemented for `NoRepr`
   |
   = note: required for `u32` to implement `Into<NoRepr>`
   = note: required for `NoRepr` to implement `TryFrom<u32>`

error: aborting due to 12 previous errors

Some errors have detailed explanations: E0277, E0308, E0463.
For more information about an error, try `rustc --explain E0277`.

@jieyouxu
Copy link
Member

jieyouxu commented Sep 1, 2025

Oh right, ui-fulldeps...

@bors
Copy link
Collaborator

bors commented Sep 1, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants