Skip to content

Commit 0f7bf5d

Browse files
committed
add docs
1 parent 443ae83 commit 0f7bf5d

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/librustc_middle/ty/relate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ pub fn super_relate_tys<R: TypeRelation<'tcx>>(
431431
let t = relation.relate(&a_t, &b_t)?;
432432
match relation.relate(&sz_a, &sz_b) {
433433
Ok(sz) => Ok(tcx.mk_ty(ty::Array(t, sz))),
434-
// FIXME(lazy_normalization_consts) Implement improved diagnostics for mismatched array
434+
// FIXME(#72219) Implement improved diagnostics for mismatched array
435435
// length?
436436
Err(err) if relation.tcx().features().const_generics => Err(err),
437437
Err(err) => {

src/librustc_mir/borrow_check/type_check/relate_tys.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ impl TypeRelatingDelegate<'tcx> for NllTypeRelatingDelegate<'_, '_, 'tcx> {
9999
}
100100
}
101101

102+
// We don't have to worry about the equality of consts during borrow checking
103+
// as consts always have a static lifetime.
102104
fn const_equate(&mut self, _a: &'tcx Const<'tcx>, _b: &'tcx Const<'tcx>) {}
103105

104106
fn normalization() -> NormalizationStrategy {

src/librustc_trait_selection/traits/object_safety.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ fn contains_illegal_self_type_reference<'tcx>(
771771
}
772772

773773
fn visit_const(&mut self, _c: &ty::Const<'tcx>) -> bool {
774-
// FIXME Look into the unevaluated constants for object safety violations.
774+
// FIXME(#72219) Look into the unevaluated constants for object safety violations.
775775
// Do not walk substitutions of unevaluated consts, as they contain `Self`, even
776776
// though the const expression doesn't necessary use it. Currently type variables
777777
// inside array length expressions are forbidden, so they can't break the above

src/librustc_typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,7 @@ fn check_opaque_for_inheriting_lifetimes(tcx: TyCtxt<'tcx>, def_id: LocalDefId,
16511651

16521652
fn visit_const(&mut self, c: &'tcx ty::Const<'tcx>) -> bool {
16531653
if let ty::ConstKind::Unevaluated(..) = c.val {
1654-
// FIXME(lazy_normalization_consts) We currenctly don't detect lifetimes within substs
1654+
// FIXME(#72219) We currenctly don't detect lifetimes within substs
16551655
// which would violate this check. Even though the particular substitution is not used
16561656
// within the const, this should still be fixed.
16571657
return false;

0 commit comments

Comments
 (0)