about summary refs log tree commit diff
path: root/compiler/rustc_mir/src
diff options
context:
space:
mode:
authorDániel Buga <bugadani@gmail.com>2020-10-09 17:22:25 +0200
committerDániel Buga <bugadani@gmail.com>2020-10-10 16:19:53 +0200
commit0d27b765a6bd4abaa2787d13fbd438d35bcedf8c (patch)
tree2a30ba76996a5b8be311d3064408462fa65788b1 /compiler/rustc_mir/src
parent9a8ca69602fac58362df66a3fc9028211c6d6f2a (diff)
downloadrust-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.rs2
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),
         }