about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2023-07-05 19:26:52 -0300
committerSantiago Pastorino <spastorino@gmail.com>2023-07-07 13:47:33 -0300
commit42eccffce3e950e95d9e965d4dd58ecb44633d55 (patch)
tree010ba5a518c91addbc5d670ee753d3ca72359ed0 /tests
parent458ead41d621a6aacdf0d27169a4aa9d1ff54f98 (diff)
downloadrust-42eccffce3e950e95d9e965d4dd58ecb44633d55.tar.gz
rust-42eccffce3e950e95d9e965d4dd58ecb44633d55.zip
Add Uint ty to SMIR
Diffstat (limited to 'tests')
-rw-r--r--tests/ui-fulldeps/stable-mir/crate-info.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/ui-fulldeps/stable-mir/crate-info.rs b/tests/ui-fulldeps/stable-mir/crate-info.rs
index 8ac32d23c6f..29cc6e78d88 100644
--- a/tests/ui-fulldeps/stable-mir/crate-info.rs
+++ b/tests/ui-fulldeps/stable-mir/crate-info.rs
@@ -67,7 +67,7 @@ fn test_stable_mir(tcx: TyCtxt<'_>) {
 
     let types = get_item(tcx, &items, (DefKind::Fn, "types")).unwrap();
     let body = types.body();
-    assert_eq!(body.locals.len(), 4);
+    assert_eq!(body.locals.len(), 5);
     assert_matches!(
         body.locals[0].kind(),
         stable_mir::ty::TyKind::RigidTy(stable_mir::ty::RigidTy::Bool)
@@ -84,6 +84,10 @@ fn test_stable_mir(tcx: TyCtxt<'_>) {
         body.locals[3].kind(),
         stable_mir::ty::TyKind::RigidTy(stable_mir::ty::RigidTy::Int(stable_mir::ty::IntTy::I32))
     );
+    assert_matches!(
+        body.locals[4].kind(),
+        stable_mir::ty::TyKind::RigidTy(stable_mir::ty::RigidTy::Uint(stable_mir::ty::UintTy::U64))
+    );
 
     let drop = get_item(tcx, &items, (DefKind::Fn, "drop")).unwrap();
     let body = drop.body();
@@ -175,7 +179,7 @@ fn generate_input(path: &str) -> std::io::Result<()> {
         x_64.wrapping_add(y_64)
     }}
 
-    pub fn types(b: bool, _: char, _: i32) -> bool {{
+    pub fn types(b: bool, _: char, _: i32, _: u64) -> bool {{
         b
     }}