1
Fork 0

Take functions by value

This commit is contained in:
Dániel Buga 2020-10-09 17:22:25 +02:00
parent 9a8ca69602
commit 0d27b765a6
4 changed files with 4 additions and 4 deletions

View file

@ -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),
}