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:
commit
ae4973281b
37 changed files with 116 additions and 161 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue