change error_reported to use Result instead of an option
This commit is contained in:
parent
7df9d818ab
commit
ab22f5521b
7 changed files with 15 additions and 22 deletions
|
@ -122,7 +122,7 @@ mod rustc {
|
|||
|
||||
let c = c.eval(tcx, param_env);
|
||||
|
||||
if let Some(err) = c.error_reported() {
|
||||
if let Err(err) = c.error_reported() {
|
||||
return Some(Self {
|
||||
alignment: true,
|
||||
lifetimes: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue