]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_save_analysis/src/sig.rs
Keep info on pre-desugaring expression for better "incorrect `.await`" suggestion
[rust.git] / compiler / rustc_save_analysis / src / sig.rs
index 7864b47ab0a7f429decd27730ceaeffef2f3da2d..1d9c44bffa3fc83cdf1618ef6c418a4d2b1e4534 100644 (file)
@@ -286,7 +286,7 @@ fn make(&self, offset: usize, _parent_id: Option<hir::HirId>, scx: &SaveContext<
                     refs: vec![SigElement { id, start, end }],
                 })
             }
-            hir::TyKind::Path(hir::QPath::LangItem(lang_item, _)) => {
+            hir::TyKind::Path(hir::QPath::LangItem(lang_item, _, _)) => {
                 Ok(text_sig(format!("#[lang = \"{}\"]", lang_item.name())))
             }
             hir::TyKind::TraitObject(bounds, ..) => {