diff options
| author | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-06-10 19:18:31 +0200 |
|---|---|---|
| committer | Jonathan Brouwer <jonathantbrouwer@gmail.com> | 2025-06-13 18:13:34 +0200 |
| commit | b131b6f630843d34a14f250e3b46733253f3465b (patch) | |
| tree | e229b911fb48d680ff1632fbc5ee8f14784c6066 /compiler/rustc_parse/messages.ftl | |
| parent | 3160dfa5dc8675a5dcab296b52c4da9aca16b2f9 (diff) | |
| download | rust-b131b6f630843d34a14f250e3b46733253f3465b.tar.gz rust-b131b6f630843d34a14f250e3b46733253f3465b.zip | |
Rework how the disallowed qualifier lints are generated
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Diffstat (limited to 'compiler/rustc_parse/messages.ftl')
| -rw-r--r-- | compiler/rustc_parse/messages.ftl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl index 1f221b4bf78..f6e0b08b140 100644 --- a/compiler/rustc_parse/messages.ftl +++ b/compiler/rustc_parse/messages.ftl @@ -299,10 +299,12 @@ parse_float_literal_unsupported_base = {$base} float literal is not supported parse_fn_pointer_cannot_be_async = an `fn` pointer type cannot be `async` .label = `async` because of this .suggestion = remove the `async` qualifier + .note = allowed qualifiers are: `unsafe` and `extern` parse_fn_pointer_cannot_be_const = an `fn` pointer type cannot be `const` .label = `const` because of this .suggestion = remove the `const` qualifier + .note = allowed qualifiers are: `unsafe` and `extern` parse_fn_ptr_with_generics = function pointer types may not have generic parameters .suggestion = consider moving the lifetime {$arity -> |
