-
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
rustc_codegen_llvm: Remove (almost) unused span parameter from many functions in metadata.rs #92729
rustc_codegen_llvm: Remove (almost) unused span parameter from many functions in metadata.rs #92729
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
Let's make sure there are no surprises: @bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 7fdfdf17c96b5b27448b81cc5acf7d404b5effcc with merge d1a1b735bf4a1b9f622d8ac62b3b6d62ce3560c2... |
☀️ Try build successful - checks-actions |
Queued d1a1b735bf4a1b9f622d8ac62b3b6d62ce3560c2 with parent 89b9f7b, future comparison URL. |
Finished benchmarking commit (d1a1b735bf4a1b9f622d8ac62b3b6d62ce3560c2): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf. @bors rollup=never |
@bors r+ rollup |
📌 Commit 7fdfdf17c96b5b27448b81cc5acf7d404b5effcc has been approved by |
☔ The latest upstream changes (presumably #92811) made this pull request unmergeable. Please resolve the merge conflicts. |
…unctions in metadata.rs.
7fdfdf1
to
9a79ab6
Compare
Rebased. @bors r=petrochenkov |
📌 Commit 9a79ab6 has been approved by |
…askrgr Rollup of 10 pull requests Successful merges: - rust-lang#90498 (Clarifications in the target tier policy) - rust-lang#92164 (Implement `#[rustc_must_implement_one_of]` attribute) - rust-lang#92729 (rustc_codegen_llvm: Remove (almost) unused span parameter from many functions in metadata.rs) - rust-lang#92752 (Correct minor typos in some long error code explanations) - rust-lang#92801 (Enable wrapping words by default) - rust-lang#92825 (Rename environment variable for overriding rustc version) - rust-lang#92877 (Remove LLVMRustMarkAllFunctionsNounwind) - rust-lang#92936 (rustdoc: Remove `collect` in `html::markdown::parse`) - rust-lang#92956 (Add `log2` and `log10` to `NonZeroU*`) - rust-lang#92960 (Use `carrying_{mul|add}` in `num::bignum`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…buginfo, r=davidtwco,oli-obk Fix debuginfo for pointers/references to unsized types This PR makes the compiler emit fat pointer debuginfo in all cases. Before, we sometimes got thin-pointer debuginfo, making it impossible to fully interpret the pointed to memory in debuggers. The code is actually cleaner now, especially around generation of trait object pointer debuginfo. Fixes rust-lang#92718 ~~Blocked on rust-lang#92729
…ginfo, r=davidtwco,oli-obk Fix debuginfo for pointers/references to unsized types This PR makes the compiler emit fat pointer debuginfo in all cases. Before, we sometimes got thin-pointer debuginfo, making it impossible to fully interpret the pointed to memory in debuggers. The code is actually cleaner now, especially around generation of trait object pointer debuginfo. Fixes rust-lang#92718 ~~Blocked on rust-lang#92729
Many functions and intermediate data structures in
rustc_codegen_llvm/src/debuginfo/metadata.rs
take a span parameter that is only used for providing a span to aspan_bug!()
invocation, in case the debuginfo typemap gets corrupted. However, this span does not really convey useful information as it just points to the first point a type is used -- and half of the time is initialized toDUMMY_SP
.This PR removes this span parameter from the module.
It also removes the following unused parameters from
composite_type_metadata()
together with an outdated comment: