Skip to content

Add a regression test for trailing attributes in doctests - #162386

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
JonathanBrouwer:doctest-attribute
Sep 7, 2026
Merged

Add a regression test for trailing attributes in doctests#162386
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
JonathanBrouwer:doctest-attribute

Conversation

@JonathanBrouwer

@JonathanBrouwer JonathanBrouwer commented Sep 6, 2026

Copy link
Copy Markdown
Member

Adds a regression test for #162131, #162129, #162349, and #162352

It seems likely this breakage is going to be accepted, so let's add a test in nightly so we can at least track this behavior in the feature

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Sep 6, 2026
@rustbot

rustbot commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

r? @lolbinarycat

rustbot has assigned @lolbinarycat.
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: rustdoc
  • rustdoc expanded to 8 candidates
  • Random selection from GuillaumeGomez, lolbinarycat, notriddle

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@mejrs

mejrs commented Sep 7, 2026

Copy link
Copy Markdown
Member

#162352 #162352 have some more variants of this, can you add these as well?

@rust-log-analyzer

This comment has been minimized.

@JonathanBrouwer

JonathanBrouwer commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

I will fight CI & include the testcases mejrs linked
@rustbot author

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

@mejrs mejrs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@rust-bors

rust-bors Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

📌 Commit e9c8a6d has been approved by mejrs

It is now in the queue for this repository.

@rust-bors rust-bors Bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Sep 7, 2026
@rust-bors rust-bors Bot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Sep 7, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
…uwer

Rollup of 11 pull requests

Successful merges:

 - #158153 (avoid spurious lifetime diagnostic in async generic case)
 - #160197 (Restrict LLVM inline asm location cookie usage. Fixes #150451)
 - #162413 (Unconditionally invalidate the library when the compiler changes)
 - #162294 (Reflection refactor ptrs)
 - #162354 (Make comptime functions ineligible for coverage)
 - #162379 (add test ensuring we refuse to const-eval the body of a rustc_do_not_const_check function)
 - #162386 (Add a regression test for trailing attributes in doctests)
 - #162410 (std: remove exceed whitespace in docs)
 - #162420 (mir_build: Don't pass a redundant `scrutinee_span` to some MIR-build methods)
 - #162430 (rustc-dev-guide subtree update)
 - #162431 (add next-solver FIXMEs)
@rust-bors
rust-bors Bot merged commit 44d8afc into rust-lang:main Sep 7, 2026
13 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Sep 7, 2026
rust-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
Rollup merge of #162386 - JonathanBrouwer:doctest-attribute, r=mejrs

Add a regression test for trailing attributes in doctests

Adds a regression test for #162131, #162129, #162349, and #162352

It seems likely this breakage is going to be accepted, so let's add a test in nightly so we can at least track this behavior in the feature
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-rustdoc Relevant to the rustdoc 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