Add const-stability helpers
This commit is contained in:
parent
110e59e70e
commit
a173c5c1b3
4 changed files with 45 additions and 10 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, self.def_id) {
|
||||
if super::post_drop_elaboration::checking_enabled(self.ccx) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue