about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-10-16 00:01:47 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-10-19 00:23:57 +0300
commit25cc99fca0650f54828e8ba7ad2bab341b231fcc (patch)
tree88a6bc6f80ee792522a06d20e0928ca573458b7a /src/test/rustdoc
parent7ce85f2dca545c9012fdc13c90cb2b058e58d3dd (diff)
privacy: Avoid one more `unwrap` causing an ICE in rustdoc
The issue is rustdoc-specific because its root cause if the `everybody_loops` pass makes some def-ids to not have local hir-ids
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/macro-in-closure.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/rustdoc/macro-in-closure.rs b/src/test/rustdoc/macro-in-closure.rs
new file mode 100644
index 00000000000..298ff601de8
--- /dev/null
+++ b/src/test/rustdoc/macro-in-closure.rs
@@ -0,0 +1,9 @@
+// Regression issue for rustdoc ICE encountered in PR #65252.
+
+#![feature(decl_macro)]
+
+fn main() {
+    || {
+        macro m() {}
+    };
+}