compiler: remove rustc_target reexport of rustc_abi::HashStableContext
The last public reexport of rustc_abi in rustc_target is finally gone.
This commit is contained in:
parent
d9c7abba55
commit
038c183d5f
6 changed files with 5 additions and 9 deletions
|
@ -3409,7 +3409,6 @@ dependencies = [
|
||||||
"rustc_parse",
|
"rustc_parse",
|
||||||
"rustc_session",
|
"rustc_session",
|
||||||
"rustc_span",
|
"rustc_span",
|
||||||
"rustc_target",
|
|
||||||
"thin-vec",
|
"thin-vec",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -4423,6 +4422,7 @@ version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"rustc-rayon-core",
|
"rustc-rayon-core",
|
||||||
|
"rustc_abi",
|
||||||
"rustc_ast",
|
"rustc_ast",
|
||||||
"rustc_data_structures",
|
"rustc_data_structures",
|
||||||
"rustc_errors",
|
"rustc_errors",
|
||||||
|
@ -4434,7 +4434,6 @@ dependencies = [
|
||||||
"rustc_serialize",
|
"rustc_serialize",
|
||||||
"rustc_session",
|
"rustc_session",
|
||||||
"rustc_span",
|
"rustc_span",
|
||||||
"rustc_target",
|
|
||||||
"smallvec",
|
"smallvec",
|
||||||
"thin-vec",
|
"thin-vec",
|
||||||
"tracing",
|
"tracing",
|
||||||
|
|
|
@ -18,6 +18,5 @@ rustc_macros = { path = "../rustc_macros" }
|
||||||
rustc_parse = { path = "../rustc_parse" }
|
rustc_parse = { path = "../rustc_parse" }
|
||||||
rustc_session = { path = "../rustc_session" }
|
rustc_session = { path = "../rustc_session" }
|
||||||
rustc_span = { path = "../rustc_span" }
|
rustc_span = { path = "../rustc_span" }
|
||||||
rustc_target = { path = "../rustc_target" }
|
|
||||||
thin-vec = "0.2.12"
|
thin-vec = "0.2.12"
|
||||||
# tidy-alphabetical-end
|
# tidy-alphabetical-end
|
||||||
|
|
|
@ -10,9 +10,7 @@ use crate::hir_id::{HirId, ItemLocalId};
|
||||||
/// Requirements for a `StableHashingContext` to be used in this crate.
|
/// Requirements for a `StableHashingContext` to be used in this crate.
|
||||||
/// This is a hack to allow using the `HashStable_Generic` derive macro
|
/// This is a hack to allow using the `HashStable_Generic` derive macro
|
||||||
/// instead of implementing everything in `rustc_middle`.
|
/// instead of implementing everything in `rustc_middle`.
|
||||||
pub trait HashStableContext:
|
pub trait HashStableContext: rustc_ast::HashStableContext + rustc_abi::HashStableContext {
|
||||||
rustc_ast::HashStableContext + rustc_target::HashStableContext
|
|
||||||
{
|
|
||||||
fn hash_attr(&mut self, _: &Attribute, hasher: &mut StableHasher);
|
fn hash_attr(&mut self, _: &Attribute, hasher: &mut StableHasher);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ edition = "2021"
|
||||||
# tidy-alphabetical-start
|
# tidy-alphabetical-start
|
||||||
parking_lot = "0.12"
|
parking_lot = "0.12"
|
||||||
rustc-rayon-core = { version = "0.5.0" }
|
rustc-rayon-core = { version = "0.5.0" }
|
||||||
|
rustc_abi = { path = "../rustc_abi" }
|
||||||
rustc_ast = { path = "../rustc_ast" }
|
rustc_ast = { path = "../rustc_ast" }
|
||||||
rustc_data_structures = { path = "../rustc_data_structures" }
|
rustc_data_structures = { path = "../rustc_data_structures" }
|
||||||
rustc_errors = { path = "../rustc_errors" }
|
rustc_errors = { path = "../rustc_errors" }
|
||||||
|
@ -18,7 +19,6 @@ rustc_macros = { path = "../rustc_macros" }
|
||||||
rustc_serialize = { path = "../rustc_serialize" }
|
rustc_serialize = { path = "../rustc_serialize" }
|
||||||
rustc_session = { path = "../rustc_session" }
|
rustc_session = { path = "../rustc_session" }
|
||||||
rustc_span = { path = "../rustc_span" }
|
rustc_span = { path = "../rustc_span" }
|
||||||
rustc_target = { path = "../rustc_target" }
|
|
||||||
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
|
||||||
thin-vec = "0.2.12"
|
thin-vec = "0.2.12"
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
|
|
|
@ -8,7 +8,7 @@ use smallvec::SmallVec;
|
||||||
|
|
||||||
use crate::ich::StableHashingContext;
|
use crate::ich::StableHashingContext;
|
||||||
|
|
||||||
impl<'ctx> rustc_target::HashStableContext for StableHashingContext<'ctx> {}
|
impl<'ctx> rustc_abi::HashStableContext for StableHashingContext<'ctx> {}
|
||||||
impl<'ctx> rustc_ast::HashStableContext for StableHashingContext<'ctx> {}
|
impl<'ctx> rustc_ast::HashStableContext for StableHashingContext<'ctx> {}
|
||||||
|
|
||||||
impl<'a> HashStable<StableHashingContext<'a>> for [hir::Attribute] {
|
impl<'a> HashStable<StableHashingContext<'a>> for [hir::Attribute] {
|
||||||
|
|
|
@ -30,7 +30,7 @@ pub mod target_features;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
pub use rustc_abi::HashStableContext;
|
use rustc_abi::HashStableContext;
|
||||||
|
|
||||||
/// The name of rustc's own place to organize libraries.
|
/// The name of rustc's own place to organize libraries.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue