diff options
| author | Dániel Buga <bugadani@gmail.com> | 2020-10-09 17:22:25 +0200 |
|---|---|---|
| committer | Dániel Buga <bugadani@gmail.com> | 2020-10-10 16:19:53 +0200 |
| commit | 0d27b765a6bd4abaa2787d13fbd438d35bcedf8c (patch) | |
| tree | 2a30ba76996a5b8be311d3064408462fa65788b1 /compiler/rustc_metadata/src/rmeta | |
| parent | 9a8ca69602fac58362df66a3fc9028211c6d6f2a (diff) | |
| download | rust-0d27b765a6bd4abaa2787d13fbd438d35bcedf8c.tar.gz rust-0d27b765a6bd4abaa2787d13fbd438d35bcedf8c.zip | |
Take functions by value
Diffstat (limited to 'compiler/rustc_metadata/src/rmeta')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs index 60705f68681..05b8dad3097 100644 --- a/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs +++ b/compiler/rustc_metadata/src/rmeta/decoder/cstore_impl.rs @@ -94,7 +94,7 @@ provide! { <'tcx> tcx, def_id, other, cdata, adt_def => { cdata.get_adt_def(def_id.index, tcx) } adt_destructor => { let _ = cdata; - tcx.calculate_dtor(def_id, &mut |_,_| Ok(())) + tcx.calculate_dtor(def_id, |_,_| Ok(())) } variances_of => { tcx.arena.alloc_from_iter(cdata.get_item_variances(def_id.index)) } associated_item_def_ids => { |
