We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 053aecf commit 217f5f6Copy full SHA for 217f5f6
compiler/rustc_hir_analysis/src/collect/generics_of.rs
@@ -65,7 +65,7 @@ pub(super) fn generics_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Generics {
65
// struct Foo<const N: usize = { .. }>;
66
// ^^^ ^ ^^^^^^ def id of this anon const
67
// ^ ^ param_id
68
- // ^ parent_def_id after
+ // ^ parent_def_id
69
//
70
// then we only want to return generics for params to the left of `N`. If we don't do that we
71
// end up with that const looking like: `ty::ConstKind::Unevaluated(def_id, args: [N#0])`.
0 commit comments