node_id: ast::CRATE_NODE_ID,
lint_id: LintId::of(&NAMED_ARGUMENTS_USED_POSITIONALLY),
diagnostic: BuiltinLintDiagnostics::NamedArgumentUsedPositionally(
- arg_span,
- span,
- symbol.to_string(),
+ arg_span, span, symbol,
),
});
}
/// If true, the lifetime will be fully elided.
use_span: Option<(Span, bool)>,
},
- NamedArgumentUsedPositionally(Option<Span>, Span, String),
+ NamedArgumentUsedPositionally(Option<Span>, Span, Symbol),
}
/// Lints that are buffered up early on in the `Session` before the