Remove more Session
methods that duplicate DiagCtxt
methods.
This commit is contained in:
parent
8af3d8dcab
commit
8a9db25459
36 changed files with 62 additions and 74 deletions
|
@ -279,7 +279,7 @@ impl<'mir, 'tcx> Checker<'mir, 'tcx> {
|
|||
self.tcx.dcx().emit_diagnostic(error);
|
||||
}
|
||||
} else {
|
||||
assert!(self.tcx.sess.has_errors().is_some());
|
||||
assert!(self.tcx.dcx().has_errors().is_some());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue