Refactor AST trait bound modifiers

This commit is contained in:
León Orell Valerian Liehr
2023-12-20 15:22:06 +01:00
parent bf9229a2e3
commit 5e4f12b41a
16 changed files with 195 additions and 201 deletions

View File

@@ -418,8 +418,7 @@ pub enum GenericArgsParentheses {
ParenSugar,
}
/// A modifier on a bound, currently this is only used for `?Sized`, where the
/// modifier is `Maybe`. Negative bounds should also be handled here.
/// A modifier on a trait bound.
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug, HashStable_Generic)]
pub enum TraitBoundModifier {
None,