diff --git a/src/rustc/middle/typeck/coherence.rs b/src/rustc/middle/typeck/coherence.rs index 26c559fd135..c1bffef3f31 100644 --- a/src/rustc/middle/typeck/coherence.rs +++ b/src/rustc/middle/typeck/coherence.rs @@ -945,7 +945,8 @@ impl CoherenceChecker { let self_type = self.get_self_type_for_implementation(*impl_info); match ty::get(self_type.ty).sty { ty::ty_class(type_def_id, _) => { - tcx.destructor_for_type.insert(type_def_id, method_def_id); + tcx.destructor_for_type.insert(type_def_id, + method_def_id); tcx.destructors.insert(method_def_id, ()); } _ => {