review comment: change span
argument
This commit is contained in:
parent
d2a781a2ec
commit
d116767113
6 changed files with 15 additions and 10 deletions
|
@ -2462,7 +2462,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
|||
}
|
||||
|
||||
infcx.err_ctxt().note_type_err(
|
||||
cause.span,
|
||||
&mut diag,
|
||||
&cause,
|
||||
None,
|
||||
|
@ -2472,6 +2471,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
|||
}))),
|
||||
terr,
|
||||
false,
|
||||
None,
|
||||
);
|
||||
diag.emit();
|
||||
self.abort.set(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue