Suppress ty::Float in MIR comments of ty::Const
Already covered by MIR constant comments
This commit is contained in:
parent
5fff3824bc
commit
d97bbd3a21
2 changed files with 1 additions and 4 deletions
|
|
@ -406,7 +406,7 @@ impl Visitor<'tcx> for ExtraComments<'tcx> {
|
|||
self.super_const(constant);
|
||||
let ty::Const { ty, val, .. } = constant;
|
||||
match ty.kind {
|
||||
ty::Int(_) | ty::Uint(_) | ty::Bool | ty::Char => {}
|
||||
ty::Int(_) | ty::Uint(_) | ty::Bool | ty::Char | ty::Float(_) => {}
|
||||
// Unit type
|
||||
ty::Tuple(tys) if tys.is_empty() => {}
|
||||
ty::FnDef(..) => {}
|
||||
|
|
|
|||
|
|
@ -12,9 +12,6 @@
|
|||
- _0 = Baz { x: move _2, y: const 0f32, z: const false }; // scope 0 at $DIR/deaggregator_test.rs:9:5: 9:35
|
||||
+ (_0.0: usize) = move _2; // scope 0 at $DIR/deaggregator_test.rs:9:5: 9:35
|
||||
+ (_0.1: f32) = const 0f32; // scope 0 at $DIR/deaggregator_test.rs:9:5: 9:35
|
||||
// ty::Const
|
||||
// + ty: f32
|
||||
// + val: Value(Scalar(0x00000000))
|
||||
// mir::Constant
|
||||
// + span: $DIR/deaggregator_test.rs:9:20: 9:23
|
||||
// + literal: Const { ty: f32, val: Value(Scalar(0x00000000)) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue