Skip to content

Commit 271cf97

Browse files
authored
Fix whitespace, change "value" to "name_val"
"name_val" seem more consistent with the variable naming in the surrounding code.
1 parent d3d82b0 commit 271cf97

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_mir/interpret/intrinsics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> InterpretCx<'a, 'mir, 'tcx, M>
7878
let id_val = Scalar::from_uint(type_id, dest.layout.size);
7979
self.write_scalar(id_val, dest)?;
8080
}
81-
81+
8282
"type_name" => {
8383
let ty = substs.type_at(0);
8484
let ty_name = ty.to_string();
85-
let value = self.str_to_immediate(&ty_name)?;
86-
self.write_immediate(value, dest)?;
87-
}
85+
let name_val = self.str_to_immediate(&ty_name)?;
86+
self.write_immediate(name_val, dest)?;
87+
}
8888
| "ctpop"
8989
| "cttz"
9090
| "cttz_nonzero"

0 commit comments

Comments
 (0)