Make Span
optional in BufferedEarlyLint
This commit is contained in:
parent
6a2cd0d50c
commit
eedb32dd12
5 changed files with 31 additions and 7 deletions
|
@ -555,7 +555,7 @@ fn make_format_args(
|
|||
};
|
||||
let arg_name = args.explicit_args()[index].kind.ident().unwrap();
|
||||
ecx.buffered_early_lint.push(BufferedEarlyLint {
|
||||
span: arg_name.span.into(),
|
||||
span: Some(arg_name.span.into()),
|
||||
node_id: rustc_ast::CRATE_NODE_ID,
|
||||
lint_id: LintId::of(NAMED_ARGUMENTS_USED_POSITIONALLY),
|
||||
diagnostic: BuiltinLintDiag::NamedArgumentUsedPositionally {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue