]> git.lizzy.rs Git - rust.git/commitdiff
add test for issue 52129
authorQuietMisdreavus <grey@quietmisdreavus.net>
Sat, 14 Jul 2018 02:46:47 +0000 (21:46 -0500)
committerQuietMisdreavus <grey@quietmisdreavus.net>
Sat, 14 Jul 2018 02:46:47 +0000 (21:46 -0500)
src/test/rustdoc/doc-proc-macro.rs [new file with mode: 0644]

diff --git a/src/test/rustdoc/doc-proc-macro.rs b/src/test/rustdoc/doc-proc-macro.rs
new file mode 100644 (file)
index 0000000..b3b403a
--- /dev/null
@@ -0,0 +1,18 @@
+// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// Issue #52129: ICE when trying to document the `quote` proc-macro from proc_macro
+
+// As of this writing, we don't currently attempt to document proc-macros. However, we shouldn't
+// crash when we try.
+
+extern crate proc_macro;
+
+pub use proc_macro::*;