]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/markdown.rs
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / librustdoc / html / markdown.rs
index 4cfd81ffbce9da6423f61167ecb6da85394241de..b2589e5b806e8673947695f64cc28eb62417a786 100644 (file)
@@ -655,7 +655,7 @@ fn error_invalid_codeblock_attr(&self, msg: &str, help: &str) {
             (Some(h), _) => h,
             (None, Some(item_did)) => {
                 match item_did.as_local() {
-                    Some(item_did) => self.tcx.hir().as_local_hir_id(item_did),
+                    Some(item_did) => self.tcx.hir().local_def_id_to_hir_id(item_did),
                     None => {
                         // If non-local, no need to check anything.
                         return;