about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2023-11-24 14:32:05 +0000
committerDeadbeef <ent3rm4n@gmail.com>2023-11-24 14:32:05 +0000
commit16040a16285e3bfde82c3e4216d16a6e566494da (patch)
treeaaf7be3b13116e6c0154b48ea717f971b630a283 /compiler/rustc_parse/src
parentb06258cde4b0dd131cdbf289349ebf51b3b6388a (diff)
downloadrust-16040a16285e3bfde82c3e4216d16a6e566494da.tar.gz
rust-16040a16285e3bfde82c3e4216d16a6e566494da.zip
Add `Span` to `TraitBoundModifier`
Diffstat (limited to 'compiler/rustc_parse/src')
-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,
         }