Skip to content

Commit 9c0f946

Browse files
authored
Rollup merge of rust-lang#54095 - kenta7777:kenta7777#53719, r=davidtwco
Rename all mentions of `nil` to `unit` Fixes rust-lang#53719. Renamed keywords nil to unit.
2 parents 33bc6c3 + 26dbf56 commit 9c0f946

File tree

28 files changed

+68
-68
lines changed

28 files changed

+68
-68
lines changed

src/librustc/traits/error_reporting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
661661
{
662662
let predicate = trait_predicate.map_bound(|mut trait_pred| {
663663
trait_pred.trait_ref.substs = self.tcx.mk_substs_trait(
664-
self.tcx.mk_nil(),
664+
self.tcx.mk_unit(),
665665
&trait_pred.trait_ref.substs[1..],
666666
);
667667
trait_pred

src/librustc/ty/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2492,7 +2492,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
24922492
}
24932493

24942494
pub fn mk_nil_ptr(self) -> Ty<'tcx> {
2495-
self.mk_imm_ptr(self.mk_nil())
2495+
self.mk_imm_ptr(self.mk_unit())
24962496
}
24972497

24982498
pub fn mk_array(self, ty: Ty<'tcx>, n: u64) -> Ty<'tcx> {
@@ -2511,7 +2511,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
25112511
iter.intern_with(|ts| self.mk_ty(Tuple(self.intern_type_list(ts))))
25122512
}
25132513

2514-
pub fn mk_nil(self) -> Ty<'tcx> {
2514+
pub fn mk_unit(self) -> Ty<'tcx> {
25152515
self.intern_tup(&[])
25162516
}
25172517

src/librustc/ty/layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl PrimitiveExt for Primitive {
132132
Int(i, signed) => i.to_ty(tcx, signed),
133133
Float(FloatTy::F32) => tcx.types.f32,
134134
Float(FloatTy::F64) => tcx.types.f64,
135-
Pointer => tcx.mk_mut_ptr(tcx.mk_nil()),
135+
Pointer => tcx.mk_mut_ptr(tcx.mk_unit()),
136136
}
137137
}
138138
}
@@ -1606,7 +1606,7 @@ impl<'a, 'tcx, C> TyLayoutMethods<'tcx, C> for Ty<'tcx>
16061606
// (which may have no non-DST form), and will work as long
16071607
// as the `Abi` or `FieldPlacement` is checked by users.
16081608
if i == 0 {
1609-
let nil = tcx.mk_nil();
1609+
let nil = tcx.mk_unit();
16101610
let ptr_ty = if this.ty.is_unsafe_ptr() {
16111611
tcx.mk_mut_ptr(nil)
16121612
} else {

src/librustc/ty/query/on_disk_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ impl<'enc, 'a, 'tcx, E> Encoder for CacheEncoder<'enc, 'a, 'tcx, E>
10201020
{
10211021
type Error = E::Error;
10221022

1023-
fn emit_nil(&mut self) -> Result<(), Self::Error> {
1023+
fn emit_unit(&mut self) -> Result<(), Self::Error> {
10241024
Ok(())
10251025
}
10261026

src/librustc/ty/sty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ impl RegionKind {
14581458

14591459
/// Type utilities
14601460
impl<'a, 'gcx, 'tcx> TyS<'tcx> {
1461-
pub fn is_nil(&self) -> bool {
1461+
pub fn is_unit(&self) -> bool {
14621462
match self.sty {
14631463
Tuple(ref tys) => tys.is_empty(),
14641464
_ => false,

src/librustc/util/ppaux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ impl PrintContext {
234234
}
235235
}
236236
write!(f, ")")?;
237-
if !output.is_nil() {
237+
if !output.is_unit() {
238238
print!(f, self, write(" -> "), print_display(output))?;
239239
}
240240

src/librustc_codegen_llvm/debuginfo/type_names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub fn push_debuginfo_type_name<'a, 'tcx>(cx: &CodegenCx<'a, 'tcx>,
160160

161161
output.push(')');
162162

163-
if !sig.output().is_nil() {
163+
if !sig.output().is_unit() {
164164
output.push_str(" -> ");
165165
push_debuginfo_type_name(cx, sig.output(), true, output);
166166
}

src/librustc_codegen_llvm/intrinsic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ fn get_rust_try_fn<'ll, 'tcx>(
968968
let i8p = tcx.mk_mut_ptr(tcx.types.i8);
969969
let fn_ty = tcx.mk_fn_ptr(ty::Binder::bind(tcx.mk_fn_sig(
970970
iter::once(i8p),
971-
tcx.mk_nil(),
971+
tcx.mk_unit(),
972972
false,
973973
hir::Unsafety::Unsafe,
974974
Abi::Rust

src/librustc_codegen_llvm/mir/rvalue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ impl FunctionCx<'a, 'll, 'tcx> {
566566
) -> &'ll Value {
567567
let is_float = input_ty.is_fp();
568568
let is_signed = input_ty.is_signed();
569-
let is_nil = input_ty.is_nil();
569+
let is_unit = input_ty.is_unit();
570570
match op {
571571
mir::BinOp::Add => if is_float {
572572
bx.fadd(lhs, rhs)
@@ -604,7 +604,7 @@ impl FunctionCx<'a, 'll, 'tcx> {
604604
mir::BinOp::Shl => common::build_unchecked_lshift(bx, lhs, rhs),
605605
mir::BinOp::Shr => common::build_unchecked_rshift(bx, input_ty, lhs, rhs),
606606
mir::BinOp::Ne | mir::BinOp::Lt | mir::BinOp::Gt |
607-
mir::BinOp::Eq | mir::BinOp::Le | mir::BinOp::Ge => if is_nil {
607+
mir::BinOp::Eq | mir::BinOp::Le | mir::BinOp::Ge => if is_unit {
608608
C_bool(bx.cx, match op {
609609
mir::BinOp::Ne | mir::BinOp::Lt | mir::BinOp::Gt => false,
610610
mir::BinOp::Eq | mir::BinOp::Le | mir::BinOp::Ge => true,

src/librustc_driver/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ impl<'a, 'gcx, 'tcx> Env<'a, 'gcx, 'tcx> {
309309
}
310310

311311
pub fn t_nil(&self) -> Ty<'tcx> {
312-
self.infcx.tcx.mk_nil()
312+
self.infcx.tcx.mk_unit()
313313
}
314314

315315
pub fn t_pair(&self, ty1: Ty<'tcx>, ty2: Ty<'tcx>) -> Ty<'tcx> {

src/librustc_lint/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
691691
}
692692

693693
let sig = cx.erase_late_bound_regions(&sig);
694-
if !sig.output().is_nil() {
694+
if !sig.output().is_unit() {
695695
let r = self.check_type_for_ffi(cache, sig.output());
696696
match r {
697697
FfiSafe => {}
@@ -767,7 +767,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
767767

768768
if let hir::Return(ref ret_hir) = decl.output {
769769
let ret_ty = sig.output();
770-
if !ret_ty.is_nil() {
770+
if !ret_ty.is_unit() {
771771
self.check_type_for_ffi_and_report_errors(ret_hir.span, ret_ty);
772772
}
773773
}

src/librustc_metadata/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ macro_rules! encoder_methods {
7575
impl<'a, 'tcx> Encoder for EncodeContext<'a, 'tcx> {
7676
type Error = <opaque::Encoder as Encoder>::Error;
7777

78-
fn emit_nil(&mut self) -> Result<(), Self::Error> {
78+
fn emit_unit(&mut self) -> Result<(), Self::Error> {
7979
Ok(())
8080
}
8181

src/librustc_mir/build/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
167167
// the case of `!`, no return value is required, as the block will never return.
168168
let tcx = this.hir.tcx();
169169
let ty = destination.ty(&this.local_decls, tcx).to_ty(tcx);
170-
if ty.is_nil() {
170+
if ty.is_unit() {
171171
// We only want to assign an implicit `()` as the return value of the block if the
172172
// block does not diverge. (Otherwise, we may try to assign a unit to a `!`-type.)
173173
this.cfg.push_assign_unit(block, source_info, destination);

src/librustc_mir/hair/cx/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl<'a, 'gcx, 'tcx> Cx<'a, 'gcx, 'tcx> {
118118
}
119119

120120
pub fn unit_ty(&mut self) -> Ty<'tcx> {
121-
self.tcx.mk_nil()
121+
self.tcx.mk_unit()
122122
}
123123

124124
pub fn true_literal(&mut self) -> &'tcx ty::Const<'tcx> {

src/librustc_mir/interpret/terminator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> {
436436
layout: self.layout_of(self.tcx.mk_mut_ptr(place.layout.ty))?,
437437
};
438438

439-
let ty = self.tcx.mk_nil(); // return type is ()
439+
let ty = self.tcx.mk_unit(); // return type is ()
440440
let dest = PlaceTy::null(&self, self.layout_of(ty)?);
441441

442442
self.eval_fn_call(

src/librustc_mir/monomorphize/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ impl<'a, 'tcx> DefPathBasedNames<'a, 'tcx> {
368368

369369
output.push(')');
370370

371-
if !sig.output().is_nil() {
371+
if !sig.output().is_unit() {
372372
output.push_str(" -> ");
373373
self.push_type_name(sig.output(), output);
374374
}

src/librustc_mir/transform/generator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ fn compute_layout<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
518518
}
519519

520520
let upvar_len = mir.upvar_decls.len();
521-
let dummy_local = LocalDecl::new_internal(tcx.mk_nil(), mir.span);
521+
let dummy_local = LocalDecl::new_internal(tcx.mk_unit(), mir.span);
522522

523523
// Gather live locals and their indices replacing values in mir.local_decls with a dummy
524524
// to avoid changing local indices
@@ -656,7 +656,7 @@ fn create_generator_drop_shim<'a, 'tcx>(
656656
// Replace the return variable
657657
mir.local_decls[RETURN_PLACE] = LocalDecl {
658658
mutability: Mutability::Mut,
659-
ty: tcx.mk_nil(),
659+
ty: tcx.mk_unit(),
660660
user_ty: None,
661661
name: None,
662662
source_info,

src/librustc_mir/util/elaborate_drops.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ impl<'l, 'b, 'tcx, D> DropCtxt<'l, 'b, 'tcx, D>
529529
mutbl: hir::Mutability::MutMutable
530530
});
531531
let ref_place = self.new_temp(ref_ty);
532-
let unit_temp = Place::Local(self.new_temp(tcx.mk_nil()));
532+
let unit_temp = Place::Local(self.new_temp(tcx.mk_unit()));
533533

534534
let result = BasicBlockData {
535535
statements: vec![self.assign(
@@ -891,7 +891,7 @@ impl<'l, 'b, 'tcx, D> DropCtxt<'l, 'b, 'tcx, D>
891891
unwind: Unwind
892892
) -> BasicBlock {
893893
let tcx = self.tcx();
894-
let unit_temp = Place::Local(self.new_temp(tcx.mk_nil()));
894+
let unit_temp = Place::Local(self.new_temp(tcx.mk_unit()));
895895
let free_func = tcx.require_lang_item(lang_items::BoxFreeFnLangItem);
896896
let args = adt.variants[0].fields.iter().enumerate().map(|(i, f)| {
897897
let field = Field::new(i);

src/librustc_typeck/astconv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx>+'o {
15751575

15761576
let output_ty = match decl.output {
15771577
hir::Return(ref output) => self.ast_ty_to_ty(output),
1578-
hir::DefaultReturn(..) => tcx.mk_nil(),
1578+
hir::DefaultReturn(..) => tcx.mk_unit(),
15791579
};
15801580

15811581
debug!("ty_of_fn: output_ty={:?}", output_ty);

src/librustc_typeck/check/_match.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ https://doc.rust-lang.org/reference/types.html#trait-objects");
666666
// us to give better error messages (pointing to a usually better
667667
// arm for inconsistent arms or to the whole match when a `()` type
668668
// is required).
669-
Expectation::ExpectHasType(ety) if ety != self.tcx.mk_nil() => ety,
669+
Expectation::ExpectHasType(ety) if ety != self.tcx.mk_unit() => ety,
670670
_ => self.next_ty_var(TypeVariableOrigin::MiscVariable(expr.span)),
671671
};
672672
CoerceMany::with_coercion_sites(coerce_first, arms)
@@ -687,14 +687,14 @@ https://doc.rust-lang.org/reference/types.html#trait-objects");
687687
// Handle the fallback arm of a desugared if-let like a missing else.
688688
let is_if_let_fallback = match match_src {
689689
hir::MatchSource::IfLetDesugar { contains_else_clause: false } => {
690-
i == arms.len() - 1 && arm_ty.is_nil()
690+
i == arms.len() - 1 && arm_ty.is_unit()
691691
}
692692
_ => false
693693
};
694694

695695
if is_if_let_fallback {
696696
let cause = self.cause(expr.span, ObligationCauseCode::IfExpressionWithNoElse);
697-
assert!(arm_ty.is_nil());
697+
assert!(arm_ty.is_unit());
698698
coercion.coerce_forced_unit(self, &cause, &mut |_| (), true);
699699
} else {
700700
let cause = self.cause(expr.span, ObligationCauseCode::MatchExpressionArm {

src/librustc_typeck/check/coercion.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ impl<'gcx, 'tcx, 'exprs, E> CoerceMany<'gcx, 'tcx, 'exprs, E>
10771077
self.coerce_inner(fcx,
10781078
cause,
10791079
None,
1080-
fcx.tcx.mk_nil(),
1080+
fcx.tcx.mk_unit(),
10811081
Some(augment_error),
10821082
label_unit_as_expected)
10831083
}
@@ -1146,8 +1146,8 @@ impl<'gcx, 'tcx, 'exprs, E> CoerceMany<'gcx, 'tcx, 'exprs, E>
11461146
// `expression_ty` will be unit).
11471147
//
11481148
// Another example is `break` with no argument expression.
1149-
assert!(expression_ty.is_nil());
1150-
assert!(expression_ty.is_nil(), "if let hack without unit type");
1149+
assert!(expression_ty.is_unit());
1150+
assert!(expression_ty.is_unit(), "if let hack without unit type");
11511151
fcx.at(cause, fcx.param_env)
11521152
.eq_exp(label_expression_as_expected, expression_ty, self.merged_ty())
11531153
.map(|infer_ok| {

src/librustc_typeck/check/intrinsic.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
9494
"load" => (1, vec![tcx.mk_imm_ptr(param(0))],
9595
param(0)),
9696
"store" => (1, vec![tcx.mk_mut_ptr(param(0)), param(0)],
97-
tcx.mk_nil()),
97+
tcx.mk_unit()),
9898

9999
"xchg" | "xadd" | "xsub" | "and" | "nand" | "or" | "xor" | "max" |
100100
"min" | "umax" | "umin" => {
101101
(1, vec![tcx.mk_mut_ptr(param(0)), param(0)],
102102
param(0))
103103
}
104104
"fence" | "singlethreadfence" => {
105-
(0, Vec::new(), tcx.mk_nil())
105+
(0, Vec::new(), tcx.mk_unit())
106106
}
107107
op => {
108108
struct_span_err!(tcx.sess, it.span, E0092,
@@ -121,7 +121,7 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
121121
_ => hir::Unsafety::Unsafe,
122122
};
123123
let (n_tps, inputs, output) = match &name[..] {
124-
"breakpoint" => (0, Vec::new(), tcx.mk_nil()),
124+
"breakpoint" => (0, Vec::new(), tcx.mk_unit()),
125125
"size_of" |
126126
"pref_align_of" | "min_align_of" => (1, Vec::new(), tcx.types.usize),
127127
"size_of_val" | "min_align_of_val" => {
@@ -141,18 +141,18 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
141141
tcx.mk_mut_ptr(param(0)),
142142
param(0)
143143
],
144-
tcx.mk_nil())
144+
tcx.mk_unit())
145145
}
146146
"prefetch_read_data" | "prefetch_write_data" |
147147
"prefetch_read_instruction" | "prefetch_write_instruction" => {
148148
(1, vec![tcx.mk_ptr(ty::TypeAndMut {
149149
ty: param(0),
150150
mutbl: hir::MutImmutable
151151
}), tcx.types.i32],
152-
tcx.mk_nil())
152+
tcx.mk_unit())
153153
}
154154
"drop_in_place" => {
155-
(1, vec![tcx.mk_mut_ptr(param(0))], tcx.mk_nil())
155+
(1, vec![tcx.mk_mut_ptr(param(0))], tcx.mk_unit())
156156
}
157157
"needs_drop" => (1, Vec::new(), tcx.types.bool),
158158

@@ -185,7 +185,7 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
185185
}),
186186
tcx.types.usize,
187187
],
188-
tcx.mk_nil())
188+
tcx.mk_unit())
189189
}
190190
"volatile_copy_memory" | "volatile_copy_nonoverlapping_memory" => {
191191
(1,
@@ -200,7 +200,7 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
200200
}),
201201
tcx.types.usize,
202202
],
203-
tcx.mk_nil())
203+
tcx.mk_unit())
204204
}
205205
"write_bytes" | "volatile_set_memory" => {
206206
(1,
@@ -212,7 +212,7 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
212212
tcx.types.u8,
213213
tcx.types.usize,
214214
],
215-
tcx.mk_nil())
215+
tcx.mk_unit())
216216
}
217217
"sqrtf32" => (0, vec![ tcx.types.f32 ], tcx.types.f32),
218218
"sqrtf64" => (0, vec![ tcx.types.f64 ], tcx.types.f64),
@@ -280,7 +280,7 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
280280
"volatile_load" | "unaligned_volatile_load" =>
281281
(1, vec![ tcx.mk_imm_ptr(param(0)) ], param(0)),
282282
"volatile_store" | "unaligned_volatile_store" =>
283-
(1, vec![ tcx.mk_mut_ptr(param(0)), param(0) ], tcx.mk_nil()),
283+
(1, vec![ tcx.mk_mut_ptr(param(0)), param(0) ], tcx.mk_unit()),
284284

285285
"ctpop" | "ctlz" | "ctlz_nonzero" | "cttz" | "cttz_nonzero" |
286286
"bswap" | "bitreverse" =>
@@ -300,7 +300,7 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
300300
"fadd_fast" | "fsub_fast" | "fmul_fast" | "fdiv_fast" | "frem_fast" =>
301301
(1, vec![param(0), param(0)], param(0)),
302302

303-
"assume" => (0, vec![tcx.types.bool], tcx.mk_nil()),
303+
"assume" => (0, vec![tcx.types.bool], tcx.mk_unit()),
304304
"likely" => (0, vec![tcx.types.bool], tcx.types.bool),
305305
"unlikely" => (0, vec![tcx.types.bool], tcx.types.bool),
306306

@@ -313,7 +313,7 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
313313
let mut_u8 = tcx.mk_mut_ptr(tcx.types.u8);
314314
let fn_ty = ty::Binder::bind(tcx.mk_fn_sig(
315315
iter::once(mut_u8),
316-
tcx.mk_nil(),
316+
tcx.mk_unit(),
317317
false,
318318
hir::Unsafety::Normal,
319319
Abi::Rust,
@@ -322,7 +322,7 @@ pub fn check_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
322322
}
323323

324324
"nontemporal_store" => {
325-
(1, vec![ tcx.mk_mut_ptr(param(0)), param(0) ], tcx.mk_nil())
325+
(1, vec![ tcx.mk_mut_ptr(param(0)), param(0) ], tcx.mk_unit())
326326
}
327327

328328
ref other => {
@@ -376,7 +376,7 @@ pub fn check_platform_intrinsic_type<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
376376
(3, vec![param(0), param(1), param(2)], param(0))
377377
}
378378
"simd_scatter" => {
379-
(3, vec![param(0), param(1), param(2)], tcx.mk_nil())
379+
(3, vec![param(0), param(1), param(2)], tcx.mk_unit())
380380
}
381381
"simd_insert" => (2, vec![param(0), tcx.types.u32, param(1)], param(0)),
382382
"simd_extract" => (2, vec![param(0), tcx.types.u32], param(1)),

0 commit comments

Comments
 (0)