Skip to content
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

Rewrite and refactor format_args!() builtin macro. #100996

Merged
merged 14 commits into from
Sep 28, 2022
Prev Previous commit
Next Next commit
Update doc comments.
  • Loading branch information
m-ou-se committed Sep 27, 2022
commit ba7bf1d8ef913cd7ef27bf262b0322839f8ce925
4 changes: 2 additions & 2 deletions compiler/rustc_builtin_macros/src/format/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ pub enum FormatAlignment {

#[derive(Clone, Debug, PartialEq, Eq)]
pub enum FormatCount {
/// `{:0}` or `{:.0}`
/// `{:5}` or `{:.5}`
Literal(usize),
/// `{:.*}`, `{:.0$}`, or `{:a$}`, etc.
/// `{:.*}`, `{:.5$}`, or `{:a$}`, etc.
Argument(FormatArgPosition),
}