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:
14
14
* hidden
15
15
16
16
To fix this error either change to one of the available arguments or remove the
17
- ` doc ` attribute.
17
+ ` doc ` attribute.
18
18
19
19
Example:
20
20
Original file line number Diff line number Diff line change @@ -2161,14 +2161,14 @@ impl Clean<Vec<Item>> for doctree::Import<'_> {
2161
2161
let pub_underscore = self . vis . node . is_pub ( ) && self . name == kw:: Underscore ;
2162
2162
2163
2163
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 ( ) ;
2172
2172
}
2173
2173
2174
2174
// We consider inlining the documentation of `pub use` statements, but we
You can’t perform that action at this time.
0 commit comments