File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1004,9 +1004,7 @@ fn lint_named_arguments_used_positionally(
1004
1004
node_id : ast:: CRATE_NODE_ID ,
1005
1005
lint_id : LintId :: of ( & NAMED_ARGUMENTS_USED_POSITIONALLY ) ,
1006
1006
diagnostic : BuiltinLintDiagnostics :: NamedArgumentUsedPositionally (
1007
- arg_span,
1008
- span,
1009
- symbol. to_string ( ) ,
1007
+ arg_span, span, symbol,
1010
1008
) ,
1011
1009
} ) ;
1012
1010
}
Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ pub enum BuiltinLintDiagnostics {
467
467
/// If true, the lifetime will be fully elided.
468
468
use_span : Option < ( Span , bool ) > ,
469
469
} ,
470
- NamedArgumentUsedPositionally ( Option < Span > , Span , String ) ,
470
+ NamedArgumentUsedPositionally ( Option < Span > , Span , Symbol ) ,
471
471
}
472
472
473
473
/// Lints that are buffered up early on in the `Session` before the
You can’t perform that action at this time.
0 commit comments