diff options
| author | Ralf Jung <post@ralfj.de> | 2023-11-25 08:02:42 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-11-25 08:02:42 +0100 |
| commit | a4a294aa8d653656329f06a12f87025b22b2ef45 (patch) | |
| tree | 5cd22da2e6c765782b6888b5d4df6a2be98227e1 /compiler/rustc_parse/src/parser | |
| parent | c17444876bcc827e0e4223b193ea40a0f4253b21 (diff) | |
| parent | 34c5ab9aac327a8a18e18ea37a2468a320d82fb0 (diff) | |
| download | rust-a4a294aa8d653656329f06a12f87025b22b2ef45.tar.gz rust-a4a294aa8d653656329f06a12f87025b22b2ef45.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs index 75617b1b3ea..b1a57c3dfd9 100644 --- a/compiler/rustc_parse/src/parser/ty.rs +++ b/compiler/rustc_parse/src/parser/ty.rs @@ -37,7 +37,7 @@ impl BoundModifiers { (BoundPolarity::Positive, None) => TraitBoundModifier::None, (BoundPolarity::Negative(_), None) => TraitBoundModifier::Negative, (BoundPolarity::Maybe(_), None) => TraitBoundModifier::Maybe, - (BoundPolarity::Positive, Some(_)) => TraitBoundModifier::MaybeConst, + (BoundPolarity::Positive, Some(sp)) => TraitBoundModifier::MaybeConst(sp), (BoundPolarity::Negative(_), Some(_)) => TraitBoundModifier::MaybeConstNegative, (BoundPolarity::Maybe(_), Some(_)) => TraitBoundModifier::MaybeConstMaybe, } |
