Tracking issue for future-incompatibility lint const_eval_mutable_ptr_in_final_value
#122153
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-future-incompatibility
Category: Future-incompatibility lints
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
This is a tracking issue for the
CONST_EVAL_MUTABLE_PTR_IN_FINAL_VALUE
lint, which is being added in #122204. The lint detects cases where a const expression evaluates to a value that holds a pointer to mutable state, which is undefined behavior and may be rejected by a future version of the compiler.Example
This lint will trigger for code like this:
Cc #121610
The text was updated successfully, but these errors were encountered: