Refactor rustc lint API
This commit is contained in:
parent
65445a571c
commit
a8f7e244b7
64 changed files with 1760 additions and 1555 deletions
|
@ -233,10 +233,10 @@ impl<'tcx> ConstEvalErr<'tcx> {
|
|||
rustc_session::lint::builtin::CONST_ERR,
|
||||
hir_id,
|
||||
tcx.span,
|
||||
message,
|
||||
|lint| {
|
||||
let mut lint = lint.build(message);
|
||||
finish(&mut lint, Some(err_msg));
|
||||
lint.emit();
|
||||
finish(lint, Some(err_msg));
|
||||
lint
|
||||
},
|
||||
);
|
||||
ErrorHandled::Linted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue