move required_consts check to general post-mono-check function
This commit is contained in:
parent
ccf817b9bb
commit
89ac57db4d
40 changed files with 319 additions and 257 deletions
|
@ -478,8 +478,8 @@ impl<'tcx> AdtDef<'tcx> {
|
|||
}
|
||||
Err(err) => {
|
||||
let msg = match err {
|
||||
ErrorHandled::Reported(_) => "enum discriminant evaluation failed",
|
||||
ErrorHandled::TooGeneric => "enum discriminant depends on generics",
|
||||
ErrorHandled::Reported(..) => "enum discriminant evaluation failed",
|
||||
ErrorHandled::TooGeneric(..) => "enum discriminant depends on generics",
|
||||
};
|
||||
tcx.sess.delay_span_bug(tcx.def_span(expr_did), msg);
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue