Skip to content

inliner: Copy unevaluated constants only after successful inlining - #78771

Merged
bors merged 1 commit into
rust-lang:masterfrom
tmiasko:inline-consts
Nov 6, 2020
Merged

inliner: Copy unevaluated constants only after successful inlining#78771
bors merged 1 commit into
rust-lang:masterfrom
tmiasko:inline-consts

Conversation

@tmiasko

@tmiaskotmiasko commented Nov 5, 2020

Copy link
Copy Markdown
Contributor

Inliner copies the unevaluated constants from the callee body to the
caller at the point where decision to inline is yet to be made. The
constants will be unnecessary if inlining were to fail.

Organize the code moving items from callee to the caller together in one
place to avoid the issue.

Inliner copies the unevaluated constants from the callee body to the
caller at the point where decision to inline is yet to be made. The
constants will be unnecessary if inlining were to fail.
Organize the code moving items from callee to the caller together in one
place to avoid the issue.
@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 5, 2020
@oli-obk

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Nov 5, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 6ca43ac has been approved by oli-obk

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 5, 2020
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Nov 6, 2020
inliner: Copy unevaluated constants only after successful inlining
Inliner copies the unevaluated constants from the callee body to the
caller at the point where decision to inline is yet to be made. The
constants will be unnecessary if inlining were to fail.
Organize the code moving items from callee to the caller together in one
place to avoid the issue.
@JohnTitorJohnTitor mentioned this pull request Nov 6, 2020
@JohnTitorJohnTitor mentioned this pull request Nov 6, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 6, 2020
Rollup of 15 pull requests
Successful merges:
- rust-lang#74979 (`#![deny(unsafe_op_in_unsafe_fn)]` in sys/hermit)
- rust-lang#78006 (Use Intra-doc links for std::io::buffered)
- rust-lang#78167 (Fix unreachable sub-branch detection in or-patterns)
- rust-lang#78514 (Allow using 1/2/3/4 for `x.py setup` options)
- rust-lang#78538 (BTreeMap: document a curious assumption in test cases)
- rust-lang#78559 (Add LLVM upgrades from 7 to 10 to RELEASES.md)
- rust-lang#78666 (Fix shellcheck error)
- rust-lang#78705 (Print a summary of which test suite failed)
- rust-lang#78726 (Add link to rust website)
- rust-lang#78730 (Expand explanation of reverse_bits)
- rust-lang#78760 (`deny(invalid_codeblock_attributes)` for rustc_error_codes)
- rust-lang#78771 (inliner: Copy unevaluated constants only after successful inlining)
- rust-lang#78794 (rustc_expand: use collect_bang helper instead of manual reimplementation)
- rust-lang#78795 (The renumber pass is long gone)
- rust-lang#78798 (Fixing Spelling Typos)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 0a89d7b into rust-lang:masterNov 6, 2020
@rustbotrustbot added this to the 1.49.0 milestone Nov 6, 2020
@tmiasko
tmiasko deleted the inline-consts branch November 6, 2020 19:15
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@tmiasko@oli-obk@bors@rust-highfive@rustbot