Skip to content

tests/ui/asm: add annotations for reference rules#152881

Open
DanielEScherzer wants to merge 1 commit intorust-lang:mainfrom
DanielEScherzer:test-references-const-eval
Open

tests/ui/asm: add annotations for reference rules#152881
DanielEScherzer wants to merge 1 commit intorust-lang:mainfrom
DanielEScherzer:test-references-const-eval

Conversation

@DanielEScherzer
Copy link
Contributor

r? lang-docs

@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 Feb 20, 2026
@rust-bors

This comment has been minimized.

@DanielEScherzer DanielEScherzer force-pushed the test-references-const-eval branch from 0df0c2a to 21c2d39 Compare February 23, 2026 15:54
@rustbot
Copy link
Collaborator

rustbot commented Feb 23, 2026

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.

Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

//@ needs-asm-support
//@ ignore-nvptx64
//@ ignore-spirv
//@ reference: attributes.codegen.naked.unsafe-attribute
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this really covers attributes.codegen.naked.unsafe-attribute.
I would expect tests for that rule to show:

#[naked] is not allowed, it must be unsafe. (I can't actually find a test for this.)
#[unsafe(naked)] naked_asm should return or diverge (though that may not be possible to test since otherwise it's just UB).

@@ -1,4 +1,6 @@
//@ needs-asm-support
//@ reference: asm.ts-args.syntax
Copy link
Contributor

Choose a reason for hiding this comment

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

This could also include asm.syntax since it is generally exercising the parsing rules there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants