diff options
| author | Edward Shen <xes@meta.com> | 2023-01-30 14:09:40 -0800 |
|---|---|---|
| committer | Edward Shen <xes@meta.com> | 2023-01-30 14:09:40 -0800 |
| commit | e905b937060e3c920d85d1ae09d1e3a9a5f5a190 (patch) | |
| tree | c3d83f9af31762a2eafb90cf9546598507a6952d /compiler/rustc_parse/src/errors.rs | |
| parent | f55b0022db8dccc6aa6bf3f650b562eaec0fdc54 (diff) | |
| download | rust-e905b937060e3c920d85d1ae09d1e3a9a5f5a190.tar.gz rust-e905b937060e3c920d85d1ae09d1e3a9a5f5a190.zip | |
Make the "extra if in let...else block" hint a suggestion
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 054b41b478d..e63fc3c73b2 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -351,7 +351,7 @@ pub(crate) enum IfExpressionMissingThenBlockSub { } #[derive(Subdiagnostic)] -#[help(parse_extra_if_in_let_else)] +#[suggestion(parse_extra_if_in_let_else, applicability = "maybe-incorrect", code = "")] pub(crate) struct IfExpressionLetSomeSub { #[primary_span] pub if_span: Span, |
