diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-02-19 17:35:12 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-03-04 16:13:50 +0000 |
| commit | f2612daf58bfa2d747ddae02243a6ec1d6528992 (patch) | |
| tree | 7eca3b3b85234db06671fb1f5a7a7f019f3c0c1a /compiler/rustc_borrowck/src | |
| parent | aa2ae6b49113e82228a8112ae88d3905afc3ef9b (diff) | |
| download | rust-f2612daf58bfa2d747ddae02243a6ec1d6528992.tar.gz rust-f2612daf58bfa2d747ddae02243a6ec1d6528992.zip | |
Return a struct from `query intrinsic` to be able to add another field in the next commit
Diffstat (limited to 'compiler/rustc_borrowck/src')
| -rw-r--r-- | compiler/rustc_borrowck/src/type_check/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/type_check/mod.rs b/compiler/rustc_borrowck/src/type_check/mod.rs index 26e1e24d1a1..0f3e995a331 100644 --- a/compiler/rustc_borrowck/src/type_check/mod.rs +++ b/compiler/rustc_borrowck/src/type_check/mod.rs @@ -1667,7 +1667,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> { // (Eventually this should use const-generics, but those are not up for the task yet: // https://github.com/rust-lang/rust/issues/85229.) if let Some(name @ (sym::simd_shuffle | sym::simd_insert | sym::simd_extract)) = - self.tcx().intrinsic(def_id) + self.tcx().intrinsic(def_id).map(|i| i.name) { let idx = match name { sym::simd_shuffle => 2, |
