1
Fork 0

find the correct lang item for ranges

This commit is contained in:
yukang 2022-10-03 04:22:59 +08:00
parent 5dd44d4d4c
commit e747201ad8
5 changed files with 109 additions and 69 deletions

View file

@ -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>,