Use is_lang_item more aggressively
This commit is contained in:
@@ -454,8 +454,7 @@ where
|
||||
});
|
||||
}
|
||||
|
||||
let skip_contents =
|
||||
adt.is_union() || Some(adt.did()) == self.tcx().lang_items().manually_drop();
|
||||
let skip_contents = adt.is_union() || adt.is_manually_drop();
|
||||
let contents_drop = if skip_contents {
|
||||
(self.succ, self.unwind)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user