about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/errors.rs
diff options
context:
space:
mode:
authoryukang <moorekang@gmail.com>2022-10-03 04:22:59 +0800
committeryukang <moorekang@gmail.com>2022-10-04 21:02:07 +0800
commite747201ad83d384a418dc2b31bf3d3024e2c2a3c (patch)
treecb59993f8896f444f4a766db912a828e024b1cb3 /compiler/rustc_hir_analysis/src/errors.rs
parent5dd44d4d4c4545f65f15f890e93fac68214cfe54 (diff)
downloadrust-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.rs3
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>,