File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -159,11 +159,8 @@ impl core::fmt::Display for ErrorKind {
159
159
/// look very different. (And potentially not practically readable by a human.)
160
160
///
161
161
/// An `Hir`'s `fmt::Debug` implementation currently does not use constant
162
- /// stack space. The default implementation will also suppress some details
163
- /// (such as the `Properties` inlined into every `Hir` value to make it less
164
- /// noisy), but using the "[alternate]" format option will show everything.
165
- ///
166
- /// [alternate]: https://doc.rust-lang.org/std/fmt/struct.Formatter.html#method.alternate
162
+ /// stack space. The implementation will also suppress some details (such as
163
+ /// the `Properties` inlined into every `Hir` value to make it less noisy).
167
164
#[ derive( Clone , Eq , PartialEq ) ]
168
165
pub struct Hir {
169
166
/// The underlying HIR kind.
@@ -486,14 +483,7 @@ impl HirKind {
486
483
487
484
impl core:: fmt:: Debug for Hir {
488
485
fn fmt ( & self , f : & mut core:: fmt:: Formatter < ' _ > ) -> core:: fmt:: Result {
489
- if f. alternate ( ) {
490
- f. debug_struct ( "Hir" )
491
- . field ( "kind" , & self . kind )
492
- . field ( "props" , & self . props )
493
- . finish ( )
494
- } else {
495
- self . kind . fmt ( f)
496
- }
486
+ self . kind . fmt ( f)
497
487
}
498
488
}
499
489
You can’t perform that action at this time.
0 commit comments