Skip to content

Turn lint_index from Option<u16> to u16 for LintExpectationId#156829

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Bryntet:levels_options_removal
May 22, 2026
Merged

Turn lint_index from Option<u16> to u16 for LintExpectationId#156829
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
Bryntet:levels_options_removal

Conversation

@Bryntet
Copy link
Copy Markdown
Contributor

@Bryntet Bryntet commented May 22, 2026

While doing lint attributes PR, I realised that the field lint_index didn't need to be Optional

(this PR is part of a series of PRs that will make the lint attrs PR more easily reviewable)

r? @nnethercote because you did #156596 recently

@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 May 22, 2026
@Bryntet Bryntet force-pushed the levels_options_removal branch from 5db6b28 to 4f12864 Compare May 22, 2026 13:21
@nnethercote
Copy link
Copy Markdown
Contributor

nice

@bors r+ rollup

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 22, 2026

📌 Commit 4f12864 has been approved by nnethercote

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 May 22, 2026
rust-bors Bot pushed a commit that referenced this pull request May 22, 2026
…uwer

Rollup of 10 pull requests

Successful merges:

 - #155509 ([Debug Info] Gracefully handle invalid `String`/`Vec`)
 - #156229 (Install additional LLVM DLL on Windows)
 - #152821 (Allow forbidden target features to be hard errors)
 - #156560 (compiler: fix duplicated "the" in two doc-comments)
 - #156725 (Remove stale RTN FIXME for assoc item constraint fallback)
 - #156803 (Fix reborrow ICE in MIR place lowering)
 - #156815 (rustfmt: format const trait impls to `const impl` for syntax transition)
 - #156818 (Privacy: enqueue type alias)
 - #156820 (delegation: visit body under elided-infer lifetime rib)
 - #156829 (Turn `lint_index` from `Option<u16>` to `u16` for LintExpectationId)
rust-bors Bot pushed a commit that referenced this pull request May 22, 2026
…uwer

Rollup of 10 pull requests

Successful merges:

 - #155509 ([Debug Info] Gracefully handle invalid `String`/`Vec`)
 - #156229 (Install additional LLVM DLL on Windows)
 - #152821 (Allow forbidden target features to be hard errors)
 - #156560 (compiler: fix duplicated "the" in two doc-comments)
 - #156725 (Remove stale RTN FIXME for assoc item constraint fallback)
 - #156803 (Fix reborrow ICE in MIR place lowering)
 - #156815 (rustfmt: format const trait impls to `const impl` for syntax transition)
 - #156818 (Privacy: enqueue type alias)
 - #156820 (delegation: visit body under elided-infer lifetime rib)
 - #156829 (Turn `lint_index` from `Option<u16>` to `u16` for LintExpectationId)
@rust-bors rust-bors Bot merged commit 29eaf53 into rust-lang:main May 22, 2026
11 checks passed
rust-timer added a commit that referenced this pull request May 22, 2026
Rollup merge of #156829 - Bryntet:levels_options_removal, r=nnethercote

Turn `lint_index` from `Option<u16>` to `u16` for LintExpectationId

While doing lint attributes PR, I realised that the field `lint_index` didn't need to be Optional

(this PR is part of a series of PRs that will make the lint attrs PR more easily reviewable)

r? @nnethercote because you did #156596 recently
@rustbot rustbot added this to the 1.98.0 milestone May 22, 2026
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.

3 participants