-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Document that Debug output of structures is unstable #62794
Copy link
Copy link
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Pretty printed structures for
cfg!(windows)have trailing commas, which is inconsistent with the debug output format documentation and output on non-windows platforms.$ rustc --version rustc 1.33.0 (2aa4c46cf 2019-02-28) $ cargo run Finished dev [unoptimized + debuginfo] target(s) in 0.01s Running `target/debug/t-debug_struct` [cfg!(windows) == false] Foo { bar: 1, baz: Some(1) } Foo { bar: 1, baz: Some( 1 ) }