Rollup merge of #152703 - nnethercote:rm-rustc_query_system, r=Zalathar

Remove `rustc_query_system`

The end point of the PR sequence rust-lang/rust#152160, rust-lang/rust#152419, rust-lang/rust#152516.

r? @Zalathar
This commit is contained in:
Stuart Cook 2026-02-17 13:02:23 +11:00 committed by GitHub
commit e28a33ad72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
44 changed files with 83 additions and 185 deletions

View file

@ -31,10 +31,10 @@ fn main() {
let output_bt_full = &concat_stderr_stdout(&rustc_bt_full);
// Count how many lines of output mention symbols or paths in
// `rustc_query_system` or `rustc_query_impl`, which are the kinds of
// `rustc_query_impl`, which are the kinds of
// stack frames we want to be omitting in short backtraces.
let rustc_query_count_short = count_lines_with(output_bt_short, "rustc_query_");
let rustc_query_count_full = count_lines_with(output_bt_full, "rustc_query_");
let rustc_query_count_short = count_lines_with(output_bt_short, "rustc_query_impl");
let rustc_query_count_full = count_lines_with(output_bt_full, "rustc_query_impl");
// Dump both outputs in full to make debugging easier, especially on CI.
// Use `--no-capture --force-rerun` to view output even when the test is passing.

View file

@ -7,7 +7,7 @@ extern crate rustc_macros;
//~^ ERROR use of unstable library feature `rustc_private`
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
extern crate rustc_query_system;
extern crate rustc_middle;
//~^ ERROR use of unstable library feature `rustc_private`
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

View file

@ -21,8 +21,8 @@ LL | extern crate rustc_macros;
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:10:1
|
LL | extern crate rustc_query_system;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL | extern crate rustc_middle;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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