Take functions by value
This commit is contained in:
parent
9a8ca69602
commit
0d27b765a6
4 changed files with 4 additions and 4 deletions
|
@ -264,7 +264,7 @@ pub fn provide(providers: &mut Providers) {
|
|||
}
|
||||
|
||||
fn adt_destructor(tcx: TyCtxt<'_>, def_id: DefId) -> Option<ty::Destructor> {
|
||||
tcx.calculate_dtor(def_id, &mut dropck::check_drop_impl)
|
||||
tcx.calculate_dtor(def_id, dropck::check_drop_impl)
|
||||
}
|
||||
|
||||
/// If this `DefId` is a "primary tables entry", returns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue