-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Remove some unused functionality #92895
Conversation
r? @jackh726 (rust-highfive has picked a reviewer for you, use r? to override) |
2a4b75a
to
68432cc
Compare
This comment has been minimized.
This comment has been minimized.
I think this deserves a last laugh. teehee! |
68432cc
to
c5f65b1
Compare
☔ The latest upstream changes (presumably #87648) made this pull request unmergeable. Please resolve the merge conflicts. |
c5f65b1
to
f7a1273
Compare
Why remove everybody loops btw, did it maybe stop working ? Isn't it still an interesting strategy for test case reduction, as documented by @pnkfelix in the classic minimization strategies blog post ? |
It probably still works, but it is rather fragile (it has caused ice in the past) and it removes def id's after expansion, which requires various places to take this into account (eg https://github.com/rust-lang/rust/pull/92895/files#diff-b27a380db7c2a077975b81b162d8a7923c599d56b4f265427f2a9eecc77641b4L85-L86) My primary reason however was to reduce compiler complexity a bit.
Rust-reduce has a pass that does something similar: https://github.com/jethrogb/rust-reduce/blob/master/src/transforms/clear_blocks.rs |
Sure, I know, I use it often. So it doesn't affect me that much but not everyone who uses everybody_loops does, or can, use rust-reduce, hence why I was asking. Probably not a big deal, of course, let's see what the others think. |
☔ The latest upstream changes (presumably #93173) made this pull request unmergeable. Please resolve the merge conflicts. |
I will hold off on rebasing until a decision is made if everybody_loops should be removed or not. |
cc @pnkfelix for thoughts on everybody loops |
Actually let's just ping @rust-lang/compiler for thought |
I have personally always found If the pass causes genuine pain maintaining other parts of the codebase, I'm probably in favour of removing it. That said, I would also like to suggest to split out the removal of |
Given the above comment and thumbs ups, r=me after rebase |
Err, well. Let's split this into two. r=me on the non everybody-loops change. |
This option introduced in rust-lang#15820 allows a custom crate to be imported in the place of std, but with the name std. I don't think there is any value to this. At most it is confusing users of a driver that uses this option. There are no users of this option on github. If anyone still needs it, they can emulate it injecting #![no_core] in addition to their own prelude.
f7a1273
to
7ba4110
Compare
Dropped the everybody loops removal from this PR. Will make a separate PR for it shortly. @bors r=jackh726 |
📌 Commit 7ba4110 has been approved by |
Split out the everybody loops removal to #93913. |
Remove some unused functionality * Remove the `alt_std_name` option * Remove the everybody loops pass * Make two functions private
Remove some unused functionality * Remove the `alt_std_name` option * Remove the everybody loops pass * Make two functions private
PR description not changed. |
My bad. Fixed that now. The merge commit may not reflect it though if the current rollup succeeds. |
…askrgr Rollup of 10 pull requests Successful merges: - rust-lang#90955 (Rename `FilenameTooLong` to `InvalidFilename` and also use it for Windows' `ERROR_INVALID_NAME`) - rust-lang#91607 (Make `span_extend_to_prev_str()` more robust) - rust-lang#92895 (Remove some unused functionality) - rust-lang#93635 (Add missing platform-specific information on current_dir and set_current_dir) - rust-lang#93660 (rustdoc-json: Add some tests for typealias item) - rust-lang#93782 (Split `pauth` target feature) - rust-lang#93868 (Fix incorrect register conflict detection in asm!) - rust-lang#93888 (Implement `AsFd` for `&T` and `&mut T`.) - rust-lang#93909 (Fix typo: explicitely -> explicitly) - rust-lang#93910 (fix mention of moved function in `rustc_hir` docs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…ckh726 Remove the everybody loops pass It isn't used anymore by rustdoc. Split out of rust-lang#92895. There has been some previous discussion there.
…ckh726 Remove the everybody loops pass It isn't used anymore by rustdoc. Split out of rust-lang#92895. There has been some previous discussion there.
alt_std_name
option