-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Replace &Vec<_>
s with &[_]
s
#97697
Replace &Vec<_>
s with &[_]
s
#97697
Conversation
I don't expect this to show anything but noise but worth a shot @bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit afaa985 with merge c2567afd60370409f05b8c2d8e0baf9f45f6764c... |
☀️ Try build successful - checks-actions |
Queued c2567afd60370409f05b8c2d8e0baf9f45f6764c with parent e40d5e8, future comparison URL. |
Finished benchmarking commit (c2567afd60370409f05b8c2d8e0baf9f45f6764c): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesThis benchmark run did not return any relevant results for this metric. 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 may lead to changes in compiler perf. @bors rollup=never Footnotes |
Cool. @WaffleLapkin, r=me with those comments addressed above. @bors delegate+ |
✌️ @WaffleLapkin can now approve this pull request |
@bors r+ |
📌 Commit cae3c78 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (4322a78): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
not a big deal, but next time @WaffleLapkin write r=compiler-errors instead of r+ so the merge commit says that i approved it. it's just the merge commit title, though, so not a problem. |
Ah, ok |
It's generally preferable to use
&[_]
since it's one less indirection and it can be created from types other thatVec
.I've left
&Vec
in some locals where it doesn't really matter, in cases whereTypeFoldable
is expected (TypeFoldable: Clone
so slice can't implement it) and in cases where it's&TypeAliasThatIsActiallyVec
. Nothing important, really, I was just a little annoyed byvisit_generic_param_vec
:Dr? @compiler-errors