diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-12-18 21:37:38 +0100 | 
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-12-18 21:37:38 +0100 | 
| commit | d679764fb6b84a5cb72f6a9c9fefce4c6b41f16c (patch) | |
| tree | 926ed2d285303de0a64f833a46fee04744d0d7de /compiler/rustc_mir_dataflow/src/move_paths | |
| parent | 91c3c2040ce109d6e9ea00ffb8e8f69f3fd6d9bb (diff) | |
| download | rust-d679764fb6b84a5cb72f6a9c9fefce4c6b41f16c.tar.gz rust-d679764fb6b84a5cb72f6a9c9fefce4c6b41f16c.zip | |
Make `#[debug_format]` an attribute in `newtype_index`
This removes the `custom` format functionality as its only user was trivially migrated to using a normal format. If a new use case for a custom formatting impl pops up, you can add it back.
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/move_paths')
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/move_paths/mod.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/compiler/rustc_mir_dataflow/src/move_paths/mod.rs b/compiler/rustc_mir_dataflow/src/move_paths/mod.rs index b36e268cf8b..f286aff8420 100644 --- a/compiler/rustc_mir_dataflow/src/move_paths/mod.rs +++ b/compiler/rustc_mir_dataflow/src/move_paths/mod.rs @@ -14,8 +14,8 @@ use self::abs_domain::{AbstractElem, Lift}; mod abs_domain; rustc_index::newtype_index! { + #[debug_format = "mp{}"] pub struct MovePathIndex { - DEBUG_FORMAT = "mp{}" } } @@ -26,14 +26,14 @@ impl polonius_engine::Atom for MovePathIndex { } rustc_index::newtype_index! { + #[debug_format = "mo{}"] pub struct MoveOutIndex { - DEBUG_FORMAT = "mo{}" } } rustc_index::newtype_index! { + #[debug_format = "in{}"] pub struct InitIndex { - DEBUG_FORMAT = "in{}" } } | 
