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:
Yuki Okushi 2020-01-07 13:46:05 +09:00 committed by GitHub
commit 9ef3b2ca2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 80 additions and 52 deletions

View file

@ -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 { .. }

View file

@ -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};