Rollup merge of #67898 - matthewjasper:newtype-index-hygiene, r=Centril
Improve hygiene of `newtype_index` `newtype_index` no longer needs `rustc_index::vec::Idx` to be in scope. r? @Centril
This commit is contained in:
commit
9ef3b2ca2a
13 changed files with 80 additions and 52 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use crate::dep_graph::DepNode;
|
||||
use crate::ich::Fingerprint;
|
||||
use rustc_index::vec::{Idx, IndexVec};
|
||||
use rustc_index::vec::IndexVec;
|
||||
|
||||
rustc_index::newtype_index! {
|
||||
pub struct SerializedDepNodeIndex { .. }
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use rustc_hir::Node;
|
|||
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
|
||||
use rustc_index::vec::Idx;
|
||||
use rustc_macros::HashStable;
|
||||
use rustc_span::{Span, DUMMY_SP};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue