Skip to content

Commit efc8cfd

Browse files
Side-step rustc attr warning
1 parent 5325fe0 commit efc8cfd

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_macros/src

1 file changed

+2
-1
lines changed

compiler/rustc_macros/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ pub fn symbols(input: TokenStream) -> TokenStream {
4545
/// goes into the parenthesized args of the macro, for greppability.
4646
/// For example:
4747
/// ```
48-
/// #[rustc_macros::extension(pub trait Foo)]
48+
/// use rustc_macros::extension;
49+
/// #[extension(pub trait Foo)]
4950
/// impl i32 { fn hello() {} }
5051
/// ```
5152
///

0 commit comments

Comments
 (0)