rust/library/alloc/src
Trevor Gross 2fe41869c9
Rollup merge of #130914 - compiler-errors:insignificant-dtor, r=Amanieu
Mark some more types as having insignificant dtor

These were caught by https://github.com/rust-lang/rust/pull/129864#issuecomment-2376658407, which is implementing a lint for some changes in drop order for temporaries in tail expressions.

Specifically, the destructors of `CString` and the bitpacked repr for `std::io::Error` are insignificant insofar as they don't have side-effects on things like locking or synchronization; they just free memory.

See some discussion on #89144 for what makes a drop impl "significant"
2024-09-30 19:18:50 -04:00
..
alloc Reformat use declarations. 2024-07-29 08:26:52 +10:00
boxed Use &raw in the standard library 2024-09-25 17:03:20 -07:00
collections Use &raw in the standard library 2024-09-25 17:03:20 -07:00
ffi Mark some more types as having insignificant dtor 2024-09-27 11:59:39 -04:00
raw_vec Polymorphize RawVec 2024-08-09 20:06:26 -04:00
rc Add str.as_str() for easy dereferencing of Box<str> 2024-09-19 16:25:56 +01:00
slice Reformat use declarations. 2024-07-29 08:26:52 +10:00
sync Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
testing Reformat use declarations. 2024-07-29 08:26:52 +10:00
vec Use &raw in the standard library 2024-09-25 17:03:20 -07:00
alloc.rs read_volatile __rust_no_alloc_shim_is_unstable in alloc_zeroed 2024-09-17 22:26:21 -04:00
borrow.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
boxed.rs Mark some more smart pointers as insignificant 2024-09-27 11:59:39 -04:00
fmt.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Add str.as_str() for easy dereferencing of Box<str> 2024-09-19 16:25:56 +01:00
macros.rs Mark format! with must_use hint 2024-07-06 14:24:20 +02:00
raw_vec.rs add FIXME(const-hack) 2024-09-08 23:08:40 +02:00
rc.rs Use &raw in the standard library 2024-09-25 17:03:20 -07:00
slice.rs Rollup merge of #130416 - BatmanAoD:130122-sort-by-docs, r=Mark-Simulacrum 2024-09-29 12:37:51 +02:00
str.rs Improve autovectorization of to_lowercase / to_uppercase functions 2024-09-23 11:31:29 +02:00
string.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
sync.rs Mark some more smart pointers as insignificant 2024-09-27 11:59:39 -04:00
task.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
tests.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00