Make fatal DiagnosticBuilder yield never
This commit is contained in:
parent
93313d108f
commit
928388bad2
11 changed files with 82 additions and 46 deletions
|
@ -168,8 +168,7 @@ pub fn is_const_evaluatable<'cx, 'tcx>(
|
|||
"#![feature(generic_const_exprs)]\n".to_string(),
|
||||
rustc_errors::Applicability::MaybeIncorrect,
|
||||
)
|
||||
.emit();
|
||||
rustc_errors::FatalError.raise();
|
||||
.emit()
|
||||
}
|
||||
|
||||
debug!(?concrete, "is_const_evaluatable");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue