Skip to content

Commit 4093040

Browse files
ban varargs
1 parent 493934b commit 4093040

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_hir_typeck/src/fn_ctxt

1 file changed

+4
-0
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs

+4
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,10 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
471471
replace: fn_ptr,
472472
});
473473
}
474+
// generics? in C variadic? naaah
475+
ty::Adt(_def, gen_args) if gen_args.len() > 0 => {
476+
bug!("what the ferris are you doing")
477+
}
474478
_ => {}
475479
}
476480
}

0 commit comments

Comments
 (0)