Skip to content

Fix multiline attributes handling in doctests #95590

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

Merged

Conversation

GuillaumeGomez
Copy link
Member

Fixes #55713.

I needed to have access to the unclosed_delims field in order to check that the attribute was completely parsed and didn't have missing parts, so I created a getter for it.

r? @notriddle

@rustbot rustbot added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Apr 2, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 2, 2022
@rust-log-analyzer

This comment has been minimized.

@GuillaumeGomez GuillaumeGomez force-pushed the multi-line-attr-handling-doctest branch from 560aa07 to 6fa5740 Compare April 2, 2022 16:44
@rust-log-analyzer

This comment has been minimized.

@GuillaumeGomez GuillaumeGomez force-pushed the multi-line-attr-handling-doctest branch from 6fa5740 to b135b02 Compare April 2, 2022 18:53
@rust-log-analyzer

This comment has been minimized.

@GuillaumeGomez GuillaumeGomez force-pushed the multi-line-attr-handling-doctest branch from b135b02 to 732ed2a Compare April 2, 2022 19:42
@GuillaumeGomez
Copy link
Member Author

Finally added all missing options for the UI test to work both locally and remotely. ^^'

@bors: r=notriddle

@bors
Copy link
Collaborator

bors commented Apr 2, 2022

📌 Commit 732ed2a has been approved by notriddle

@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 2, 2022
@bors
Copy link
Collaborator

bors commented Apr 2, 2022

⌛ Testing commit 732ed2a with merge c1550e3...

@bors
Copy link
Collaborator

bors commented Apr 3, 2022

☀️ Test successful - checks-actions
Approved by: notriddle
Pushing c1550e3 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 3, 2022
@bors bors merged commit c1550e3 into rust-lang:master Apr 3, 2022
@rustbot rustbot added this to the 1.61.0 milestone Apr 3, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c1550e3): comparison url.

Summary: This benchmark run did not return any relevant results.

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

@GuillaumeGomez GuillaumeGomez deleted the multi-line-attr-handling-doctest branch April 3, 2022 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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. 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.

multiline cfg_attr in a doctest outputs a corrupted snippet
7 participants