File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
compiler/rustc_error_codes/src/error_codes Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ When using a wildcard import the `doc` attribute currently only supports:
1414 * hidden
1515
1616To fix this error either change to one of the available arguments or remove the
17- ` doc ` attribute.
17+ ` doc ` attribute.
1818
1919Example:
2020
Original file line number Diff line number Diff line change @@ -2161,14 +2161,14 @@ impl Clean<Vec<Item>> for doctree::Import<'_> {
21612161 let pub_underscore = self . vis . node . is_pub ( ) && self . name == kw:: Underscore ;
21622162
21632163 if pub_underscore && inlined {
2164- rustc_errors:: struct_span_err!(
2165- cx. tcx. sess,
2166- self . attrs. lists( sym:: doc) . next( ) . unwrap( ) . span( ) ,
2167- E0780 ,
2168- "inline with wildcard import"
2169- )
2170- . span_label ( self . span , "wildcard import" )
2171- . emit ( ) ;
2164+ rustc_errors:: struct_span_err!(
2165+ cx. tcx. sess,
2166+ self . attrs. lists( sym:: doc) . next( ) . unwrap( ) . span( ) ,
2167+ E0780 ,
2168+ "inline with wildcard import"
2169+ )
2170+ . span_label ( self . span , "wildcard import" )
2171+ . emit ( ) ;
21722172 }
21732173
21742174 // We consider inlining the documentation of `pub use` statements, but we
You can’t perform that action at this time.
0 commit comments