Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/core/src/io/error/os_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::fmt;
/// The provided reference must point to data that is entirely constant; it must
/// not be created during runtime.
#[inline]
pub(super) unsafe fn set_functions(f: &'static OsFunctions) {
pub(super) unsafe fn set_functions(_f: &'static OsFunctions) {
// FIXME: externally implementable items may allow for weak linkage, allowing
// these methods to be overridden even when atomic pointers are not supported.
}
Expand Down
14 changes: 14 additions & 0 deletions tests/run-make/core-no-io-statics/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This test checks that the core library of Rust can be compiled when enabling
// `--cfg no_io_statics`.

use run_make_support::{rustc, source_root};

fn main() {
rustc()
.edition("2024")
.arg("-Dwarnings")
.crate_type("rlib")
.input(source_root().join("library/core/src/lib.rs"))
.cfg("no_io_statics")
.run();
}
Loading