Skip to content

Commit 57c9eb7

Browse files
committed
review
1 parent b06d5b2 commit 57c9eb7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
609609
return false;
610610
}
611611
let pin_did = self.tcx.lang_items().pin_type();
612-
// FIXME: replace mk_box with?
613-
// This guards the `unwrap` and `mk_box` below.
612+
// This guards the `new_box` below.
614613
if pin_did.is_none() || self.tcx.lang_items().owned_box().is_none() {
615614
return false;
616615
}

compiler/rustc_trait_selection/src/traits/coherence.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,7 @@ fn equate_impl_headers<'tcx>(
330330
impl1.self_ty,
331331
impl2.self_ty,
332332
),
333-
// FIXME: mk_eq_impl_headers fn not exist
334-
_ => bug!("mk_eq_impl_headers given mismatched impl kinds"),
333+
_ => bug!("equate_impl_headers given mismatched impl kinds"),
335334
};
336335

337336
result.map(|infer_ok| infer_ok.obligations).ok()

0 commit comments

Comments
 (0)