Auto merge of #89266 - cjgillot:session-ich, r=michaelwoerister
Move ICH to rustc_query_system Based on https://github.com/rust-lang/rust/pull/89183 The StableHashingContext does not need to be in rustc_middle. This PR moves it to rustc_query_system. This will avoid a dependency between rustc_ast_lowering and rustc_middle in https://github.com/rust-lang/rust/pull/89124.
This commit is contained in:
commit
55111d656f
77 changed files with 168 additions and 221 deletions
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
extern crate rustc_data_structures;
|
||||
//~^ use of unstable library feature 'rustc_private'
|
||||
extern crate rustc_middle;
|
||||
//~^ use of unstable library feature 'rustc_private'
|
||||
extern crate rustc_macros;
|
||||
//~^ use of unstable library feature 'rustc_private'
|
||||
extern crate rustc_query_system;
|
||||
//~^ use of unstable library feature 'rustc_private'
|
||||
|
||||
use rustc_macros::HashStable;
|
||||
//~^ use of unstable library feature 'rustc_private'
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ LL | extern crate rustc_data_structures;
|
|||
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:5:1
|
||||
|
|
||||
LL | extern crate rustc_middle;
|
||||
LL | extern crate rustc_macros;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
|
|
@ -19,8 +19,8 @@ LL | extern crate rustc_middle;
|
|||
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:7:1
|
||||
|
|
||||
LL | extern crate rustc_macros;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | extern crate rustc_query_system;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue