1
Fork 0

Add const-stability helpers

This commit is contained in:
Dylan MacKenzie 2020-09-17 11:05:51 -07:00
parent 110e59e70e
commit a173c5c1b3
4 changed files with 45 additions and 10 deletions

View file

@ -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, self.def_id) {
if super::post_drop_elaboration::checking_enabled(self.ccx) {
return;
}