about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-25 07:29:08 +0000
committerbors <bors@rust-lang.org>2023-11-25 07:29:08 +0000
commitb7912d38b1ef07ce89e3c249e8645113b832115a (patch)
tree33b56bfa1d24df561f420e26cbdbd02ce90fd7f8 /compiler/rustc_parse/src/parser
parent44aceb5d185816dd0d0e3b79ec2944320e1066fe (diff)
parent34a8680cd50a20e5a2f5a7a6861d7c8b700dc3c6 (diff)
downloadrust-b7912d38b1ef07ce89e3c249e8645113b832115a.tar.gz
rust-b7912d38b1ef07ce89e3c249e8645113b832115a.zip
Auto merge of #3187 - RalfJung:rustup, r=RalfJung
Rustup
Diffstat (limited to 'compiler/rustc_parse/src/parser')
-rw-r--r--compiler/rustc_parse/src/parser/ty.rs2
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,
         }