Skip to content

Rollup of 8 pull requests #83308

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

Merged
merged 22 commits into from
Mar 20, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
12d6238
Add `as_str` method for split whitespace str iterators
WaffleLapkin Feb 26, 2021
d4fd853
Change formatting of safety comment
WaffleLapkin Feb 26, 2021
c07955c
Fix overflowing length in Vec<ZST> to VecDeque
cuviper Mar 17, 2021
55d9e0f
Include output stream in `panic!()` documentation
jfrimmel Mar 18, 2021
61e5d54
Add more information about panicking
jfrimmel Mar 18, 2021
d5e45b5
Incorporate review feedback #2
jfrimmel Mar 18, 2021
1e322e3
Revert the second deprecation of collections::Bound
bstrie Mar 18, 2021
19bd066
Apply suggestions from code review
jfrimmel Mar 18, 2021
1c8c261
Update LLVM to bring in SIMD updates for WebAssembly
alexcrichton Mar 18, 2021
778e197
Mark early otherwise optimization unsound
spastorino Mar 18, 2021
430c0d1
Do not ICE on ty::Error as an error must already have been reported
oli-obk Mar 19, 2021
9577058
Add a second regression test
oli-obk Mar 19, 2021
1491496
Only build help popup when it's really needed
GuillaumeGomez Dec 12, 2020
e2c70f7
Ignore main.js file length
GuillaumeGomez Mar 19, 2021
ae1a2df
Rollup merge of #79986 - GuillaumeGomez:build-help-when-needed, r=Nem…
Dylan-DPC Mar 19, 2021
f7febc8
Rollup merge of #82570 - WaffleLapkin:split_whitespace_as_str, r=m-ou-se
Dylan-DPC Mar 19, 2021
1a0e32f
Rollup merge of #83244 - cuviper:vec_deque-zst, r=m-ou-se
Dylan-DPC Mar 19, 2021
2cc5d72
Rollup merge of #83254 - jfrimmel:panic_output-stream, r=m-ou-se,josh…
Dylan-DPC Mar 19, 2021
dbf589f
Rollup merge of #83269 - bstrie:revertdep, r=m-ou-se
Dylan-DPC Mar 19, 2021
90e52a1
Rollup merge of #83277 - spastorino:early_otherwise-opt-unsound, r=ol…
Dylan-DPC Mar 19, 2021
767b094
Rollup merge of #83285 - alexcrichton:wasm-simd-update, r=cuviper
Dylan-DPC Mar 19, 2021
51a29cb
Rollup merge of #83297 - oli-obk:why_bug_today_if_you_can_delay_to_to…
Dylan-DPC Mar 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark early otherwise optimization unsound
  • Loading branch information
spastorino committed Mar 18, 2021
commit 778e1978d5ad67b1e4f69622b86237b1f4732f0f
5 changes: 5 additions & 0 deletions compiler/rustc_mir/src/transform/early_otherwise_branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ pub struct EarlyOtherwiseBranch;

impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch {
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
// FIXME(#78496)
if !tcx.sess.opts.debugging_opts.unsound_mir_opts {
return;
}

if tcx.sess.mir_opt_level() < 3 {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/mir-opt/early_otherwise_branch.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// compile-flags: -Z mir-opt-level=4
// compile-flags: -Z mir-opt-level=4 -Z unsound-mir-opts
// EMIT_MIR early_otherwise_branch.opt1.EarlyOtherwiseBranch.diff
fn opt1(x: Option<u32>, y: Option<u32>) -> u32 {
match (x, y) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/mir-opt/early_otherwise_branch_3_element_tuple.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// compile-flags: -Z mir-opt-level=4
// compile-flags: -Z mir-opt-level=4 -Z unsound-mir-opts

// EMIT_MIR early_otherwise_branch_3_element_tuple.opt1.EarlyOtherwiseBranch.diff
fn opt1(x: Option<u32>, y: Option<u32>, z: Option<u32>) -> u32 {
Expand Down