]> git.proxmox.com Git - rustc.git/blobdiff - src/libsyntax/parse/attr.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / libsyntax / parse / attr.rs
index 48c92873e146d9ea4ec2b80fe0463103d421479a..053746b579dcb31508741c0711cee871698f3081 100644 (file)
@@ -105,11 +105,10 @@ impl<'a> Parser<'a> {
                         let span = self.span;
                         self.diagnostic()
                             .struct_span_err(span, reason)
-                            .note("inner attributes and doc comments, like `#![no_std]` or \
-                                   `//! My crate`, annotate the item enclosing them, and are \
-                                   usually found at the beginning of source files. Outer \
-                                   attributes and doc comments, like `#[test]` and
-                                   `/// My function`, annotate the item following them.")
+                            .note("inner attributes, like `#![no_std]`, annotate the item \
+                                   enclosing them, and are usually found at the beginning of \
+                                   source files. Outer attributes, like `#[test]`, annotate the \
+                                   item following them.")
                             .emit()
                     }
                     ast::AttrStyle::Inner