You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking issue for future-incompatibility lint const_eval_mutable_ptr_in_final_value #122153
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:
use std::cell::Cell;pubenumJsValue{Undefined,Object(Cell<bool>),}impl::std::ops::DropforJsValue{fndrop(&mutself){}}constUNDEFINED:&JsValue = &JsValue::Undefined;fnmain(){}
changed the title [-]Tracking Issue for CONST_EVAL_MUTABLE_PTR_IN_FINAL_VALUE[/-][+]Tracking issue for future-incompatibility lint `const_eval_mutable_ptr_in_final_value`[/+]on Sep 14, 2024
Activity
Auto merge of rust-lang#122204 - pnkfelix:downgrade-const-eval-dnagli…
[-]Tracking Issue for CONST_EVAL_MUTABLE_PTR_IN_FINAL_VALUE[/-][+]Tracking issue for future-incompatibility lint `const_eval_mutable_ptr_in_final_value`[/+]Auto merge of rust-lang#128543 - RalfJung:const-interior-mut, r=fee1-…
Auto merge of #128543 - RalfJung:const-interior-mut, r=fee1-dead
Auto merge of #128543 - RalfJung:const-interior-mut, r=fee1-dead