Skip to content

Commit 89c66eb

Browse files
committed
update comment
1 parent d7cada1 commit 89c66eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: compiler/rustc_borrowck/src/type_check/free_region_relations.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,10 @@ impl<'tcx> UniversalRegionRelationsBuilder<'_, 'tcx> {
253253
let constraint_sets: Vec<_> = unnormalized_input_output_tys
254254
.flat_map(|ty| {
255255
debug!("build: input_or_output={:?}", ty);
256-
// We add implied bounds from both the unnormalized and normalized ty
257-
// See issue #87748
256+
// We only add implied bounds for the normalized type as the unnormalized
257+
// type may not actually get checked by the caller.
258+
//
259+
// Can otherwise be unsound, see #91068.
258260
let TypeOpOutput { output: norm_ty, constraints: constraints1, .. } = self
259261
.param_env
260262
.and(type_op::normalize::Normalize::new(ty))

0 commit comments

Comments
 (0)