Skip to content

Commit bb760b5

Browse files
committed
Simplify defid destructor check
1 parent 0dfe7b6 commit bb760b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/check_const_item_mutation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl<'a, 'tcx> ConstMutationChecker<'a, 'tcx> {
4646
//
4747
// LOG.msg = "wow"; // prints "wow"
4848
//
49-
match self.tcx.adt_def(def_id).destructor(self.tcx) {
49+
match self.tcx.adt_destructor(def_id) {
5050
Some(_) => None,
5151
None => Some(def_id),
5252
}

0 commit comments

Comments
 (0)