]> git.lizzy.rs Git - rust.git/commitdiff
Remove likely and unlikely from intrinsics shim
authorGary Guo <gary@garyguo.net>
Thu, 2 Jul 2020 19:00:27 +0000 (20:00 +0100)
committerGitHub <noreply@github.com>
Thu, 2 Jul 2020 19:00:27 +0000 (20:00 +0100)
They are now implemented in MIR interpreter by rust-lang/rust#73778

src/shims/intrinsics.rs

index 015d9edc11b709364d80581bd185bda4c4731dbe..68f67a1ed98d48ef0531abdc66fcc3c2e86ebd9d 100644 (file)
@@ -523,16 +523,6 @@ fn call_intrinsic(
                 let &[_] = check_arg_count(args)?;
             }
 
-            #[rustfmt::skip]
-            | "likely"
-            | "unlikely"
-            => {
-                // These just return their argument
-                let &[b] = check_arg_count(args)?;
-                let b = this.read_immediate(b)?;
-                this.write_immediate(*b, dest)?;
-            }
-
             "try" => return this.handle_try(args, dest, ret),
 
             name => throw_unsup_format!("unimplemented intrinsic: {}", name),