Skip to content

Commit 1040651

Browse files
committed
review
1 parent 0bac310 commit 1040651

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
615615
return false;
616616
}
617617
let pin_did = self.tcx.lang_items().pin_type();
618-
// FIXME: replace mk_box with?
619-
// This guards the `unwrap` and `mk_box` below.
618+
// This guards the `new_box` below.
620619
if pin_did.is_none() || self.tcx.lang_items().owned_box().is_none() {
621620
return false;
622621
}

compiler/rustc_trait_selection/src/traits/coherence.rs

Lines changed: 1 addition & 2 deletions
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)