Simplify defid destructor check
This commit is contained in:
parent
0dfe7b6434
commit
bb760b53bf
@ -46,7 +46,7 @@ impl<'a, 'tcx> ConstMutationChecker<'a, 'tcx> {
|
||||
//
|
||||
// LOG.msg = "wow"; // prints "wow"
|
||||
//
|
||||
match self.tcx.adt_def(def_id).destructor(self.tcx) {
|
||||
match self.tcx.adt_destructor(def_id) {
|
||||
Some(_) => None,
|
||||
None => Some(def_id),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user