Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Copy link
Contributor

DanielEScherzer commented Mar 7, 2026

r? ehuss
@rustbot label +A-docs

rustbot assigned ehuss Mar 7, 2026
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
ehuss reviewed Mar 10, 2026
@@ -1,3 +1,4 @@
//@ reference: items.extern.static.safety
Copy link
Contributor

ehuss Mar 10, 2026

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

Reviewers

ehuss ehuss left review comments

Assignees

ehuss

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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants