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

Correct diagnostic for TomlDebugInfo #14413

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Correct diagnostic for TomlDebugInfo #14413

merged 1 commit into from
Aug 16, 2024

Conversation

ctz
Copy link
Contributor

@ctz ctz commented Aug 16, 2024

This is missing the friendly aliases introduced in 3dbb474.

What does this PR try to resolve?

I wrote:

[profile.bench]
debug = "all"

I got this diagnostic:

error: invalid value: string "all", expected a boolean, 0, 1, 2, "line-tables-only", or "line-directives-only"
  --> Cargo.toml:31:9
   |
31 | debug = "all"
   |         ^^^^^
   |

I meant to write "full", as documented here, but that wasn't mentioned in the diagnostic.

How should we test and review this PR?

Updated the existing tests for this diagnostic.

This is missing the friendly aliases introduced in 3dbb474.
@rustbot
Copy link
Collaborator

rustbot commented Aug 16, 2024

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ehuss (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added A-manifest Area: Cargo.toml issues S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 16, 2024
@epage
Copy link
Contributor

epage commented Aug 16, 2024

Thanks!

Ideally, we provide a way for this to be auto-updated but that is a concern out of the scope of just fixing it.

@bors r+

@bors
Copy link
Contributor

bors commented Aug 16, 2024

📌 Commit b9fe718 has been approved by epage

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 16, 2024
@bors
Copy link
Contributor

bors commented Aug 16, 2024

⌛ Testing commit b9fe718 with merge cc74523...

@bors
Copy link
Contributor

bors commented Aug 16, 2024

☀️ Test successful - checks-actions
Approved by: epage
Pushing cc74523 to master...

@bors bors merged commit cc74523 into rust-lang:master Aug 16, 2024
22 checks passed
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 17, 2024
Update cargo

8 commits in 2f738d617c6ead388f899802dd1a7fd66858a691..ba8b39413c74d08494f94a7542fe79aa636e1661
2024-08-13 10:57:52 +0000 to 2024-08-16 22:48:57 +0000
- feat(update): Report when incompatible-rust-version packages are selected (rust-lang/cargo#14401)
- test: Migrate old_cargos to snapbox (rust-lang/cargo#14410)
- Correct diagnostic for `TomlDebugInfo` (rust-lang/cargo#14413)
- Add `--lockfile-path` flag (rust-lang/cargo#14326)
- test: Migrate some json tests to snapbox (rust-lang/cargo#14402)
- Implement base paths (RFC 3529) 1/n: path dep and patch support (rust-lang/cargo#14360)
- doc: convert comments to rustdoc in workspace (rust-lang/cargo#14397)
- Fix MSRV for workspace .package and .dependencies (rust-lang/cargo#14400)

r? ghost
@rustbot rustbot added this to the 1.82.0 milestone Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-manifest Area: Cargo.toml issues S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants