Uh oh!
There was an error while loading. Please reload this page.
Fixes for LLVM change 0f45c16f2caa7c035e5c3edd40af9e0d51ad6ba7 - #88289
Conversation
rust-highfive
commented
Aug 24, 2021
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @jackh726 (or someone else) soon. Please see the contribution instructions for more information. |
Uh oh!
There was an error while loading. Please reload this page.
nikic
commented
Aug 24, 2021
I think the right way now would be use lower-level APIs, something like this: @aeubanks Does that sound right? |
aeubanks
commented
Aug 24, 2021
These all look like single attributes, is an |
nikic
commented
Aug 24, 2021
@aeubanks Good point, I missed that. Yes, it should be possible to use APIs like |
durin42
commented
Aug 25, 2021
Alright, I believe I've cleaned this up to use all the right APIs. I'm a little dubious of the one |
jackh726
commented
Aug 25, 2021
r? @nikic |
aeubanks
commented
Aug 25, 2021
I don't think you need the #ifdefs, you should be able to use the newly suggested method even with older versions of LLVM. It's cleaner anyway. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
durin42
commented
Aug 25, 2021
Dropped the ifdefs, verified everything works on LLVM HEAD. I assume the bots will cover the older versions of LLVM in case I messed something up. |
nikic
left a comment
There was a problem hiding this comment.
Looks good! Could you please squash the commits?
durin42
commented
Aug 25, 2021
Squashed. Thanks! |
nikic
commented
Aug 25, 2021
@bors r+ rollup |
bors
commented
Aug 25, 2021
📌 Commit f751e2554dffe583d1c525ca5a3a28bf81a65d67 has been approved by |
Uh oh!
There was an error while loading. Please reload this page.
nikic
commented
Aug 26, 2021
@bors r- per Arthur's comment above |
The above-mentioned commit (part of the LLVM 14 development cycle) removes a method that rustc uses somewhat extensively. We mostly switch to lower-level methods that exist in all versions of LLVM we use, so no new ifdef logic is required in most cases.
durin42
commented
Aug 26, 2021
PTAL - this should be ready |
nikic
commented
Aug 26, 2021
@bors r+ |
bors
commented
Aug 26, 2021
📌 Commit 027db5d has been approved by |
Fixes for LLVM change 0f45c16 More details in the individual commit messages, but the summary is: LLVM deleted an unused-to-them method that we used, we worked around it to avoid annoying cleanup/restructuring in the Rust-side code.
…arth Rollup of 11 pull requests Successful merges: - rust-lang#87832 (Fix debugger stepping behavior with `match` expressions) - rust-lang#88123 (Make spans for tuple patterns in E0023 more precise) - rust-lang#88215 (Reland rust-lang#83738: "rustdoc: Don't load all extern crates unconditionally") - rust-lang#88216 (Don't stabilize creation of TryReserveError instances) - rust-lang#88270 (Handle type ascription type ops in NLL HRTB diagnostics) - rust-lang#88289 (Fixes for LLVM change 0f45c16) - rust-lang#88320 (type_implements_trait consider obligation failure on overflow) - rust-lang#88332 (Add argument types tait tests) - rust-lang#88340 (Add `c_size_t` and `c_ssize_t` to `std::os::raw`.) - rust-lang#88346 (Revert "Add type of a let tait test impl trait straight in let") - rust-lang#88348 (Add field types tait tests) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
More details in the individual commit messages, but the summary is: LLVM deleted an unused-to-them method that we used, we worked around it to avoid annoying cleanup/restructuring in the Rust-side code.