diff options
| author | Ben Kimock <kimockb@gmail.com> | 2024-04-17 18:47:28 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2024-05-20 11:13:10 -0400 |
| commit | 8d3bc559048e47de32e32a562fe5bbea0b38f4e6 (patch) | |
| tree | 03ffb3889cb53e439bdfdeb8f154d7a8b2f1ea51 /tests/run-make | |
| parent | 44d679b9021f03a79133021b94e6d23e9b55b3ab (diff) | |
Fix up a few more tests
Diffstat (limited to 'tests/run-make')
| -rw-r--r-- | tests/run-make/c-link-to-rust-va-list-fn/checkrust.rs | 5 | ||||
| -rw-r--r-- | tests/run-make/link-path-order/main.rs | 6 |
2 files changed, 3 insertions, 8 deletions
diff --git a/tests/run-make/c-link-to-rust-va-list-fn/checkrust.rs b/tests/run-make/c-link-to-rust-va-list-fn/checkrust.rs index 5830ef033d3..e518579b906 100644 --- a/tests/run-make/c-link-to-rust-va-list-fn/checkrust.rs +++ b/tests/run-make/c-link-to-rust-va-list-fn/checkrust.rs @@ -1,10 +1,7 @@ #![crate_type = "staticlib"] #![feature(c_variadic)] -#![feature(rustc_private)] -extern crate libc; - -use libc::{c_char, c_double, c_int, c_long, c_longlong}; +use std::ffi::{c_char, c_double, c_int, c_long, c_longlong}; use std::ffi::VaList; use std::ffi::{CString, CStr}; diff --git a/tests/run-make/link-path-order/main.rs b/tests/run-make/link-path-order/main.rs index 8024e343d19..20a517dcda9 100644 --- a/tests/run-make/link-path-order/main.rs +++ b/tests/run-make/link-path-order/main.rs @@ -1,10 +1,8 @@ -#![feature(rustc_private)] - -extern crate libc; +use std::ffi::c_int; #[link(name = "foo", kind = "static")] extern "C" { - fn should_return_one() -> libc::c_int; + fn should_return_one() -> c_int; } fn main() { |
