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

Pull some tuple variant fields out into their own struct #109723

Merged
merged 5 commits into from
Apr 4, 2023

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Mar 29, 2023

This is groundwork for adding more fields to those new structs, but I believe the change to be useful on its own.

r? @Nilstrieb but feel free to reroll for compiler

@rustbot
Copy link
Collaborator

rustbot commented Mar 29, 2023

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Nilstrieb (or someone else) soon.

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 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 Mar 29, 2023
@rustbot
Copy link
Collaborator

rustbot commented Mar 29, 2023

Some changes occurred in src/tools/rustfmt

cc @rust-lang/rustfmt

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

compiler/rustc_ast/src/ast.rs Show resolved Hide resolved
compiler/rustc_ast/src/ast.rs Show resolved Hide resolved
compiler/rustc_ast/src/ast.rs Show resolved Hide resolved
Copy link
Member

@Noratrieb Noratrieb left a comment

Choose a reason for hiding this comment

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

r=me when the static docs are back in and with or without the ast_pretty change

ast::ItemKind::Const(def, ty, body) => {
self.print_item_const(item.ident, None, ty, body.as_deref(), &item.vis, *def);
ast::ItemKind::Const(box ast::ConstItem { defaultness, ty, expr }) => {
self.print_item_const(
Copy link
Member

Choose a reason for hiding this comment

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

print_item_const could now take an ast::ConstItem as an 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.

Unfortunately this doesn't work yet. We'll need to merge the shared parts of const items and static items first.

@Noratrieb Noratrieb added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 2, 2023
@oli-obk
Copy link
Contributor Author

oli-obk commented Apr 4, 2023

@bors r=Nilstrieb

@bors
Copy link
Contributor

bors commented Apr 4, 2023

📌 Commit 373807a has been approved by Nilstrieb

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 4, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 4, 2023
…mpiler-errors

Rollup of 9 pull requests

Successful merges:

 - rust-lang#109723 (Pull some tuple variant fields out into their own struct)
 - rust-lang#109838 (Fix `non_exhaustive_omitted_patterns` lint span)
 - rust-lang#109901 (Enforce VarDebugInfo::Place in MIR validation.)
 - rust-lang#109913 (Doc-comment  `IndexVec::from_elem` and use it in a few more places)
 - rust-lang#109914 (Emit feature error for parenthesized generics in associated type bounds)
 - rust-lang#109919 (rustdoc: escape GAT args in more cases)
 - rust-lang#109937 (Don't collect return-position impl traits for documentation)
 - rust-lang#109938 (Move a const-prop-lint specific hack from mir interpret to const-prop-lint and make it fallible)
 - rust-lang#109940 (Add regression test for rust-lang#93911)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit ec22850 into rust-lang:master Apr 4, 2023
@rustbot rustbot added this to the 1.70.0 milestone Apr 4, 2023
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.

5 participants