diff options
| author | Jiri Bobek <jiri.bobek@gmail.com> | 2024-07-26 15:51:46 +0200 |
|---|---|---|
| committer | Jiri Bobek <jiri.bobek@gmail.com> | 2024-11-17 21:49:10 +0100 |
| commit | 777003ae9fd4d81ada91f67f388d4f12c9ca220a (patch) | |
| tree | 2ce8e9305e60c0ddf132100cc683eac538ffbc70 /compiler/rustc_const_eval | |
| parent | f2a35426b6586178c44b27cedae182502092e898 (diff) | |
| download | rust-777003ae9fd4d81ada91f67f388d4f12c9ca220a.tar.gz rust-777003ae9fd4d81ada91f67f388d4f12c9ca220a.zip | |
Likely unlikely fix
Diffstat (limited to 'compiler/rustc_const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/intrinsics.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/intrinsics.rs b/compiler/rustc_const_eval/src/interpret/intrinsics.rs index c7a56a80e81..d89d73824aa 100644 --- a/compiler/rustc_const_eval/src/interpret/intrinsics.rs +++ b/compiler/rustc_const_eval/src/interpret/intrinsics.rs @@ -417,6 +417,9 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { // These just return their argument self.copy_op(&args[0], dest)?; } + sym::cold_path => { + // This is a no-op. The intrinsic is just a hint to the optimizer. + } sym::raw_eq => { let result = self.raw_eq_intrinsic(&args[0], &args[1])?; self.write_scalar(result, dest)?; |
