change error_reported to use Result instead of an option
This commit is contained in:
@@ -1977,7 +1977,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
||||
}
|
||||
|
||||
err.emit()
|
||||
} else if let Some(reported) = qself_ty.error_reported() {
|
||||
} else if let Err(reported) = qself_ty.error_reported() {
|
||||
reported
|
||||
} else {
|
||||
// Don't print `TyErr` to the user.
|
||||
|
||||
Reference in New Issue
Block a user