rust/library/core/tests
Matthias Krüger cb7f1eec04
Rollup merge of #122291 - lilasta:stabilize_const_location_fields, r=dtolnay
Stabilize `const_caller_location` and `const_location_fields`

Closes #102911. Closes #76156.

tests: [library/core/tests/panic/location.rs](3521a2f2f3/library/core/tests/panic/location.rs)

API:
```rust
// core::panic::location
impl Location {
    pub const fn caller() -> &'static Location<'static>;
    pub const fn file(&self) -> &str;
    pub const fn line(&self) -> u32;
    pub const fn column(&self) -> u32;
}
```
2024-04-06 13:00:05 +02:00
..
async_iter Remove unnecessary lets and borrowing from Waker::noop() usage. 2024-01-17 12:00:27 -08:00
fmt apply fmt 2024-01-11 15:04:48 +03:00
hash rename ptr::invalid -> ptr::without_provenance 2024-02-21 20:15:52 +01:00
io Make io::BorrowedCursor::advance safe 2024-02-07 16:46:28 +01:00
iter step cfgs 2024-03-20 08:49:13 -04:00
net Rollup merge of #119081 - jstasiak:is-ipv4-mapped, r=dtolnay 2024-01-21 06:38:35 +01:00
num Make {integer}::from_str_radix constant 2024-03-30 12:43:58 +00:00
ops
panic
alloc.rs rename ptr::invalid -> ptr::without_provenance 2024-02-21 20:15:52 +01:00
any.rs Adjust library tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
array.rs Replace NonZero::<_>::new with NonZero::new. 2024-02-15 08:09:42 +01:00
ascii.rs
asserting.rs
atomic.rs Adjust library tests for unused_tuple_struct_fields -> dead_code 2024-01-02 15:34:37 -05:00
bool.rs
cell.rs apply fmt 2024-01-11 15:04:48 +03:00
char.rs remove redundant imports 2023-12-10 10:56:22 +08:00
clone.rs
cmp.rs
const_ptr.rs
convert.rs
error.rs apply fmt 2024-01-11 15:04:48 +03:00
future.rs
intrinsics.rs Address PR feedback 2024-03-24 17:42:35 -07:00
lazy.rs
lib.rs Rollup merge of #122291 - lilasta:stabilize_const_location_fields, r=dtolnay 2024-04-06 13:00:05 +02:00
macros.rs Update tests 2024-02-07 10:42:01 +08:00
manually_drop.rs
mem.rs Implement MaybeUninit::fill{,_with,_from} 2024-03-05 15:27:35 -05:00
nonzero.rs Replace NonZero::<_>::new with NonZero::new. 2024-02-15 08:09:42 +01:00
ops.rs
option.rs apply fmt 2024-01-11 15:04:48 +03:00
panic.rs
pattern.rs
pin_macro.rs
pin.rs
ptr.rs Require Pointee::Metadata to be Freeze 2024-03-31 03:35:17 +01:00
result.rs step cfgs 2024-03-20 08:49:13 -04:00
simd.rs Fix library tests 2023-11-26 08:50:39 -05:00
slice.rs Replace NonZero::<_>::new with NonZero::new. 2024-02-15 08:09:42 +01:00
str_lossy.rs
str.rs
task.rs
time.rs core: add Duration constructors 2024-01-24 14:24:57 +01:00
tuple.rs
unicode.rs
waker.rs rename ptr::invalid -> ptr::without_provenance 2024-02-21 20:15:52 +01:00