-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Constify Index
traits
#143921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Constify Index
traits
#143921
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really nice. I'm happy that this was done without any change to the actual logic :D
@bors r+ rollup |
Constify `Index` traits tracking issue: rust-lang#143775 the `SliceIndex` trait cannot be implemented by users as it is sealed. While it would be useful for the `get` method on slices, it seems weird to have a feature gate for that that isn't also gating index syntax at the same time, so I put them under the same feature gate. r? `@fee1-dead`
Constify `Index` traits tracking issue: rust-lang#143775 the `SliceIndex` trait cannot be implemented by users as it is sealed. While it would be useful for the `get` method on slices, it seems weird to have a feature gate for that that isn't also gating index syntax at the same time, so I put them under the same feature gate. r? ``@fee1-dead``
Failed in rollup: #143947 (comment)
@bors r- |
@bors r=fee1-dead |
🌲 The tree is currently closed for pull requests below priority 100. This pull request will be tested once the tree is reopened. |
tracking issue: #143775
the
SliceIndex
trait cannot be implemented by users as it is sealed. While it would be useful for theget
method on slices, it seems weird to have a feature gate for that that isn't also gating index syntax at the same time, so I put them under the same feature gate.r? @fee1-dead