change to a struct variant
This commit is contained in:
@@ -749,7 +749,7 @@ impl<'tcx> SaveContext<'tcx> {
|
||||
_,
|
||||
)
|
||||
| Res::PrimTy(..)
|
||||
| Res::SelfTy(..)
|
||||
| Res::SelfTy { .. }
|
||||
| Res::ToolMod
|
||||
| Res::NonMacroAttr(..)
|
||||
| Res::SelfCtor(..)
|
||||
@@ -814,7 +814,7 @@ impl<'tcx> SaveContext<'tcx> {
|
||||
|
||||
fn lookup_def_id(&self, ref_id: hir::HirId) -> Option<DefId> {
|
||||
match self.get_path_res(ref_id) {
|
||||
Res::PrimTy(_) | Res::SelfTy(..) | Res::Err => None,
|
||||
Res::PrimTy(_) | Res::SelfTy { .. } | Res::Err => None,
|
||||
def => def.opt_def_id(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user