rust/compiler/rustc_const_eval/src/const_eval
Matthias Krüger 05b8bcc662
Rollup merge of #129199 - RalfJung:writes_through_immutable_pointer, r=compiler-errors
make writes_through_immutable_pointer a hard error

This turns the lint added in https://github.com/rust-lang/rust/pull/118324 into a hard error. This has been reported in cargo's future-compat reports since Rust 1.76 (released in February). Given that const_mut_refs is still unstable, it should be impossible to even hit this error on stable: we did accidentally stabilize some functions that can cause this error, but that got reverted in https://github.com/rust-lang/rust/pull/117905. Still, let's do a crater run just to be sure.

Given that this should only affect unstable code, I don't think it needs an FCP, but let's Cc ``@rust-lang/lang`` anyway -- any objection to making this unambiguous UB into a hard error during const-eval? This can be viewed as part of https://github.com/rust-lang/rust/pull/129195 which is already nominated for discussion.
2024-08-24 22:14:12 +02:00
..
dummy_machine.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
error.rs make writes_through_immutable_pointer a hard error 2024-08-17 14:49:35 +02:00
eval_queries.rs Remove struct_tail_no_normalization 2024-08-11 19:40:03 -04:00
fn_queries.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
machine.rs Rollup merge of #129199 - RalfJung:writes_through_immutable_pointer, r=compiler-errors 2024-08-24 22:14:12 +02:00
mod.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
valtrees.rs Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-errors 2024-08-14 00:56:53 +00:00