-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Decision: semantics of the #[expect] attribute #115980
Copy link
Copy link
Closed
Labels
F-lint_reasons`#![feature(lint_reasons)]``#![feature(lint_reasons)]`T-langRelevant to the language teamRelevant to the language teamdisposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Metadata
Metadata
Assignees
Labels
F-lint_reasons`#![feature(lint_reasons)]``#![feature(lint_reasons)]`T-langRelevant to the language teamRelevant to the language teamdisposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This issue is spun out from #54503 to serve as the decision issue for a specific question. The question is what the 'mental model' for the
expectattribute should be. Two proposed options:#[expect]attribute would cause the warning to be emitted. (src)@xFrednet created a list of use cases to help with the discussion of these two models; they found both models work equally well, except for use case 4 which would only be possible with the first model.