diff options
| author | yukang <moorekang@gmail.com> | 2022-10-03 04:22:59 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2022-10-04 21:02:07 +0800 |
| commit | e747201ad83d384a418dc2b31bf3d3024e2c2a3c (patch) | |
| tree | cb59993f8896f444f4a766db912a828e024b1cb3 /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 5dd44d4d4c4545f65f15f890e93fac68214cfe54 (diff) | |
| download | rust-e747201ad83d384a418dc2b31bf3d3024e2c2a3c.tar.gz rust-e747201ad83d384a418dc2b31bf3d3024e2c2a3c.zip | |
find the correct lang item for ranges
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors.rs b/compiler/rustc_hir_analysis/src/errors.rs index 6634444c636..41f73323d9a 100644 --- a/compiler/rustc_hir_analysis/src/errors.rs +++ b/compiler/rustc_hir_analysis/src/errors.rs @@ -348,12 +348,13 @@ pub struct ExpectedUsedSymbol { } #[derive(Diagnostic)] -#[diag(hir_analysis::missing_parentheses_in_range, code = "E0599")] +#[diag(hir_analysis::missing_parentheses_in_range, code = "E0689")] pub struct MissingParentheseInRange { #[primary_span] #[label(hir_analysis::missing_parentheses_in_range)] pub span: Span, pub ty_str: String, + pub method_name: String, #[subdiagnostic] pub add_missing_parentheses: Option<AddMissingParenthesesInRange>, |
