Skip to content

Commit 9475717

Browse files
est31Noratrieb
andcommitted
Add a fixme and address a more non trivial case
Co-authored-by: nils <[email protected]>
1 parent 7f4cc17 commit 9475717

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/rustc_hir_typeck/src/closure.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
398398
///
399399
/// Here:
400400
/// - E would be `fn(&u32) -> &u32`.
401-
/// - S would be `fn(&u32) ->
401+
/// - S would be `fn(&u32) -> ?T`
402402
/// - E' is `&'!0 u32 -> &'!0 u32`
403403
/// - S' is `&'?0 u32 -> ?T`
404404
///

compiler/rustc_trait_selection/src/solve/assembly.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
247247
///
248248
/// To deal with this, we first try to normalize the self type and add the candidates for the normalized
249249
/// self type to the list of candidates in case that succeeds. Note that we can't just eagerly return in
250-
/// this case as projections as self types add `
250+
/// this case as projections as self types add
251+
// FIXME complete the unfinished sentence above
251252
fn assemble_candidates_after_normalizing_self_ty<G: GoalKind<'tcx>>(
252253
&mut self,
253254
goal: Goal<'tcx, G>,

0 commit comments

Comments
 (0)