rust/clippy_lints/src/transmute
bors b1e87922c1 Auto merge of #13200 - Jarcho:constant_no_typeck, r=Alexendoo
Don't use `LateContext` in the constant evaluator

This also changes the interface to require explicitly creating the context. `constant` could be added back in, but the others are probably not worth it.

A couple of bugs have been fixed. The wrong `TypeckResults` was used once when evaluating a constant, and the wrong `ParamEnv` was used by some callers (there wasn't a way to use the correct one).

changelog: none
2024-08-08 14:42:42 +00:00
..
crosspointer_transmute.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
eager_transmute.rs Use generic NonZero. 2024-05-08 21:37:55 +02:00
missing_transmute_annotations.rs Merge remote-tracking branch 'upstream/master' into rustup 2024-06-13 12:24:08 +02:00
mod.rs Replace in_constant with is_in_const_context. Use only the state in LateContext to avoid walking the HIR tree. 2024-08-07 09:57:27 -04:00
transmute_float_to_int.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
transmute_int_to_bool.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
transmute_int_to_char.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
transmute_int_to_float.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
transmute_int_to_non_zero.rs Merge commit '2efebd2f0c' into clippy-subtree-update 2024-05-21 10:39:30 -07:00
transmute_null_to_fn.rs Require ConstEvalCtxt to be constructed. 2024-08-08 10:37:10 -04:00
transmute_num_to_bytes.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
transmute_ptr_to_ptr.rs Don't suggest .cast_mut/.cast_const for types with erased lifetimes 2024-07-23 11:12:26 +00:00
transmute_ptr_to_ref.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
transmute_ref_to_ref.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
transmute_undefined_repr.rs don't inhibit random field reordering on repr(packed(1)) 2024-05-21 19:22:04 +02:00
transmutes_expressible_as_ptr_casts.rs Merge commit 'ca3b393750' into clippy-subtree-update 2024-04-18 17:48:52 +02:00
transmuting_null.rs Require ConstEvalCtxt to be constructed. 2024-08-08 10:37:10 -04:00
unsound_collection_transmute.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
useless_transmute.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00
utils.rs Stop exporting TypeckRootCtxt and FnCtxt. 2024-04-08 11:59:13 +00:00
wrong_transmute.rs Merge commit '9725c4a162' into clippy-subtree-update 2024-04-04 19:52:55 +02:00