-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Rename impl_of_method and trait_of_item #144377
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
base: master
Are you sure you want to change the base?
Conversation
r? @fee1-dead rustbot has assigned @fee1-dead. Use |
This comment has been minimized.
This comment has been minimized.
230e8b9
to
e019fd7
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
this should really be renamed to opt_impl_parent or impl_of_assoc instead. r=me after good/neutral perf, rename can be in followup |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (bf4a373): comparison URL. Overall result: ❌ regressions - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -1.4%, secondary -1.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 468.586s -> 466.337s (-0.48%) |
Hmm that doesn't look like a win. I guess it's because the non assoc input case is now parent+def_kind where it used to be just def_kind. There could be an opportunity to split out a panicking version but I'm not sure if that's worth it either. Agreed about the rename. |
Well, i'd be happy to r+ if you repurpose this PR so that it's just the renaming :) |
e019fd7
to
448868a
Compare
Some changes occurred to the CTFE machinery Some changes occurred in need_type_info.rs cc @lcnr Some changes occurred in coverage instrumentation. cc @Zalathar Some changes occurred to constck cc @fee1-dead Some changes occurred in compiler/rustc_codegen_ssa HIR ty lowering was modified cc @fmease Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred to the CTFE / Miri interpreter cc @rust-lang/miri Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in compiler/rustc_sanitizers cc @rcvalle |
Oooof that's a lot of tags 🫣 |
still potentially perf sensitive, so @bors2 try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Rename impl_of_method and trait_of_item
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (0ed9f77): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (secondary -0.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 469.891s -> 468.327s (-0.33%) |
@bors r+ |
This PR used to tweak the implementation of impl_of_method, but that introduced a perf regression.
Rename impl_of_method and trait_of_item to impl_of_assoc and trait_of_assoc respectively. This reflects how the two functions are closely related. And it reflects the behavior more accurately as the functions check whether the input is an associated item.