We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7525a38 commit 513e340Copy full SHA for 513e340
crates/hir-ty/src/mir/eval.rs
@@ -1187,7 +1187,7 @@ impl Evaluator<'_> {
1187
fn exec_intrinsic(
1188
&self,
1189
as_str: &str,
1190
- _arg_bytes: impl Iterator<Item = Vec<u8>>,
+ mut arg_bytes: impl Iterator<Item = Vec<u8>>,
1191
generic_args: Substitution,
1192
locals: &Locals<'_>,
1193
) -> Result<Vec<u8>> {
@@ -1202,6 +1202,12 @@ impl Evaluator<'_> {
1202
None => return Err(MirEvalError::TypeError("size_of arg is unsized")),
1203
}
1204
1205
+ "transmute" => {
1206
+ let Some(arg) = arg_bytes.next() else {
1207
+ return Err(MirEvalError::TypeError("trasmute arg is not provided"));
1208
+ };
1209
+ Ok(arg)
1210
+ }
1211
_ => not_supported!("unknown intrinsic {as_str}"),
1212
1213
0 commit comments