diff --git a/xtask/codegen/src/generate_new_lintrule.rs b/xtask/codegen/src/generate_new_lintrule.rs index 56b7209f501..5697e0424b3 100644 --- a/xtask/codegen/src/generate_new_lintrule.rs +++ b/xtask/codegen/src/generate_new_lintrule.rs @@ -68,7 +68,6 @@ impl Rule for {rule_name_upper_camel} {{ fn run(ctx: &RuleContext) -> Self::Signals {{ let binding = ctx.query(); let model = ctx.model(); - binding.all_references(model).collect() }} @@ -76,7 +75,7 @@ impl Rule for {rule_name_upper_camel} {{ Some( RuleDiagnostic::new( rule_category!(), - reference.syntax().text_trimmed_range(), + reference.range(), markup! {{ "Variable is read here." }},