-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Add Step::sub_usize #60542
Add Step::sub_usize #60542
Conversation
r? @bluss (rust_highfive has picked a reviewer for you, use r? to override) |
r? @scottmcm |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
I don't see a problem with the trait method addition, since the trait definitely needs a rework, but I don't know the best way to deal with the chalk failure. I guess you could add a default implementation that just calls Also, I would have expected this to be used somewhere -- presumably in |
I'm okay with that, although that wouldn't handle underflow correctly. Would it make sense to use the
I thought overriding |
We could also give |
ping from triage @timvermeulen any updates on this? |
This seems reasonable to me as a way to help the submodule dance, and travis is passing, so @bors r+ |
📌 Commit f1d0829 has been approved by |
…tmcm Add Step::sub_usize Required for rust-lang#54054. I'm aware that the `Step` trait needs a rework, but this still seems like a reasonable addition? This currently doesn't compile because Chalk contains a type that implement this trait, and this is a breaking change. How can that be fixed?
…tmcm Add Step::sub_usize Required for rust-lang#54054. I'm aware that the `Step` trait needs a rework, but this still seems like a reasonable addition? This currently doesn't compile because Chalk contains a type that implement this trait, and this is a breaking change. How can that be fixed?
Rollup of 11 pull requests Successful merges: - #58975 (Implement `iter::Sum` and `iter::Product` for `Option`) - #60542 (Add Step::sub_usize) - #60555 (Implement nth_back for RChunks(Exact)(Mut)) - #60766 (Weak::into_raw) - #61048 (Feature/nth back chunks) - #61191 (librustc_errors: Move annotation collection to own impl) - #61235 (Stabilize bufreader_buffer feature) - #61249 (Rename Place::local to Place::local_or_deref_local) - #61291 (Avoid unneeded bug!() call) - #61294 (Rename `TraitOrImpl` to `Assoc` and `trait_or_impl` to `assoc`.) - #61297 (Remove LLVM instruction stats and other (obsolete) codegen stats.) Failed merges: r? @ghost
Required for #54054.
I'm aware that the
Step
trait needs a rework, but this still seems like a reasonable addition?This currently doesn't compile because Chalk contains a type that implement this trait, and this is a breaking change. How can that be fixed?