rustc: Remove local variable IDs from Exports
Local variables can never be exported.
This commit is contained in:
@@ -598,6 +598,11 @@ impl<Id> Res<Id> {
|
||||
}
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
pub fn expect_non_local<OtherId>(self) -> Res<OtherId> {
|
||||
self.map_id(|_| panic!("unexpected `Res::Local`"))
|
||||
}
|
||||
|
||||
pub fn macro_kind(self) -> Option<MacroKind> {
|
||||
match self {
|
||||
Res::Def(DefKind::Macro(kind), _) => Some(kind),
|
||||
|
||||
Reference in New Issue
Block a user