From 587c50452f99b437fc4dc946d58d490094e7ef66 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Mon, 17 May 2021 23:31:48 -0400 Subject: [PATCH] Fix rebase conflicts --- src/librustdoc/passes/check_code_block_syntax.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/passes/check_code_block_syntax.rs b/src/librustdoc/passes/check_code_block_syntax.rs index 0b94a74eeef..7ccfdf29041 100644 --- a/src/librustdoc/passes/check_code_block_syntax.rs +++ b/src/librustdoc/passes/check_code_block_syntax.rs @@ -53,7 +53,7 @@ impl<'a, 'tcx> SyntaxChecker<'a, 'tcx> { return; } - let local_id = match item.def_id.as_local() { + let local_id = match item.def_id.as_real().and_then(|x| x.as_local()) { Some(id) => id, // We don't need to check the syntax for other crates so returning // without doing anything should not be a problem.