File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -239,11 +239,10 @@ pub struct ParameterKindsInnerDebug<'a, I: Interner> {
239239
240240impl < ' a , I : Interner > Debug for ParameterKindsInnerDebug < ' a , I > {
241241 fn fmt ( & self , fmt : & mut Formatter < ' _ > ) -> Result < ( ) , Error > {
242- // NB: We always print the `for<>`, even if it is empty,
243- // because it may affect the debruijn indices of things
244- // contained within. For example, `for<> { ^1.0 }` is very
245- // different from `^1.0` in terms of what variable is being
246- // referenced.
242+ // NB: We print parameter kinds as a list delimited by `<>`,
243+ // like `<K1, K2, ..>`. This is because parameter kind lists
244+ // are always associated with binders like `forall<type> {
245+ // ... }`.
247246 write ! ( fmt, "<" ) ?;
248247 for ( index, binder) in self . parameter_kinds . iter ( self . interner ) . enumerate ( ) {
249248 if index > 0 {
You can’t perform that action at this time.
0 commit comments