Use is_lang_item more aggressively
This commit is contained in:
parent
d5c48ebc71
commit
93ff86ed7c
44 changed files with 171 additions and 166 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue