-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Eliminate duplication code of building panic langcall during codegen #96474
Conversation
r? @fee1-dead (rust-highfive has picked a reviewer for you, use r? to override) |
r? rust-lang/compiler |
li: LangItem, | ||
) -> (Bx::FnAbiOfResult, Bx::Value) { | ||
let tcx = bx.tcx(); | ||
let def_id = tcx.lang_items().require(li).unwrap_or_else(|s| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use tcx.require_lang_item
instead here.
apart from that r=me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, that makes sense
@bors r+ rollup |
📌 Commit cf00142 has been approved by |
Eliminate duplication code of building panic langcall during codegen From the FIXME in the `codegen_panic_intrinsic` func.
☀️ Test successful - checks-actions |
Finished benchmarking commit (1c8966e): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
From the FIXME in the
codegen_panic_intrinsic
func.