Simplify defid destructor check
This commit is contained in:
parent
0dfe7b6434
commit
bb760b53bf
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ impl<'a, 'tcx> ConstMutationChecker<'a, 'tcx> {
|
||||||
//
|
//
|
||||||
// LOG.msg = "wow"; // prints "wow"
|
// LOG.msg = "wow"; // prints "wow"
|
||||||
//
|
//
|
||||||
match self.tcx.adt_def(def_id).destructor(self.tcx) {
|
match self.tcx.adt_destructor(def_id) {
|
||||||
Some(_) => None,
|
Some(_) => None,
|
||||||
None => Some(def_id),
|
None => Some(def_id),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue