Optimize async drop glue for some old types
This commit is contained in:
parent
a47173c4f7
commit
7cdd95e1a6
11 changed files with 161 additions and 89 deletions
|
@ -579,8 +579,8 @@ impl<'tcx> AdtDef<'tcx> {
|
|||
tcx.adt_destructor(self.did())
|
||||
}
|
||||
|
||||
// FIXME(zetanumbers): consider supporting this method in same places where
|
||||
// `destructor` is referenced
|
||||
// FIXME: consider combining this method with `AdtDef::destructor` and removing
|
||||
// this version
|
||||
pub fn async_destructor(self, tcx: TyCtxt<'tcx>) -> Option<AsyncDestructor> {
|
||||
tcx.adt_async_destructor(self.did())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue