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

Fix std::fmt format spec: named args are allowed with "$" syntax #33277

Merged
merged 1 commit into from
May 5, 2016

Conversation

birkenfeld
Copy link
Contributor

No description provided.

@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -456,6 +456,10 @@
//! // Hello {next arg (x)} is {arg 2 (0.01) with precision
//! // specified in its predecessor (5)}
//! println!("Hello {} is {2:.*}", "x", 5, 0.01);
//!
//! // Hello {next arg (x)} is {arg "number" (0.01) with precision specified
//! in arg "prec" (5)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing "//" at the beginning of the line.

@GuillaumeGomez
Copy link
Member

Except for the nit, everything's good. Thanks for the PR. Ping me once it's fixed.

@birkenfeld
Copy link
Contributor Author

@GuillaumeGomez thanks, fixed.

@@ -333,7 +333,7 @@
//! precision := count | '*'
//! type := identifier | ''
//! count := parameter | integer
//! parameter := integer '$'
//! parameter := argument '$'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't we want this to be integer or argument?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argument is defined above as integer | identifier.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! I missed that 👍

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Apr 29, 2016

📌 Commit 84bd1ce has been approved by steveklabnik

@bluss
Copy link
Member

bluss commented Apr 29, 2016

🌟 Nice to get this into the docs, then it also gets into rust code out there eventually

@bors
Copy link
Contributor

bors commented Apr 30, 2016

⌛ Testing commit 84bd1ce with merge daf281d...

bors added a commit that referenced this pull request Apr 30, 2016
Fix std::fmt format spec: named args are allowed with "$" syntax
@bors
Copy link
Contributor

bors commented Apr 30, 2016

💔 Test failed - auto-mac-64-opt-rustbuild

@alexcrichton
Copy link
Member

@bors: retry

On Sat, Apr 30, 2016 at 12:59 PM, bors [email protected] wrote:

[image: 💔] Test failed - auto-mac-64-opt-rustbuild
http://buildbot.rust-lang.org/builders/auto-mac-64-opt-rustbuild/builds/931


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#33277 (comment)

@bors
Copy link
Contributor

bors commented Apr 30, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

@alexcrichton
Copy link
Member

@bors: retry

On Sat, Apr 30, 2016 at 3:02 PM, bors [email protected] wrote:

[image: 💔] Test failed - auto-win-gnu-32-opt-rustbuild
http://buildbot.rust-lang.org/builders/auto-win-gnu-32-opt-rustbuild/builds/940


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#33277 (comment)

@bors
Copy link
Contributor

bors commented May 1, 2016

💔 Test failed - auto-linux-64-opt-mir

@alexcrichton
Copy link
Member

steveklabnik added a commit to steveklabnik/rust that referenced this pull request May 2, 2016
…=steveklabnik

Fix std::fmt format spec: named args are allowed with "$" syntax
Manishearth added a commit to Manishearth/rust that referenced this pull request May 3, 2016
…=steveklabnik

Fix std::fmt format spec: named args are allowed with "$" syntax
bors added a commit that referenced this pull request May 3, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
bors added a commit that referenced this pull request May 3, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
@alexcrichton
Copy link
Member

@bors: retry

bors added a commit that referenced this pull request May 4, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
bors added a commit that referenced this pull request May 4, 2016
Rollup of 14 pull requests

- Successful merges: #33277, #33294, #33314, #33322, #33333, #33338, #33339, #33340, #33343, #33357, #33363, #33365, #33371, #33372
- Failed merges:
@bors bors merged commit 84bd1ce into rust-lang:master May 5, 2016
@birkenfeld birkenfeld deleted the fmt-named-dollar-args branch May 6, 2016 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants