Skip to content

Commit b144a11

Browse files
committed
Replace more mentions of associated_const_equality
1 parent 092e522 commit b144a11

5 files changed

Lines changed: 4 additions & 6 deletions

File tree

compiler/rustc_ast/src/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2394,7 +2394,7 @@ impl FnSig {
23942394
/// * the `G<Ty> = Ty` in `Trait<G<Ty> = Ty>`
23952395
/// * the `A: Bound` in `Trait<A: Bound>`
23962396
/// * the `RetTy` in `Trait(ArgTy, ArgTy) -> RetTy`
2397-
/// * the `C = { Ct }` in `Trait<C = { Ct }>` (feature `associated_const_equality`)
2397+
/// * the `C = { Ct }` in `Trait<C = { Ct }>` (feature `min_generic_const_args`)
23982398
/// * the `f(..): Bound` in `Trait<f(..): Bound>` (feature `return_type_notation`)
23992399
#[derive(Clone, Encodable, Decodable, Debug, Walkable)]
24002400
pub struct AssocItemConstraint {

compiler/rustc_hir/src/hir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3298,7 +3298,7 @@ pub enum ImplItemKind<'hir> {
32983298
/// * the `G<Ty> = Ty` in `Trait<G<Ty> = Ty>`
32993299
/// * the `A: Bound` in `Trait<A: Bound>`
33003300
/// * the `RetTy` in `Trait(ArgTy, ArgTy) -> RetTy`
3301-
/// * the `C = { Ct }` in `Trait<C = { Ct }>` (feature `associated_const_equality`)
3301+
/// * the `C = { Ct }` in `Trait<C = { Ct }>` (feature `min_generic_const_args`)
33023302
/// * the `f(..): Bound` in `Trait<f(..): Bound>` (feature `return_type_notation`)
33033303
#[derive(Debug, Clone, Copy, HashStable_Generic)]
33043304
pub struct AssocItemConstraint<'hir> {

compiler/rustc_hir_analysis/src/hir_ty_lowering/bounds.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
575575
// FIXME: point at the type params that don't have appropriate lifetimes:
576576
// struct S1<F: for<'a> Fn(&i32, &i32) -> &'a i32>(F);
577577
// ---- ---- ^^^^^^^
578-
// NOTE(associated_const_equality): This error should be impossible to trigger
579-
// with associated const equality constraints.
578+
// NOTE(mgca): This error should be impossible to trigger with assoc const bindings.
580579
self.validate_late_bound_regions(
581580
late_bound_in_projection_ty,
582581
late_bound_in_term,

compiler/rustc_hir_analysis/src/hir_ty_lowering/dyn_trait.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
503503
// FIXME: point at the type params that don't have appropriate lifetimes:
504504
// struct S1<F: for<'a> Fn(&i32, &i32) -> &'a i32>(F);
505505
// ---- ---- ^^^^^^^
506-
// NOTE(associated_const_equality): This error should be impossible to trigger
507-
// with associated const equality constraints.
506+
// NOTE(mgca): This error should be impossible to trigger with assoc const bindings.
508507
self.validate_late_bound_regions(
509508
late_bound_in_projection_term,
510509
late_bound_in_term,

tests/ui/generic-const-items/associated-const-equality.rs renamed to tests/ui/generic-const-items/assoc-const-bindings.rs

File renamed without changes.

0 commit comments

Comments
 (0)