We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
span_suggestion_verbose
span_suggestion
fn
extern "C"
1 parent efcb3b3 commit 92aa0e6Copy full SHA for 92aa0e6
compiler/rustc_ast_passes/src/ast_validation.rs
@@ -522,7 +522,7 @@ impl<'a> AstValidator<'a> {
522
self.err_handler()
523
.struct_span_err(ident.span, "functions in `extern` blocks cannot have qualifiers")
524
.span_label(self.current_extern_span(), "in this `extern` block")
525
- .span_suggestion(
+ .span_suggestion_verbose(
526
span.until(ident.span.shrink_to_lo()),
527
"remove the qualifiers",
528
"fn ".to_string(),
0 commit comments