Skip to content

Commit 92aa0e6

Browse files
Use span_suggestion_verbose instead of span_suggestion for fn with qualifiers inside an extern "C" block
1 parent efcb3b3 commit 92aa0e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_ast_passes/src/ast_validation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ impl<'a> AstValidator<'a> {
522522
self.err_handler()
523523
.struct_span_err(ident.span, "functions in `extern` blocks cannot have qualifiers")
524524
.span_label(self.current_extern_span(), "in this `extern` block")
525-
.span_suggestion(
525+
.span_suggestion_verbose(
526526
span.until(ident.span.shrink_to_lo()),
527527
"remove the qualifiers",
528528
"fn ".to_string(),

0 commit comments

Comments
 (0)