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

Minor AST cleanups #124324

Merged
merged 6 commits into from
Apr 25, 2024
Merged

Minor AST cleanups #124324

merged 6 commits into from
Apr 25, 2024

Conversation

nnethercote
Copy link
Contributor

It's unreachable, because AST JSON printing support was removed some
time ago.
`MetaItem::value_str` is good enough. And this makes
`MetaItem::value_str` more like `MetaItem::meta_item_list` and
`name_value_literal`.
It's a highly misleading name, because it's completely different to
`MetaItem::name_value_literal`. Specifically, it doesn't match
`MetaItemKind::NameValue` (e.g. `#[foo = 3]`), it matches
`MetaItemKind::List` (e.g. `#[foo(3)]`).
This makes it clearer what is actually used outside of this crate.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 24, 2024
This clarifies something that has puzzled me for some time.
@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 25, 2024

📌 Commit 2ae0765 has been approved by estebank

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 Apr 25, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Apr 25, 2024
…estebank

Minor AST cleanups

r? `@estebank`
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 25, 2024
…iaskrgr

Rollup of 4 pull requests

Successful merges:

 - rust-lang#124257 (Rewrite the `no-input-file.stderr` test in Rust and support diff)
 - rust-lang#124324 (Minor AST cleanups)
 - rust-lang#124327 (CI: implement job skipping in Python matrix calculation)
 - rust-lang#124345 (Enable `--check-cfg` by default in UI tests)

r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 25, 2024
…iaskrgr

Rollup of 3 pull requests

Successful merges:

 - rust-lang#124257 (Rewrite the `no-input-file.stderr` test in Rust and support diff)
 - rust-lang#124324 (Minor AST cleanups)
 - rust-lang#124327 (CI: implement job skipping in Python matrix calculation)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit fc6070c into rust-lang:master Apr 25, 2024
10 checks passed
@rustbot rustbot added this to the 1.79.0 milestone Apr 25, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Apr 25, 2024
Rollup merge of rust-lang#124324 - nnethercote:minor-ast-cleanups, r=estebank

Minor AST cleanups

r? ``@estebank``
@nnethercote nnethercote deleted the minor-ast-cleanups branch April 25, 2024 21:53
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. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants