Rollup merge of #101573 - lcnr:param-kind-ord, r=BoxyUwU
update `ParamKindOrd` https://github.com/rust-lang/rust/pull/90207#discussion_r767160854 😁 writing comments "for future prs" sure works well :3 r? `@BoxyUwU`
This commit is contained in:
@@ -300,9 +300,9 @@ impl GenericArg<'_> {
|
||||
pub fn to_ord(&self) -> ast::ParamKindOrd {
|
||||
match self {
|
||||
GenericArg::Lifetime(_) => ast::ParamKindOrd::Lifetime,
|
||||
GenericArg::Type(_) => ast::ParamKindOrd::Type,
|
||||
GenericArg::Const(_) => ast::ParamKindOrd::Const,
|
||||
GenericArg::Infer(_) => ast::ParamKindOrd::Infer,
|
||||
GenericArg::Type(_) | GenericArg::Const(_) | GenericArg::Infer(_) => {
|
||||
ast::ParamKindOrd::TypeOrConst
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user