Error if an unstable const eval feature is used in a stable const fn
This commit is contained in:
parent
e4edc161f2
commit
81b3b66487
3 changed files with 33 additions and 6 deletions
|
@ -551,7 +551,7 @@ impl Visitor<'tcx> for Validator<'mir, 'tcx> {
|
|||
| TerminatorKind::DropAndReplace { place: dropped_place, .. } => {
|
||||
// If we are checking live drops after drop-elaboration, don't emit duplicate
|
||||
// errors here.
|
||||
if super::post_drop_elaboration::checking_enabled(self.tcx) {
|
||||
if super::post_drop_elaboration::checking_enabled(self.tcx, self.def_id) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue