Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Replace FIXMEs suggesting removal of box with a NOTE - #166824

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
hardikxk:ast/box-removal
Dec 4, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
hardikxk:ast/box-removal

Conversation

@hardikxk

@hardikxk hardikxk commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Remove FIXMEs that mentioned the removal of box keyword for starting
expressions. The box keyword is still reserved for potential future use
even though it is no longer supported.

@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 Nov 30, 2026
@rustbot

rustbot commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

r? @petrochenkov

rustbot has assigned @petrochenkov.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 79 candidates
  • Random selection from 23 candidates

@hanna-kruppe hanna-kruppe added the needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. label Nov 30, 2026
@Jules-Bertholet

Copy link
Copy Markdown
Contributor

Could we not consider un-keywordifying box entirely and making it a valid identifier? In which case it could start an expression once again

@petrochenkov

Copy link
Copy Markdown
Contributor

I'm not sure what are the language plans for box expressions, if they are going to be reintroduced in the future in some form, then it's better to just keep things as is.

@petrochenkov petrochenkov added S-waiting-on-t-lang Status: Awaiting decision from T-lang I-lang-nominated Nominated for discussion during a lang team meeting. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 1, 2026
@traviscross traviscross added the P-lang-drag-1 Lang team prioritization drag level 1. https://rust-lang.zulipchat.com/#narrow/channel/410516-t-lang label Dec 2, 2026
@clarfonthey clarfonthey changed the title parser/ast: Remove Box as a keyword that can start an expression parser/ast: Remove box as a keyword that can start an expression Dec 2, 2026
@traviscross traviscross added I-lang-radar Items that are on lang's radar and will need eventual work or consideration. and removed I-lang-nominated Nominated for discussion during a lang team meeting. P-lang-drag-1 Lang team prioritization drag level 1. https://rust-lang.zulipchat.com/#narrow/channel/410516-t-lang labels Dec 2, 2026
@tmandry

tmandry commented Dec 2, 2026

Copy link
Copy Markdown
Member

We discussed this in today's lang meeting. If this is motivated purely by the FIXME in the compiler, we're not motivated to cede this space in the language right away. If there are use cases this unblocks, we should consider it for the future.

Please re-nominate if we missed something.

@rustbot label -I-lang-nominated

@hardikxk

hardikxk commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

I did work on removing box entirely as a keyword and have it locally (still in progress as I haven't removed the diagnostic notes for it yet).
If we still want to reserve that spot then these changes can be pushed back a bit or delayed? Although we would still have box lying around if we wouldn't want to support it in future.

@petrochenkov

Copy link
Copy Markdown
Contributor

@hardikxk
Could you remove the FIXMEs and instead put a note that box is still reserved there for a future use?
@rustbot author

@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Dec 3, 2026
@rustbot

rustbot commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@hardikxk

hardikxk commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

@hardikxk Could you remove the FIXMEs and instead put a note that box is still reserved there for a future use?

Sure, I'll do that instead!

Remove FIXMEs that mentioned the removal of `box` keyword for starting
epressions. The `box` keyword is still reserved for potential future use
even though it is no longer supported.
@rustbot

rustbot commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@hardikxk hardikxk changed the title parser/ast: Remove box as a keyword that can start an expression Replace FIXMEs suggesting removal of box with a NOTE Dec 3, 2026
@hardikxk

hardikxk commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 3, 2026
@petrochenkov

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@rust-bors

rust-bors Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

📋 This PR cannot be approved because it currently has the following labels: needs-fcp, S-waiting-on-t-lang.

Hint: If these labels are no longer accurate, you can remove them with @rustbot label -needs-fcp -S-waiting-on-t-lang.

@petrochenkov petrochenkov removed needs-fcp This change is insta-stable, or significant enough to need a team FCP to proceed. S-waiting-on-t-lang Status: Awaiting decision from T-lang labels Dec 3, 2026
@petrochenkov

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@rust-bors

rust-bors Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

🌟 Commit 6f7c650 has been approved by petrochenkov

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Dec 3, 2026
rust-bors Bot pushed a commit that referenced this pull request Dec 4, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #166944 (stdarch subtree update)
 - #166689 (Show fn spans for `lint::c_buffer_length`)
 - #166983 (Use `InterpResult` instead of `InterpErrorKind`)
 - #167003 (remove `CodegenUnitNameBuilder`)
 - #167016 (std: Enable flock-based file locking on DragonFly BSD)
 - #162295 (Recover shorthand struct literals in if conditions)
 - #166597 (explicitly disable vector-packed-decimal feature in s390x naked funct…)
 - #166762 (Fix Location::strictly_dominates)
 - #166824 (Replace FIXMEs suggesting removal of `box` with a NOTE)
 - #166958 (Skip bodyless intrinsics as mono item roots)
 - #166960 ([tiny] Avoid ICE in suggestion)
 - #167005 (Clean up WrongNamespace handling in intra-doc link resolution)
@rust-bors
rust-bors Bot merged commit 830f57c into rust-lang:main Dec 4, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Dec 4, 2026
rust-bors Bot pushed a commit that referenced this pull request Dec 4, 2026
Rollup merge of #166824 - hardikxk:ast/box-removal, r=petrochenkov

Replace FIXMEs suggesting removal of `box` with a NOTE

Remove FIXMEs that mentioned the removal of `box` keyword for starting
expressions. The `box` keyword is still reserved for potential future use
even though it is no longer supported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

I-lang-radar Items that are on lang's radar and will need eventual work or consideration. 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.

7 participants