-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Simplify switch sources #136959
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Simplify switch sources #136959
Conversation
As per the "useful comment" in the second last commit, |
Elements from a particular |
c2720aa
to
d53670f
Compare
This PR changes MIR |
Hmm, good point. I misunderstood that part. I have removed some commits and added some new ones. This code is a bit tricky and I think it's good to make it simpler and clearer. |
☔ The latest upstream changes (presumably #137030) made this pull request unmergeable. Please resolve the merge conflicts. |
Very minor changes that will make the next few commits easier to follow.
This is much clearer than `Option<u128>`.
It's only passed to `Analysis::apply_switch_int_edge_effect`, and the existing impls of that method only use the `value` field. So pass that instead.
d53670f
to
3b81d9d
Compare
I have addressed the comments, so this code is ready for final review, thanks. |
@bors r+ |
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#136959 (Simplify switch sources) - rust-lang#137020 (Pass vendored sources from bootstrap to generate-copyright) - rust-lang#137073 (boostrap: skip no_std targets in Std doc step) - rust-lang#137165 (Use `tell` for `<File as Seek>::stream_position`) - rust-lang#137166 (Update default loongarch code model in docs) - rust-lang#137168 (correct comment) - rust-lang#137169 (CI: rfl: move job forward to Linux v6.14-rc3) - rust-lang#137170 (Allow configuring jemalloc per target) - rust-lang#137173 (Subtree update of `rust-analyzer`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#136959 - nnethercote:simplify-SwitchSources, r=tmiasko Simplify switch sources `SwitchSources` and the code around it can be simplified. r? `@tmiasko`
SwitchSources
and the code around it can be simplified.r? @tmiasko