Skip to main content

rustc_hir_analysis/check/
intrinsic.rs

1//! Type-checking for the `#[rustc_intrinsic]` intrinsics that the compiler exposes.
2
3use rustc_errors::DiagMessage;
4use rustc_hir as hir;
5use rustc_hir::attrs::lang_items::LangItem;
6use rustc_middle::traits::{ObligationCause, ObligationCauseCode};
7use rustc_middle::ty::{self, Const, Ty, TyCtxt};
8use rustc_span::def_id::LocalDefId;
9use rustc_span::{Span, Symbol, sym};
10
11use crate::check::check_function_signature;
12use crate::diagnostics::{UnrecognizedIntrinsicFunction, WrongNumberOfGenericArgumentsToIntrinsic};
13
14fn equate_intrinsic_type<'tcx>(
15    tcx: TyCtxt<'tcx>,
16    span: Span,
17    def_id: LocalDefId,
18    n_tps: usize,
19    n_lts: usize,
20    n_cts: usize,
21    sig: ty::PolyFnSig<'tcx>,
22) {
23    let (generics, span) = match tcx.hir_node_by_def_id(def_id) {
24        hir::Node::Item(hir::Item { kind: hir::ItemKind::Fn { generics, .. }, .. }) => {
25            (tcx.generics_of(def_id), generics.span)
26        }
27        _ => tcx.dcx().span_bug(span, "intrinsic must be a function"),
28    };
29    let own_counts = generics.own_counts();
30
31    let gen_count_ok = |found: usize, expected: usize, descr: &str| -> bool {
32        if found != expected {
33            tcx.dcx().emit_err(WrongNumberOfGenericArgumentsToIntrinsic {
34                span,
35                found,
36                expected,
37                descr,
38            });
39            false
40        } else {
41            true
42        }
43    };
44
45    // the host effect param should be invisible as it shouldn't matter
46    // whether effects is enabled for the intrinsic provider crate.
47    if gen_count_ok(own_counts.lifetimes, n_lts, "lifetime")
48        && gen_count_ok(own_counts.types, n_tps, "type")
49        && gen_count_ok(own_counts.consts, n_cts, "const")
50    {
51        let _ = check_function_signature(
52            tcx,
53            ObligationCause::new(span, def_id, ObligationCauseCode::IntrinsicType),
54            def_id.into(),
55            sig,
56        );
57    }
58}
59
60/// Returns the unsafety of the given intrinsic.
61fn intrinsic_operation_unsafety(tcx: TyCtxt<'_>, intrinsic_id: LocalDefId) -> hir::Safety {
62    let is_in_list = match tcx.item_name(intrinsic_id) {
63        // When adding a new intrinsic to this list,
64        // it's usually worth updating that intrinsic's documentation
65        // to note that it's safe to call, since
66        // safe extern fns are otherwise unprecedented.
67
68        // tidy-alphabetical-start
69        | sym::abort
70        | sym::add_with_overflow
71        | sym::aggregate_raw_ptr
72        | sym::align_of
73        | sym::amdgpu_dispatch_ptr
74        | sym::assert_inhabited
75        | sym::assert_mem_uninitialized_valid
76        | sym::assert_zero_valid
77        | sym::autodiff
78        | sym::bitreverse
79        | sym::black_box
80        | sym::breakpoint
81        | sym::bswap
82        | sym::caller_location
83        | sym::carrying_mul_add
84        | sym::carryless_mul
85        | sym::ceilf16
86        | sym::ceilf32
87        | sym::ceilf64
88        | sym::ceilf128
89        | sym::cold_path
90        | sym::const_eval_select
91        | sym::contract_check_ensures
92        | sym::contract_check_requires
93        | sym::contract_checks
94        | sym::copysignf16
95        | sym::copysignf32
96        | sym::copysignf64
97        | sym::copysignf128
98        | sym::cosf16
99        | sym::cosf32
100        | sym::cosf64
101        | sym::cosf128
102        | sym::ctlz
103        | sym::ctpop
104        | sym::cttz
105        | sym::discriminant_value
106        | sym::exp2f16
107        | sym::exp2f32
108        | sym::exp2f64
109        | sym::exp2f128
110        | sym::expf16
111        | sym::expf32
112        | sym::expf64
113        | sym::expf128
114        | sym::fabs
115        | sym::fadd_algebraic
116        | sym::fdiv_algebraic
117        | sym::field_offset
118        | sym::field_representing_type_actual_type_id
119        | sym::field_representing_type_name
120        | sym::field_representing_type_offset
121        | sym::floorf16
122        | sym::floorf32
123        | sym::floorf64
124        | sym::floorf128
125        | sym::fmaf16
126        | sym::fmaf32
127        | sym::fmaf64
128        | sym::fmaf128
129        | sym::fmul_algebraic
130        | sym::fmuladdf16
131        | sym::fmuladdf32
132        | sym::fmuladdf64
133        | sym::fmuladdf128
134        | sym::forget
135        | sym::frem_algebraic
136        | sym::fsub_algebraic
137        | sym::gpu_launch_sized_workgroup_mem
138        | sym::is_val_statically_known
139        | sym::log2f16
140        | sym::log2f32
141        | sym::log2f64
142        | sym::log2f128
143        | sym::log10f16
144        | sym::log10f32
145        | sym::log10f64
146        | sym::log10f128
147        | sym::logf16
148        | sym::logf32
149        | sym::logf64
150        | sym::logf128
151        | sym::maximum_number_nsz_f16
152        | sym::maximum_number_nsz_f32
153        | sym::maximum_number_nsz_f64
154        | sym::maximum_number_nsz_f128
155        | sym::maximumf16
156        | sym::maximumf32
157        | sym::maximumf64
158        | sym::maximumf128
159        | sym::minimum_number_nsz_f16
160        | sym::minimum_number_nsz_f32
161        | sym::minimum_number_nsz_f64
162        | sym::minimum_number_nsz_f128
163        | sym::minimumf16
164        | sym::minimumf32
165        | sym::minimumf64
166        | sym::minimumf128
167        | sym::mul_with_overflow
168        | sym::needs_drop
169        | sym::non_exhaustive
170        | sym::offload
171        | sym::offset_of
172        | sym::overflow_checks
173        | sym::powf16
174        | sym::powf32
175        | sym::powf64
176        | sym::powf128
177        | sym::powif16
178        | sym::powif32
179        | sym::powif64
180        | sym::powif128
181        | sym::prefetch_read_data
182        | sym::prefetch_read_instruction
183        | sym::prefetch_write_data
184        | sym::prefetch_write_instruction
185        | sym::ptr_guaranteed_cmp
186        | sym::ptr_mask
187        | sym::ptr_metadata
188        | sym::return_address
189        | sym::rotate_left
190        | sym::rotate_right
191        | sym::round_ties_even_f16
192        | sym::round_ties_even_f32
193        | sym::round_ties_even_f64
194        | sym::round_ties_even_f128
195        | sym::roundf16
196        | sym::roundf32
197        | sym::roundf64
198        | sym::roundf128
199        | sym::rustc_peek
200        | sym::saturating_add
201        | sym::saturating_sub
202        | sym::select_unpredictable
203        | sym::sinf16
204        | sym::sinf32
205        | sym::sinf64
206        | sym::sinf128
207        | sym::size_of
208        | sym::size_of_type_id
209        | sym::sqrtf16
210        | sym::sqrtf32
211        | sym::sqrtf64
212        | sym::sqrtf128
213        | sym::sub_with_overflow
214        | sym::three_way_compare
215        | sym::truncf16
216        | sym::truncf32
217        | sym::truncf64
218        | sym::truncf128
219        | sym::type_id
220        | sym::type_id_eq
221        | sym::type_id_field_representing_type
222        | sym::type_id_fields
223        | sym::type_id_generics
224        | sym::type_id_is_signed
225        | sym::type_id_variants
226        | sym::type_id_vtable
227        | sym::type_name
228        | sym::type_of
229        | sym::ub_checks
230        | sym::va_copy
231        | sym::variant_count
232        | sym::wrapping_add
233        | sym::wrapping_mul
234        | sym::wrapping_sub
235        | sym::write_box_via_move
236        // tidy-alphabetical-end
237        => hir::Safety::Safe,
238        _ => hir::Safety::Unsafe,
239    };
240
241    if tcx.fn_sig(intrinsic_id).skip_binder().safety() != is_in_list {
242        tcx.dcx().struct_span_err(
243            tcx.def_span(intrinsic_id),
244            DiagMessage::from(::alloc::__export::must_use({
        ::alloc::fmt::format(format_args!("intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `{0}`",
                tcx.item_name(intrinsic_id)))
    })format!(
245                "intrinsic safety mismatch between list of intrinsics within the compiler and core library intrinsics for intrinsic `{}`",
246                tcx.item_name(intrinsic_id)
247            )
248        )).emit();
249    }
250
251    is_in_list
252}
253
254/// Remember to add all intrinsics here, in `compiler/rustc_codegen_llvm/src/intrinsic.rs`,
255/// and in `library/core/src/intrinsics.rs`.
256pub(crate) fn check_intrinsic_type(
257    tcx: TyCtxt<'_>,
258    intrinsic_id: LocalDefId,
259    span: Span,
260    intrinsic_name: Symbol,
261) {
262    let generics = tcx.generics_of(intrinsic_id);
263    let param = |n| {
264        if let &ty::GenericParamDef { name, kind: ty::GenericParamDefKind::Type { .. }, .. } =
265            generics.param_at(n as usize, tcx)
266        {
267            Ty::new_param(tcx, n, name)
268        } else {
269            Ty::new_error_with_message(tcx, span, "expected param")
270        }
271    };
272
273    let bound_vars = tcx.mk_bound_variable_kinds(&[
274        ty::BoundVariableKind::Region(ty::BoundRegionKind::Anon),
275        ty::BoundVariableKind::Region(ty::BoundRegionKind::Anon),
276        ty::BoundVariableKind::Region(ty::BoundRegionKind::ClosureEnv),
277    ]);
278    let mk_va_list_ty = |mutbl| {
279        let did = tcx.require_lang_item(LangItem::VaList, span);
280        let region = ty::Region::new_bound(
281            tcx,
282            ty::INNERMOST,
283            ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon },
284        );
285        let env_region = ty::Region::new_bound(
286            tcx,
287            ty::INNERMOST,
288            ty::BoundRegion {
289                var: ty::BoundVar::from_u32(2),
290                kind: ty::BoundRegionKind::ClosureEnv,
291            },
292        );
293        let va_list_ty = tcx.type_of(did).instantiate(tcx, &[region.into()]).skip_norm_wip();
294        (Ty::new_ref(tcx, env_region, va_list_ty, mutbl), va_list_ty)
295    };
296    let type_id_ty = || tcx.type_of(tcx.lang_items().type_id().unwrap()).no_bound_vars().unwrap();
297
298    let safety = intrinsic_operation_unsafety(tcx, intrinsic_id);
299    let n_lts = 0;
300    let (n_tps, n_cts, inputs, output) = match intrinsic_name {
301        sym::autodiff => (4, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(3)),
302        sym::abort => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.never),
303        sym::amdgpu_dispatch_ptr => (0, 0, ::alloc::vec::Vec::new()vec![], Ty::new_imm_ptr(tcx, tcx.types.unit)),
304        sym::unreachable => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.never),
305        sym::breakpoint => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit),
306        sym::size_of | sym::align_of | sym::variant_count => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.usize),
307        sym::size_of_val | sym::align_of_val => {
308            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], tcx.types.usize)
309        }
310        sym::size_of_type_id => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], Ty::new_option(tcx, tcx.types.usize)),
311        sym::offset_of => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.u32, tcx.types.u32]))vec![tcx.types.u32, tcx.types.u32], tcx.types.usize),
312        sym::field_offset => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.usize),
313        sym::rustc_peek => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(0)),
314        sym::caller_location => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.caller_location_ty()),
315        sym::gpu_launch_sized_workgroup_mem => (1, 0, ::alloc::vec::Vec::new()vec![], Ty::new_mut_ptr(tcx, param(0))),
316        sym::assert_inhabited | sym::assert_zero_valid | sym::assert_mem_uninitialized_valid => {
317            (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit)
318        }
319        sym::forget => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], tcx.types.unit),
320        sym::transmute | sym::transmute_unchecked => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
321        sym::prefetch_read_data
322        | sym::prefetch_write_data
323        | sym::prefetch_read_instruction
324        | sym::prefetch_write_instruction => {
325            (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], tcx.types.unit)
326        }
327        sym::needs_drop => (1, 0, ::alloc::vec::Vec::new()vec![], tcx.types.bool),
328
329        sym::type_name => (1, 0, ::alloc::vec::Vec::new()vec![], Ty::new_static_str(tcx)),
330        sym::type_id => (1, 0, ::alloc::vec::Vec::new()vec![], type_id_ty()),
331        sym::type_id_eq => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty(), type_id_ty()]))vec![type_id_ty(), type_id_ty()], tcx.types.bool),
332        sym::type_id_field_representing_type => {
333            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty(), tcx.types.usize, tcx.types.usize]))vec![type_id_ty(), tcx.types.usize, tcx.types.usize], type_id_ty())
334        }
335        sym::type_id_fields => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty(), tcx.types.usize]))vec![type_id_ty(), tcx.types.usize], tcx.types.usize),
336        sym::type_id_is_signed => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], tcx.types.bool),
337        sym::type_id_variants => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], tcx.types.usize),
338        sym::type_id_vtable => {
339            let dyn_metadata = tcx.require_lang_item(LangItem::DynMetadata, span);
340            let dyn_metadata_adt_ref = tcx.adt_def(dyn_metadata);
341            let dyn_metadata_args =
342                tcx.mk_args(&[Ty::new_ptr(tcx, tcx.types.unit, ty::Mutability::Not).into()]);
343            let dyn_ty = Ty::new_adt(tcx, dyn_metadata_adt_ref, dyn_metadata_args);
344
345            let option_did = tcx.require_lang_item(LangItem::Option, span);
346            let option_adt_ref = tcx.adt_def(option_did);
347            let option_args = tcx.mk_args(&[dyn_ty.into()]);
348            let ret_ty = Ty::new_adt(tcx, option_adt_ref, option_args);
349
350            (0, 0, ::alloc::vec::from_elem(type_id_ty(), 2)vec![type_id_ty(); 2], ret_ty)
351        }
352        sym::type_of => (
353            0,
354            0,
355            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()],
356            tcx.type_of(tcx.lang_items().type_struct().unwrap()).no_bound_vars().unwrap(),
357        ),
358        sym::field_representing_type_actual_type_id => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], type_id_ty()),
359        sym::field_representing_type_name => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], Ty::new_static_str(tcx)),
360        sym::field_representing_type_offset => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], tcx.types.usize),
361        sym::non_exhaustive => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()], tcx.types.bool),
362        sym::type_id_generics => (
363            0,
364            0,
365            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [type_id_ty()]))vec![type_id_ty()],
366            Ty::new_imm_ref(
367                tcx,
368                tcx.lifetimes.re_static,
369                Ty::new_slice(
370                    tcx,
371                    tcx.type_of(tcx.lang_items().type_generic().unwrap()).no_bound_vars().unwrap(),
372                ),
373            ),
374        ),
375        sym::offload => (
376            3,
377            0,
378            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0),
                Ty::new_array_with_const_len(tcx, tcx.types.u32,
                    Const::from_target_usize(tcx, 3)),
                Ty::new_array_with_const_len(tcx, tcx.types.u32,
                    Const::from_target_usize(tcx, 3)), tcx.types.u32,
                param(1)]))vec![
379                param(0),
380                Ty::new_array_with_const_len(tcx, tcx.types.u32, Const::from_target_usize(tcx, 3)),
381                Ty::new_array_with_const_len(tcx, tcx.types.u32, Const::from_target_usize(tcx, 3)),
382                tcx.types.u32,
383                param(1),
384            ],
385            param(2),
386        ),
387        sym::offset => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1)]))vec![param(0), param(1)], param(0)),
388        sym::arith_offset => (
389            1,
390            0,
391            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), tcx.types.isize]))vec![Ty::new_imm_ptr(tcx, param(0)), tcx.types.isize],
392            Ty::new_imm_ptr(tcx, param(0)),
393        ),
394        sym::slice_get_unchecked => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(1), tcx.types.usize]))vec![param(1), tcx.types.usize], param(0)),
395        sym::ptr_mask => (
396            1,
397            0,
398            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), tcx.types.usize]))vec![Ty::new_imm_ptr(tcx, param(0)), tcx.types.usize],
399            Ty::new_imm_ptr(tcx, param(0)),
400        ),
401
402        sym::copy | sym::copy_nonoverlapping => (
403            1,
404            0,
405            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), Ty::new_mut_ptr(tcx, param(0)),
                tcx.types.usize]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_mut_ptr(tcx, param(0)), tcx.types.usize],
406            tcx.types.unit,
407        ),
408        sym::volatile_copy_memory | sym::volatile_copy_nonoverlapping_memory => (
409            1,
410            0,
411            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0)),
                tcx.types.usize]))vec![Ty::new_mut_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0)), tcx.types.usize],
412            tcx.types.unit,
413        ),
414        sym::compare_bytes => {
415            let byte_ptr = Ty::new_imm_ptr(tcx, tcx.types.u8);
416            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [byte_ptr, byte_ptr, tcx.types.usize]))vec![byte_ptr, byte_ptr, tcx.types.usize], tcx.types.i32)
417        }
418        sym::write_bytes | sym::volatile_set_memory => (
419            1,
420            0,
421            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), tcx.types.u8, tcx.types.usize]))vec![Ty::new_mut_ptr(tcx, param(0)), tcx.types.u8, tcx.types.usize],
422            tcx.types.unit,
423        ),
424
425        sym::sqrtf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
426        sym::sqrtf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
427        sym::sqrtf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
428        sym::sqrtf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
429
430        sym::powif16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.i32]))vec![tcx.types.f16, tcx.types.i32], tcx.types.f16),
431        sym::powif32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.i32]))vec![tcx.types.f32, tcx.types.i32], tcx.types.f32),
432        sym::powif64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.i32]))vec![tcx.types.f64, tcx.types.i32], tcx.types.f64),
433        sym::powif128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.i32]))vec![tcx.types.f128, tcx.types.i32], tcx.types.f128),
434
435        sym::sinf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
436        sym::sinf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
437        sym::sinf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
438        sym::sinf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
439
440        sym::cosf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
441        sym::cosf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
442        sym::cosf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
443        sym::cosf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
444
445        sym::powf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
446        sym::powf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
447        sym::powf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
448        sym::powf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
449
450        sym::expf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
451        sym::expf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
452        sym::expf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
453        sym::expf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
454
455        sym::exp2f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
456        sym::exp2f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
457        sym::exp2f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
458        sym::exp2f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
459
460        sym::logf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
461        sym::logf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
462        sym::logf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
463        sym::logf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
464
465        sym::log10f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
466        sym::log10f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
467        sym::log10f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
468        sym::log10f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
469
470        sym::log2f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
471        sym::log2f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
472        sym::log2f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
473        sym::log2f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
474
475        sym::fmaf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16, tcx.types.f16], tcx.types.f16),
476        sym::fmaf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32, tcx.types.f32], tcx.types.f32),
477        sym::fmaf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64, tcx.types.f64], tcx.types.f64),
478        sym::fmaf128 => {
479            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128, tcx.types.f128], tcx.types.f128)
480        }
481
482        sym::fmuladdf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16, tcx.types.f16], tcx.types.f16),
483        sym::fmuladdf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32, tcx.types.f32], tcx.types.f32),
484        sym::fmuladdf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64, tcx.types.f64], tcx.types.f64),
485        sym::fmuladdf128 => {
486            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128, tcx.types.f128], tcx.types.f128)
487        }
488
489        sym::fabs => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(0)),
490
491        sym::minimum_number_nsz_f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
492        sym::minimum_number_nsz_f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
493        sym::minimum_number_nsz_f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
494        sym::minimum_number_nsz_f128 => {
495            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128)
496        }
497
498        sym::minimumf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
499        sym::minimumf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
500        sym::minimumf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
501        sym::minimumf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
502
503        sym::maximum_number_nsz_f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
504        sym::maximum_number_nsz_f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
505        sym::maximum_number_nsz_f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
506        sym::maximum_number_nsz_f128 => {
507            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128)
508        }
509
510        sym::maximumf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
511        sym::maximumf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
512        sym::maximumf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
513        sym::maximumf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
514
515        sym::copysignf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16, tcx.types.f16]))vec![tcx.types.f16, tcx.types.f16], tcx.types.f16),
516        sym::copysignf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32, tcx.types.f32]))vec![tcx.types.f32, tcx.types.f32], tcx.types.f32),
517        sym::copysignf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64, tcx.types.f64]))vec![tcx.types.f64, tcx.types.f64], tcx.types.f64),
518        sym::copysignf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128, tcx.types.f128]))vec![tcx.types.f128, tcx.types.f128], tcx.types.f128),
519
520        sym::floorf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
521        sym::floorf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
522        sym::floorf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
523        sym::floorf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
524
525        sym::ceilf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
526        sym::ceilf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
527        sym::ceilf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
528        sym::ceilf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
529
530        sym::truncf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
531        sym::truncf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
532        sym::truncf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
533        sym::truncf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
534
535        sym::round_ties_even_f16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
536        sym::round_ties_even_f32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
537        sym::round_ties_even_f64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
538        sym::round_ties_even_f128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
539
540        sym::roundf16 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f16]))vec![tcx.types.f16], tcx.types.f16),
541        sym::roundf32 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f32]))vec![tcx.types.f32], tcx.types.f32),
542        sym::roundf64 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f64]))vec![tcx.types.f64], tcx.types.f64),
543        sym::roundf128 => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.f128]))vec![tcx.types.f128], tcx.types.f128),
544
545        sym::volatile_load | sym::unaligned_volatile_load => {
546            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(0))
547        }
548        sym::volatile_store | sym::unaligned_volatile_store => {
549            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit)
550        }
551
552        sym::ctpop | sym::ctlz | sym::ctlz_nonzero | sym::cttz | sym::cttz_nonzero => {
553            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], tcx.types.u32)
554        }
555
556        sym::bswap | sym::bitreverse => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(0)),
557
558        sym::three_way_compare => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], tcx.ty_ordering_enum(span)),
559
560        sym::add_with_overflow | sym::sub_with_overflow | sym::mul_with_overflow => {
561            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], Ty::new_tup(tcx, &[param(0), tcx.types.bool]))
562        }
563
564        sym::carrying_mul_add => (2, 0, ::alloc::vec::from_elem(param(0), 4)vec![param(0); 4], Ty::new_tup(tcx, &[param(1), param(0)])),
565
566        sym::ptr_guaranteed_cmp => (
567            1,
568            0,
569            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
570            tcx.types.u8,
571        ),
572
573        sym::const_allocate => {
574            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.usize, tcx.types.usize]))vec![tcx.types.usize, tcx.types.usize], Ty::new_mut_ptr(tcx, tcx.types.u8))
575        }
576        sym::const_deallocate => (
577            0,
578            0,
579            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, tcx.types.u8), tcx.types.usize,
                tcx.types.usize]))vec![Ty::new_mut_ptr(tcx, tcx.types.u8), tcx.types.usize, tcx.types.usize],
580            tcx.types.unit,
581        ),
582        sym::const_make_global => {
583            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, tcx.types.u8)]))vec![Ty::new_mut_ptr(tcx, tcx.types.u8)], Ty::new_imm_ptr(tcx, tcx.types.u8))
584        }
585
586        sym::ptr_offset_from => (
587            1,
588            0,
589            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
590            tcx.types.isize,
591        ),
592        sym::ptr_offset_from_unsigned => (
593            1,
594            0,
595            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
596            tcx.types.usize,
597        ),
598        sym::unchecked_div | sym::unchecked_rem | sym::exact_div | sym::disjoint_bitor => {
599            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0))
600        }
601        sym::unchecked_shl | sym::unchecked_shr => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1)]))vec![param(0), param(1)], param(0)),
602        sym::rotate_left | sym::rotate_right => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), tcx.types.u32]))vec![param(0), tcx.types.u32], param(0)),
603        sym::unchecked_funnel_shl | sym::unchecked_funnel_shr => {
604            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0), tcx.types.u32]))vec![param(0), param(0), tcx.types.u32], param(0))
605        }
606        sym::unchecked_add | sym::unchecked_sub | sym::unchecked_mul => {
607            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0))
608        }
609        sym::wrapping_add | sym::wrapping_sub | sym::wrapping_mul => {
610            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0))
611        }
612        sym::saturating_add | sym::saturating_sub => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0)),
613        sym::carryless_mul => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0)),
614        sym::fadd_fast | sym::fsub_fast | sym::fmul_fast | sym::fdiv_fast | sym::frem_fast => {
615            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0))
616        }
617        sym::fadd_algebraic
618        | sym::fsub_algebraic
619        | sym::fmul_algebraic
620        | sym::fdiv_algebraic
621        | sym::frem_algebraic => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0)),
622        sym::float_to_int_unchecked => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
623
624        sym::assume => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.bool]))vec![tcx.types.bool], tcx.types.unit),
625        sym::select_unpredictable => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [tcx.types.bool, param(0), param(0)]))vec![tcx.types.bool, param(0), param(0)], param(0)),
626        sym::cold_path => (0, 0, ::alloc::vec::Vec::new()vec![], tcx.types.unit),
627
628        sym::read_via_copy => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(0)),
629        sym::write_via_move => {
630            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit)
631        }
632        sym::write_box_via_move => {
633            let t = param(0);
634            let maybe_uninit_t = Ty::new_maybe_uninit(tcx, t);
635            let box_mu_t = Ty::new_box(tcx, maybe_uninit_t);
636
637            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [box_mu_t, param(0)]))vec![box_mu_t, param(0)], box_mu_t)
638        }
639
640        sym::typed_swap_nonoverlapping => {
641            (1, 0, ::alloc::vec::from_elem(Ty::new_mut_ptr(tcx, param(0)), 2)vec![Ty::new_mut_ptr(tcx, param(0)); 2], tcx.types.unit)
642        }
643
644        sym::discriminant_value => {
645            let assoc_items = tcx
646                .associated_item_def_ids(tcx.require_lang_item(LangItem::DiscriminantKind, span));
647            let discriminant_def_id = assoc_items[0];
648
649            let br = ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon };
650            (
651                1,
652                0,
653                ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br),
                    param(0))]))vec![Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0))],
654                Ty::new_projection_from_args(
655                    tcx,
656                    ty::IsRigid::No,
657                    discriminant_def_id,
658                    tcx.mk_args(&[param(0).into()]),
659                ),
660            )
661        }
662
663        sym::catch_unwind => {
664            let mut_data = Ty::new_mut_ptr(tcx, param(0));
665            let mut_u8 = Ty::new_mut_ptr(tcx, tcx.types.u8);
666            let try_fn_ty =
667                ty::Binder::dummy(tcx.mk_fn_sig_unsafe_rust_abi([mut_data], tcx.types.unit));
668            let catch_fn_ty = ty::Binder::dummy(
669                tcx.mk_fn_sig_unsafe_rust_abi([mut_data, mut_u8], tcx.types.unit),
670            );
671            (
672                1,
673                0,
674                ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_fn_ptr(tcx, try_fn_ty), mut_data,
                Ty::new_fn_ptr(tcx, catch_fn_ty)]))vec![Ty::new_fn_ptr(tcx, try_fn_ty), mut_data, Ty::new_fn_ptr(tcx, catch_fn_ty)],
675                tcx.types.bool,
676            )
677        }
678
679        sym::va_copy => {
680            let (va_list_ref_ty, va_list_ty) = mk_va_list_ty(hir::Mutability::Not);
681            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [va_list_ref_ty]))vec![va_list_ref_ty], va_list_ty)
682        }
683
684        sym::va_end => (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [mk_va_list_ty(hir::Mutability::Mut).0]))vec![mk_va_list_ty(hir::Mutability::Mut).0], tcx.types.unit),
685
686        sym::va_arg => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [mk_va_list_ty(hir::Mutability::Mut).0]))vec![mk_va_list_ty(hir::Mutability::Mut).0], param(0)),
687
688        sym::nontemporal_store => {
689            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit)
690        }
691
692        sym::raw_eq => {
693            let br = ty::BoundRegion { var: ty::BoundVar::ZERO, kind: ty::BoundRegionKind::Anon };
694            let param_ty_lhs =
695                Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0));
696            let br =
697                ty::BoundRegion { var: ty::BoundVar::from_u32(1), kind: ty::BoundRegionKind::Anon };
698            let param_ty_rhs =
699                Ty::new_imm_ref(tcx, ty::Region::new_bound(tcx, ty::INNERMOST, br), param(0));
700            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param_ty_lhs, param_ty_rhs]))vec![param_ty_lhs, param_ty_rhs], tcx.types.bool)
701        }
702
703        sym::black_box => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(0)),
704
705        sym::is_val_statically_known => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], tcx.types.bool),
706
707        sym::const_eval_select => (4, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(3)),
708
709        sym::vtable_size | sym::vtable_align => {
710            (0, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, tcx.types.unit)]))vec![Ty::new_imm_ptr(tcx, tcx.types.unit)], tcx.types.usize)
711        }
712
713        // This type check is not particularly useful, but the `where` bounds
714        // on the definition in `core` do the heavy lifting for checking it.
715        sym::aggregate_raw_ptr => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(1), param(2)]))vec![param(1), param(2)], param(0)),
716        sym::ptr_metadata => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(1)),
717
718        sym::ub_checks | sym::overflow_checks => (0, 0, Vec::new(), tcx.types.bool),
719
720        // contract_check_requires::<C>(C) -> bool, where C: impl Fn() -> bool
721        sym::contract_check_requires => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], tcx.types.unit),
722        sym::contract_check_ensures => {
723            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_option(tcx, param(0)), param(1)]))vec![Ty::new_option(tcx, param(0)), param(1)], param(1))
724        }
725
726        sym::simd_eq | sym::simd_ne | sym::simd_lt | sym::simd_le | sym::simd_gt | sym::simd_ge => {
727            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(1))
728        }
729        sym::simd_add
730        | sym::simd_sub
731        | sym::simd_mul
732        | sym::simd_rem
733        | sym::simd_div
734        | sym::simd_shl
735        | sym::simd_shr
736        | sym::simd_and
737        | sym::simd_or
738        | sym::simd_xor
739        | sym::simd_minimum_number_nsz
740        | sym::simd_maximum_number_nsz
741        | sym::simd_saturating_add
742        | sym::simd_saturating_sub
743        | sym::simd_carryless_mul => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(0)),
744        sym::simd_arith_offset => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1)]))vec![param(0), param(1)], param(0)),
745        sym::simd_neg
746        | sym::simd_bswap
747        | sym::simd_bitreverse
748        | sym::simd_ctlz
749        | sym::simd_cttz
750        | sym::simd_ctpop
751        | sym::simd_fsqrt
752        | sym::simd_fsin
753        | sym::simd_fcos
754        | sym::simd_fexp
755        | sym::simd_fexp2
756        | sym::simd_flog2
757        | sym::simd_flog10
758        | sym::simd_flog
759        | sym::simd_fabs
760        | sym::simd_ceil
761        | sym::simd_floor
762        | sym::simd_round
763        | sym::simd_round_ties_even
764        | sym::simd_trunc => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(0)),
765        sym::simd_fma | sym::simd_relaxed_fma | sym::simd_funnel_shl | sym::simd_funnel_shr => {
766            (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0), param(0)]))vec![param(0), param(0), param(0)], param(0))
767        }
768        sym::simd_gather => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(0)),
769        sym::simd_masked_load => (3, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], param(2)),
770        sym::simd_masked_store => (3, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], tcx.types.unit),
771        sym::simd_scatter => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(2)]))vec![param(0), param(1), param(2)], tcx.types.unit),
772        sym::simd_insert | sym::simd_insert_dyn => {
773            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), tcx.types.u32, param(1)]))vec![param(0), tcx.types.u32, param(1)], param(0))
774        }
775        sym::simd_extract | sym::simd_extract_dyn => {
776            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), tcx.types.u32]))vec![param(0), tcx.types.u32], param(1))
777        }
778        sym::simd_splat => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(1)]))vec![param(1)], param(0)),
779        sym::simd_cast
780        | sym::simd_as
781        | sym::simd_cast_ptr
782        | sym::simd_expose_provenance
783        | sym::simd_with_exposed_provenance => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
784        sym::simd_bitmask => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
785        sym::simd_select | sym::simd_select_bitmask => {
786            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1), param(1)]))vec![param(0), param(1), param(1)], param(1))
787        }
788        sym::simd_reduce_all | sym::simd_reduce_any => (1, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], tcx.types.bool),
789        sym::simd_reduce_add_ordered | sym::simd_reduce_mul_ordered => {
790            (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1)]))vec![param(0), param(1)], param(1))
791        }
792        sym::simd_reduce_add_unordered
793        | sym::simd_reduce_mul_unordered
794        | sym::simd_reduce_and
795        | sym::simd_reduce_or
796        | sym::simd_reduce_xor
797        | sym::simd_reduce_min
798        | sym::simd_reduce_max => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
799        sym::simd_shuffle => (3, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0), param(1)]))vec![param(0), param(0), param(1)], param(2)),
800        sym::simd_shuffle_const_generic => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(1)),
801
802        sym::sve_cast => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
803        sym::sve_tuple_create2 => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0)]))vec![param(0), param(0)], param(1)),
804        sym::sve_tuple_create3 => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0), param(0)]))vec![param(0), param(0), param(0)], param(1)),
805        sym::sve_tuple_create4 => (2, 0, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(0), param(0), param(0)]))vec![param(0), param(0), param(0), param(0)], param(1)),
806        sym::sve_tuple_get => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0)]))vec![param(0)], param(1)),
807        sym::sve_tuple_set => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [param(0), param(1)]))vec![param(0), param(1)], param(0)),
808
809        sym::atomic_cxchg | sym::atomic_cxchgweak => (
810            1,
811            2,
812            ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0), param(0)],
813            Ty::new_tup(tcx, &[param(0), tcx.types.bool]),
814        ),
815        sym::atomic_load => (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_imm_ptr(tcx, param(0))]))vec![Ty::new_imm_ptr(tcx, param(0))], param(0)),
816        sym::atomic_store => (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit),
817
818        sym::atomic_xchg
819        | sym::atomic_max
820        | sym::atomic_min
821        | sym::atomic_umax
822        | sym::atomic_umin => (1, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(0)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], param(0)),
823        sym::atomic_xadd
824        | sym::atomic_xsub
825        | sym::atomic_and
826        | sym::atomic_nand
827        | sym::atomic_or
828        | sym::atomic_xor => (2, 1, ::alloc::boxed::box_assume_init_into_vec_unsafe(::alloc::intrinsics::write_box_via_move(::alloc::boxed::Box::new_uninit(),
        [Ty::new_mut_ptr(tcx, param(0)), param(1)]))vec![Ty::new_mut_ptr(tcx, param(0)), param(1)], param(0)),
829        sym::atomic_fence | sym::atomic_singlethreadfence => (0, 1, Vec::new(), tcx.types.unit),
830
831        sym::return_address => (0, 0, ::alloc::vec::Vec::new()vec![], Ty::new_imm_ptr(tcx, tcx.types.unit)),
832
833        other => {
834            tcx.dcx().emit_err(UnrecognizedIntrinsicFunction { span, name: other });
835            return;
836        }
837    };
838    let sig = tcx.mk_fn_sig_rust_abi(inputs, output, safety);
839    let sig = ty::Binder::bind_with_vars(sig, bound_vars);
840    equate_intrinsic_type(tcx, span, intrinsic_id, n_tps, n_lts, n_cts, sig)
841}