We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BorrowckErrors::set_tainted_by_errors
1 parent f066be5 commit 3a02ebcCopy full SHA for 3a02ebc
compiler/rustc_borrowck/src/lib.rs
@@ -178,7 +178,6 @@ fn do_mir_borrowck<'tcx>(
178
// Gather the upvars of a closure, if any.
179
if let Some(e) = input_body.tainted_by_errors {
180
infcx.set_tainted_by_errors(e);
181
- errors.set_tainted_by_errors(e);
182
}
183
184
// Replace all regions with fresh inference variables. This
@@ -2438,10 +2437,6 @@ mod error {
2438
2437
pub fn buffer_non_error(&mut self, t: DiagnosticBuilder<'_, ()>) {
2439
self.buffered.push(t.into_diagnostic());
2440
2441
-
2442
- pub fn set_tainted_by_errors(&mut self, e: ErrorGuaranteed) {
2443
- self.tainted_by_errors = Some(e);
2444
- }
2445
2446
2447
impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
0 commit comments