Skip to content

Commit d261176

Browse files
committed
Formatting
1 parent 0c217a6 commit d261176

File tree

2 files changed

+9
-9
lines changed
  • compiler/rustc_error_codes/src/error_codes
  • src/librustdoc/clean

2 files changed

+9
-9
lines changed

compiler/rustc_error_codes/src/error_codes/E0780.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ When using a wildcard import the `doc` attribute currently only supports:
1414
* hidden
1515

1616
To fix this error either change to one of the available arguments or remove the
17-
`doc` attribute.
17+
`doc` attribute.
1818

1919
Example:
2020

src/librustdoc/clean/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)