-
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
inline format!() args #114019
inline format!() args #114019
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
library/core/src/time.rs
Outdated
@@ -1129,10 +1129,10 @@ impl fmt::Debug for Duration { | |||
|
|||
// If the user request a precision > 9, we pad '0's at the end. | |||
let w = f.precision().unwrap_or(pos); |
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.
let w = f.precision().unwrap_or(pos); | |
let width = f.precision().unwrap_or(pos); |
for better legibility?
Some changes occurred in need_type_info.rs cc @lcnr Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Changes rustc_apfloat. rustc_apfloat is currently in limbo and you almost certainly don't want to change it (see #55993). cc @eddyb
|
Can you split this up into multiple PRs? There's no reason we need to land changes to every part of the codebase at the same time. |
5c4c3aa
to
543feca
Compare
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes might have occurred in exhaustiveness checking cc @Nadrieril This PR changes Stable MIR cc @oli-obk, @celinval, @spastorino |
@saethlin what do you have in mind? one pr per crate? Anyway I want to do a all-in-one perf run to see if this has some sneaky sideeffects. |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 543feca with merge 0c93b338030414ebd7b082f1eb6b5ebae21a097d... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (0c93b338030414ebd7b082f1eb6b5ebae21a097d): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking 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 Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
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: 653.19s -> 650.692s (-0.38%) |
🤔 interesting |
write!(f, "{:+}", exp)?; | ||
write!(f, "{exp:+}")?; | ||
} else { | ||
write!(f, "{:+03}", exp)?; |
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.
I think apfloat changes need to be reverted?
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.
not sure if that is still the case, cc @eddyb
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.
but it does make sense to leave this out of this PR, because it at least requires a submodule? update
r? WaffleLapkin +1 to @saethlin's proposal of splitting this up. |
note #105890 |
See https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Opening.20.60E-easy.60.20meta.20issue.28s.29.20for.20small.20tweaks.3F
Edit: this is not complete yet because clippy hans at some point, I'm patching out the responsible lint and will update later