diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2023-11-24 14:32:05 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2023-11-24 14:32:05 +0000 |
| commit | 16040a16285e3bfde82c3e4216d16a6e566494da (patch) | |
| tree | aaf7be3b13116e6c0154b48ea717f971b630a283 /compiler/rustc_parse | |
| parent | b06258cde4b0dd131cdbf289349ebf51b3b6388a (diff) | |
| download | rust-16040a16285e3bfde82c3e4216d16a6e566494da.tar.gz rust-16040a16285e3bfde82c3e4216d16a6e566494da.zip | |
Add `Span` to `TraitBoundModifier`
Diffstat (limited to 'compiler/rustc_parse')
| -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, } |
