-
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
More questionmarks in doctests #62663
Conversation
Ping from triage, any updates? @QuietMisdreavus |
Just trying stuff. |
Even more highfive testing. |
Hopefully the last test! Sorry for hijacking this PR. |
/// fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
/// let mut s = String::new(); | ||
/// let mut v = Vec::new(); | ||
/// writeln!(&mut s, "{} {}", "abc", 123)?; // uses fmt::Write::write_fmt |
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.
Old C habit but maybe add an empty line before this one? Totally not mandatory but I think it'd make the reading a bit easier.
r=me once comment addressed (same if you prefer not to address it haha). |
862512c
to
cbac781
Compare
@GuillaumeGomez adressed the comment (I also found a second instance). |
Thanks! @bors: r+ rollup |
📌 Commit cbac781 has been approved by |
…illaumeGomez More questionmarks in doctests This removes the other `unwrap`s in the macro doctests, replacing them with `?`. For now, we need to specify the main function including the return type, we can get rid of that once the return type suggestion for `fn main() { .. }` works correctly. r? @QuietMisdreavus
Rollup of 7 pull requests Successful merges: - #62663 (More questionmarks in doctests) - #62969 (Changing the structure of `mir::interpret::InterpError`) - #63153 (Remove redundant method with const variable resolution) - #63189 (Doc improvements) - #63198 (Allow trailing comma in macro 2.0 declarations.) - #63202 (Fix ICE in #63135) - #63203 (Make is_mutable use PlaceRef instead of it's fields) Failed merges: r? @ghost
This removes the other
unwrap
s in the macro doctests, replacing them with?
. For now, we need to specify the main function including the return type, we can get rid of that once the return type suggestion forfn main() { .. }
works correctly.r? @QuietMisdreavus