Uh oh!
There was an error while loading. Please reload this page.
Run name-anon-globals after LTO passes as well - #55609
Conversation
rust-highfive
commented
Nov 2, 2018
(rust_highfive has picked a reviewer for you, use r? to override) |
nikic
commented
Nov 2, 2018
r? @nagisa |
nagisa
commented
Nov 2, 2018
@bors r+ Looks good, thanks! |
bors
commented
Nov 2, 2018
📌 Commit 270849f87f50dfd822232d80460f446f1e73a55c has been approved by |
bors
commented
Nov 5, 2018
☔ The latest upstream changes (presumably #55593) made this pull request unmergeable. Please resolve the merge conflicts. |
nikic
commented
Nov 5, 2018
Rebased |
nagisa
commented
Nov 5, 2018
@bors r+ |
bors
commented
Nov 5, 2018
📌 Commit 87129738d035f6c9b5c60788571d74afe1348a12 has been approved by |
bors
commented
Nov 6, 2018
⌛ Testing commit 87129738d035f6c9b5c60788571d74afe1348a12 with merge 720b6d089a3f42e1eac66b70f3ae4b8e287e4709... |
bors
commented
Nov 6, 2018
💔 Test failed - status-travis |
rust-highfive
commented
Nov 6, 2018
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 |
nikic
commented
Nov 6, 2018
The failure is in the newly introduced test, so definitely legit. Not sure why though. |
nagisa
commented
Nov 6, 2018
Hmm, this is a failure on WASM. I think WASM target has libstd… it is not like every test out there ignores wasm target. To work around the issue you could also just make this test |
nikic
commented
Nov 6, 2018
@nagisa I feel like that shouldn't be necessary -- as you say, there'd have to be more tests skipping wasm. I'm wondering if something about the run-make test is not right. I checked that it's also possible to test this with a |
nagisa
commented
Nov 6, 2018
Yeah, lets give a good ol' compile-pass test a try. Its preferable to run-make either way. |
If we're going to emit bitcode (through ThinLTOBuffer), then we need to ensure that anon globals are named. This was already done after optimization passes, but also has to happen after LTO passes, as we always emit the final result in a ThinLTO-compatible manner. Fixesrust-lang#51947.
nikic
commented
Nov 6, 2018
Test changed to use compile-pass. |
nagisa
commented
Nov 6, 2018
@bors r+ |
bors
commented
Nov 6, 2018
📌 Commit 66702fc has been approved by |
Run name-anon-globals after LTO passes as well If we're going to emit bitcode (through ThinLTOBuffer), then we need to ensure that anon globals are named. This was already done after optimization passes, but also has to happen after LTO passes, as we always emit the final result in a ThinLTO-compatible manner. I added the test as `run-make`. The important bit is that we emit bitcode in some way (e.g. `--crate-type rlib` or `--emit=llvm-bc`). Please tell me if there is a better way to test for that. Fixesrust-lang#51947
Rollup of 14 pull requests Successful merges: - #55377 (Slight copy-editing for `std::cell::Cell` docs) - #55441 (Remove unused re import in gdb_rust_pretty_printing) - #55453 (Choose predicates without inference variables over those with them) - #55495 (Don't print opt fuel messages to stdout because it breaks Rustbuild) - #55501 (Make `process_obligations`' computation of `completed` optional.) - #55510 (Fix feature gate only being checked on first repr attr.) - #55609 (Run name-anon-globals after LTO passes as well) - #55645 (do not print wrapping ranges like normal ranges in validity diagnostics) - #55688 (Standardised names and location of ui issue tests) - #55692 (-C remark: fix incorrect warning about requiring "--debuginfo" instead of "-C debuginfo=n") - #55702 (Add `aarch64-pc-windows-msvc` to deployed targets) - #55728 (Update lldb) - #55730 (Use trait impl method span when type param mismatch is due to impl Trait) - #55734 (refactor: use shorthand fields)
If we're going to emit bitcode (through ThinLTOBuffer), then we need to ensure that anon globals are named. This was already done after optimization passes, but also has to happen after LTO passes, as we always emit the final result in a ThinLTO-compatible manner.
I added the test as
run-make. The important bit is that we emit bitcode in some way (e.g.--crate-type rlibor--emit=llvm-bc). Please tell me if there is a better way to test for that.Fixes#51947