]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast/src/ast.rs
Actually infer args in visitors
[rust.git] / compiler / rustc_ast / src / ast.rs
index 5bffc94364d9dc8511513c8dd66acc498d15ed9d..8cab83707dcbc8d9f3948bedbcb5a585ade2e46c 100644 (file)
@@ -336,6 +336,8 @@ pub enum ParamKindOrd {
     // is active. Specifically, if it's only `min_const_generics`, it will still require
     // ordering consts after types.
     Const { unordered: bool },
+    // `Infer` is not actually constructed directly from the AST, but is implicitly constructed
+    // during HIR lowering, and `ParamKindOrd` will implicitly order inferred variables last.
     Infer,
 }