]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_save_analysis/src/lib.rs
change to a struct variant
[rust.git] / compiler / rustc_save_analysis / src / lib.rs
index 570fa873a23da287200195edcd7c58e173109372..8b0adba9fab15b0202765c791ce53aaffc743ac0 100644 (file)
@@ -1,7 +1,9 @@
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
 #![feature(if_let_guard)]
 #![feature(nll)]
+#![feature(let_else)]
 #![recursion_limit = "256"]
+#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))]
 
 mod dump_visitor;
 mod dumper;
@@ -747,7 +749,7 @@ fn fn_type(seg: &hir::PathSegment<'_>) -> bool {
                 _,
             )
             | Res::PrimTy(..)
-            | Res::SelfTy(..)
+            | Res::SelfTy { .. }
             | Res::ToolMod
             | Res::NonMacroAttr(..)
             | Res::SelfCtor(..)
@@ -812,7 +814,7 @@ fn get_macro_use_data(&self, span: Span) -> Option<MacroRef> {
 
     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(),
         }
     }