rust/compiler/rustc_const_eval/src/interpret
Matthias Krüger ab2dd3aeb9
Rollup merge of #127950 - nnethercote:rustfmt-skip-on-use-decls, r=cuviper
Use `#[rustfmt::skip]` on some `use` groups to prevent reordering.

`use` declarations will be reformatted in #125443. Very rarely, there is a desire to force a group of `use` declarations together in a way that auto-formatting will break up. E.g. when you want a single comment to apply to a group. #126776 dealt with all of these in the codebase, ensuring that no comments intended for multiple `use` declarations would end up in the wrong place. But some people were unhappy with it.

This commit uses `#[rustfmt::skip]` to create these custom `use` groups in an idiomatic way for a few of the cases changed in #126776. This works because rustfmt treats any `use` item annotated with `#[rustfmt::skip]` as a barrier and won't reorder other `use` items around it.

r? `@cuviper`
2024-07-26 00:57:21 +02:00
..
cast.rs interpret: add sanity check in dyn upcast to double-check what codegen does 2024-07-18 11:41:10 +02:00
discriminant.rs chore: remove duplicate words 2024-07-02 11:25:31 +08:00
eval_context.rs interpret: add sanity check in dyn upcast to double-check what codegen does 2024-07-18 11:41:10 +02:00
intern.rs rename CompileTimeInterpreter -> CompileTimeMachine, CompileTimeEvalContext -> CompileTimeInterpCx 2024-06-13 20:30:11 +02:00
intrinsics.rs offset_from intrinsic: always allow pointers to point to the same address 2024-07-06 17:14:26 +02:00
machine.rs make StackPop field names less confusing 2024-07-07 18:16:38 +02:00
memory.rs Miri function identity hack: account for possible inlining 2024-07-02 21:05:30 +02:00
mod.rs make StackPop field names less confusing 2024-07-07 18:16:38 +02:00
operand.rs ScalarInt: size mismatches are a bug, do not delay the panic 2024-06-10 13:43:16 +02:00
operator.rs More GVN for PtrMetadata 2024-06-20 22:16:59 -07:00
place.rs Add cache for allocate_str 2024-07-14 22:11:46 +08:00
projection.rs don't ICE when encountering an extern type field during validation 2024-06-22 17:39:01 +02:00
step.rs Refactor & fixup interpreter implementation of tail calls 2024-07-07 18:16:38 +02:00
terminator.rs interpret: add sanity check in dyn upcast to double-check what codegen does 2024-07-18 11:41:10 +02:00
traits.rs interpret: add sanity check in dyn upcast to double-check what codegen does 2024-07-18 11:41:10 +02:00
util.rs Rename InstanceDef -> InstanceKind 2024-06-16 21:35:21 -04:00
validity.rs Use #[rustfmt::skip] on some use groups to prevent reordering. 2024-07-19 13:26:48 +10:00
visitor.rs interpret: refactor dyn trait handling 2024-06-10 17:28:52 +02:00