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
The tracking issue for this feature is: [#123940](https://github.com/rust-lang/rust/issues/123940).
4
+
5
+
------------------------
6
+
7
+
Option `-Z debug-fmt-detail=val` controls verbosity of derived `Debug` implementations
8
+
and debug formatting in format strings (`{:?}`).
9
+
10
+
*`full` — `#[derive(Debug)]` prints types recursively. This is the default behavior.
11
+
12
+
*`shallow` — `#[derive(Debug)]` prints only the type name, or name of a variant of a fieldless enums. Details of the `Debug` implementation are not stable and may change in the future. Behavior of custom `fmt::Debug` implementations is not affected.
13
+
14
+
*`none` — `#[derive(Debug)]` does not print anything at all. `{:?}` in formatting strings has no effect.
15
+
This option may reduce size of binaries, and remove occurrences of type names in the binary that are not removed by striping symbols. However, it may also cause `panic!` and `assert!` messages to be incomplete.
0 commit comments