X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_ast%2Fsrc%2Fast.rs;h=8cab83707dcbc8d9f3948bedbcb5a585ade2e46c;hb=8759f00c73641d44b3ab7a2290e3c58168d3e30f;hp=5bffc94364d9dc8511513c8dd66acc498d15ed9d;hpb=3605675bb1b4f1fb65f80585ded2b62aea15bf2c;p=rust.git diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index 5bffc94364d..8cab83707dc 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -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, }