-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Make debug builders take &mut self, add entries method #25548
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
Conversation
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
[breaking-change]
6920567
to
bd85983
Compare
} | ||
self | ||
} | ||
|
||
/// Consumes the `DebugSet`, finishing output and returning any error |
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.
No longer consumes I think
Fixed, thanks |
for entry in entries { | ||
self.entry(&entry); | ||
} | ||
self |
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.
This could probably even be entries.into_iter().fold(self, |me, a| me.entry(a))
, but that's getting somewhat complicated!
💔 Test failed - auto-mac-64-nopt-t |
Based on feedback from https://internals.rust-lang.org/t/final-comment-period-for-debug-builders-stabilization/2007/2