Conversation
|
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Hm, I'd rather make this change in a separate PR which would be benchmarked to make sure this is actually an optimization (it looks like it would be but I'm not sure).
estebank
left a comment
There was a problem hiding this comment.
LGTM, after addressing @Mark-Simulacrum's comments.
|
@estebank comments addressed. |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
|
Yes, but how? I only changed |
|
Count will exhaust the iterator (by_ref doesn't clone it) regardless of whether it's implemented to be more efficient, I believe. |
|
@bors r+ rollup |
|
📌 Commit ffecbc5 has been approved by |
Cleanup nll - improve allocations - improve `format!` calls - improve common patterns
Rollup of 18 pull requests Successful merges: - #54646 (improve documentation on std::thread::sleep) - #54933 (Cleanup the rest of codegen_llvm) - #54964 (Run both lldb and gdb tests) - #55016 (Deduplicate some code and compile-time values around vtables) - #55031 (Improve verify_llvm_ir config option) - #55050 (doc std::fmt: the Python inspiration is already mentioned in precedin…) - #55077 (rustdoc: Use dyn keyword when rendering dynamic traits) - #55080 (Detect if access to localStorage is forbidden by the user's browser) - #55090 (regression test for move out of borrow via pattern) - #55102 (resolve: Do not skip extern prelude during speculative resolution) - #55104 (Add test for #34229) - #55111 ([Rustc Book] Explain --cfg's arguments) - #55122 (Cleanup mir/borrowck) - #55127 (Remove HybridBitSet::dummy) - #55128 (Fix LLVMRustInlineAsmVerify return type mismatch) - #55142 (miri: layout should not affect CTFE checks (outside of validation)) - #55151 (Cleanup nll) - #55161 ([librustdoc] Disable spellcheck for search field)
format!calls