Skip to content

tests/ui/extern: add annotations for reference rules#153546

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

tests/ui/extern: add annotations for reference rules#153546
DanielEScherzer wants to merge 1 commit intorust-lang:mainfrom
DanielEScherzer:test-references-extern

Conversation

@DanielEScherzer
Copy link
Contributor

r? ehuss
@rustbot label +A-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. A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools labels Mar 7, 2026
@@ -1,3 +1,4 @@
//@ reference: items.extern.static.safety
Copy link
Contributor

Choose a reason for hiding this comment

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

Although this hits items.extern.static.safety, I think the primary thing this is trying to cover is that a static initializer cannot access extern statics. That is defined in const-eval.const-expr.path-static so I would add that here.

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

Labels

A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools 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