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_mir/src | |
| parent | 9a8ca69602fac58362df66a3fc9028211c6d6f2a (diff) | |
| download | rust-0d27b765a6bd4abaa2787d13fbd438d35bcedf8c.tar.gz rust-0d27b765a6bd4abaa2787d13fbd438d35bcedf8c.zip | |
Take functions by value
Diffstat (limited to 'compiler/rustc_mir/src')
| -rw-r--r-- | compiler/rustc_mir/src/transform/check_const_item_mutation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/transform/check_const_item_mutation.rs b/compiler/rustc_mir/src/transform/check_const_item_mutation.rs index 26993a6b941..fb89b36060a 100644 --- a/compiler/rustc_mir/src/transform/check_const_item_mutation.rs +++ b/compiler/rustc_mir/src/transform/check_const_item_mutation.rs @@ -53,7 +53,7 @@ impl<'a, 'tcx> ConstMutationChecker<'a, 'tcx> { // // #[const_mutation_allowed] // pub const LOG: Log = Log { msg: "" }; - match self.tcx.calculate_dtor(def_id, &mut |_, _| Ok(())) { + match self.tcx.calculate_dtor(def_id, |_, _| Ok(())) { Some(_) => None, None => Some(def_id), } |
