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(toml): Remove unstable rejrected frontmatter syntax for cargo script #13861

Merged
merged 2 commits into from
May 6, 2024

Conversation

epage
Copy link
Contributor

@epage epage commented May 4, 2024

What does this PR try to resolve?

With rust-lang/rfcs#3503 approved, we no longer need to allow easy, high fidelity experiments with alternative cargo script syntax.

How should we test and review this PR?

Additional information

We still need to improve the experience for users writing bad syntax but that can come later.

@rustbot
Copy link
Collaborator

rustbot commented May 4, 2024

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 4, 2024
@ehuss
Copy link
Contributor

ehuss commented May 6, 2024

Thanks!

@bors r+

@bors
Copy link
Contributor

bors commented May 6, 2024

📌 Commit 229385b has been approved by ehuss

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 May 6, 2024
@bors
Copy link
Contributor

bors commented May 6, 2024

⌛ Testing commit 229385b with merge cfbc4b7...

@bors
Copy link
Contributor

bors commented May 6, 2024

☀️ Test successful - checks-actions
Approved by: ehuss
Pushing cfbc4b7 to master...

@bors bors merged commit cfbc4b7 into rust-lang:master May 6, 2024
21 checks passed
bors added a commit to rust-lang-ci/rust that referenced this pull request May 8, 2024
Update cargo

10 commits in 05364cb2f61a2c2b091e061c1f42b207dfb5f81f..0ca60e940821c311c9b25a6423b59ccdbcea218f
2024-05-03 16:48:59 +0000 to 2024-05-08 01:54:25 +0000
- chore: Add cargo-lints to unstable docs (rust-lang/cargo#13881)
- test: clean up unnecessary uses of `match_exact` (rust-lang/cargo#13879)
- docs(ref): Correct heading level of `[lints]` documentation (rust-lang/cargo#13878)
- Fix: Build only the specified artifact library when multiple types are available (rust-lang/cargo#13842)
- docs: add missing CARGO_MAKEFLAGS env for plugins (rust-lang/cargo#13872)
- Add more documentation to `cargo::rustc-check-cfg` (rust-lang/cargo#13869)
- fix(toml): Remove unstable rejrected frontmatter syntax for cargo script (rust-lang/cargo#13861)
- Update UI example code in contributor guide (rust-lang/cargo#13864)
- style(test): Remove check-cfg warning (rust-lang/cargo#13865)
- Fix global_cache_tracker::max_download_size test flakiness (rust-lang/cargo#13860)

r? ghost
@rustbot rustbot added this to the 1.80.0 milestone May 8, 2024
@Eh2406
Copy link
Contributor

Eh2406 commented May 9, 2024

@epage looks like the documentation did not get updated for this change

bors added a commit that referenced this pull request May 9, 2024
Fix docs for unstable script feature

### What does this PR try to resolve?
* [Recent change](#13861) to accepted syntax in the script feature is not reflected in the documentation.

### How should we test and review this PR?
* Verify that this documentation is consistent with syntax expected.

### Additional information
N/A
@epage epage deleted the frontmatter branch May 17, 2024 19:30
github-merge-queue bot pushed a commit that referenced this pull request Nov 15, 2024
### What does this PR try to resolve?

We removed rejected syntax in #13861 haven't update frontmatter parsing
to what [RFC
3503](https://rust-lang.github.io/rfcs/3503-frontmatter.html#reference-level-explanation)
says.

This adds tests and fixes various cases to ensure we correctly detect
the frontmatter and the infostring.

This is part of #12207

### How should we test and review this PR?

### Additional information
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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