rust/library
Matthias Krüger b9dfb4d6f8
Rollup merge of #129592 - saethlin:core-cfg-test, r=tgross35
Remove cfg(test) from library/core

The diff here is very small with the ignore whitespace option.

`core` doesn't/can't have unit tests. All of its tests are just modules under `tests/`, so it has no use for `cfg(test)`, because the entire contents of `library/core/src` are only ever compiled with that cfg off, and the entire contents of `library/core/tests` are only ever compiled with that cfg on.

You can tell this is what's happening because we had `#[cfg(test)]` on a module declaration that has no source file.

I also deleted the extra `mod tests {` layer of nesting; there's no need to mention again in the module path that this is a module of tests. This exposes a name collision between the `u128` module of tests and `core::u128`. Fixed that by using `<u128>::MAX` like is done in the `check!` macro, which is what avoids this name ambiguity for the other types.
2024-08-26 17:25:33 +02:00
..
alloc Rollup merge of #129544 - mu001999-contrib:dead-code/clean, r=compiler-errors 2024-08-26 01:49:03 +02:00
backtrace@72265bea21
core Rollup merge of #129592 - saethlin:core-cfg-test, r=tgross35 2024-08-26 17:25:33 +02:00
panic_abort
panic_unwind
portable-simd
proc_macro
profiler_builtins Build library/profiler_builtins from ci-llvm if appropriate 2024-08-24 21:21:34 +10:00
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Rollup merge of #129588 - hermit-os:sleep-micros, r=workingjubilee 2024-08-26 17:25:32 +02:00
stdarch@d9466edb4c Update stdarch submodule 2024-08-21 00:20:27 -07:00
sysroot
test Reduce merged doctest source code size 2024-08-13 20:14:56 +02:00
unwind
windows_targets Add windows-targets crate to std's sysroot 2024-08-09 10:43:43 +00:00
Cargo.lock Update compiler_builtins to 0.1.121 2024-08-23 12:02:26 -07:00
Cargo.toml Exclude windows-targets from the workspace 2024-08-09 11:06:39 +00:00