about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/debuginfo
diff options
context:
space:
mode:
authorAndreas Liljeqvist <bonega@gmail.com>2021-08-22 21:46:03 +0200
committerAndreas Liljeqvist <bonega@gmail.com>2021-08-22 21:46:03 +0200
commit5a501f73ff753109c7e73d4981fe011633bd8e84 (patch)
tree4e687cca63f5373b65fc93056107eafcb2756e86 /compiler/rustc_codegen_ssa/src/debuginfo
parent7481e6d1a415853a96dcec11a052caaa02859b5a (diff)
downloadrust-5a501f73ff753109c7e73d4981fe011633bd8e84.tar.gz
rust-5a501f73ff753109c7e73d4981fe011633bd8e84.zip
Use custom wrap-around type instead of Range
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
-rw-r--r--compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
index 81e905b1b5f..f0b32c96309 100644
--- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
+++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
@@ -406,11 +406,11 @@ fn push_debuginfo_type_name<'tcx>(
             let dataful_discriminant_range =
                 &dataful_variant_layout.largest_niche.as_ref().unwrap().scalar.valid_range;
 
-            let min = dataful_discriminant_range.start();
-            let min = tag.value.size(&tcx).truncate(*min);
+            let min = dataful_discriminant_range.start;
+            let min = tag.value.size(&tcx).truncate(min);
 
-            let max = dataful_discriminant_range.end();
-            let max = tag.value.size(&tcx).truncate(*max);
+            let max = dataful_discriminant_range.end;
+            let max = tag.value.size(&tcx).truncate(max);
 
             let dataful_variant_name = def.variants[*dataful_variant].ident.as_str();