File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ use std::cell::{Cell, RefCell};
27
27
use std:: collections:: BTreeSet ;
28
28
use std:: fmt;
29
29
use std:: sync:: Arc ;
30
+ use rustc_span:: EiiId ,
30
31
31
32
use diagnostics:: { ImportSuggestion , LabelSuggestion , Suggestion } ;
32
33
use effective_visibilities:: EffectiveVisibilitiesVisitor ;
@@ -1235,6 +1236,9 @@ pub struct Resolver<'ra, 'tcx> {
1235
1236
current_crate_outer_attr_insert_span : Span ,
1236
1237
1237
1238
mods_with_parse_errors : FxHashSet < DefId > ,
1239
+
1240
+ /// Map of defids for all items marked with #[eii(<eii id>)].
1241
+ eii : FxHashMap < EiiId , DefId > ,
1238
1242
}
1239
1243
1240
1244
/// This provides memory for the rest of the crate. The `'ra` lifetime that is
Original file line number Diff line number Diff line change @@ -1205,6 +1205,12 @@ rustc_index::newtype_index! {
1205
1205
pub struct AttrId { }
1206
1206
}
1207
1207
1208
+ rustc_index:: newtype_index! {
1209
+ #[ orderable]
1210
+ #[ debug_format = "EiiId({})" ]
1211
+ pub struct EiiId { }
1212
+ }
1213
+
1208
1214
/// This trait is used to allow encoder specific encodings of certain types.
1209
1215
/// It is similar to rustc_type_ir's TyEncoder.
1210
1216
pub trait SpanEncoder : Encoder {
You can’t perform that action at this time.
0 commit comments