Ayush Kumar Mishra
5a0a58bbef
Added str tests in library
2020-09-05 17:18:45 +05:30
Ayush Kumar Mishra
d16bbd1cb0
Move Vec slice UI tests in library
2020-09-04 17:18:26 +05:30
Christiaan Dirkx
538e198193
Move various ui const tests to library
...
Move:
- `src\test\ui\consts\const-nonzero.rs` to `library\core`
- `src\test\ui\consts\ascii.rs` to `library\core`
- `src\test\ui\consts\cow-is-borrowed` to `library\alloc`
Part of #76268
2020-09-04 02:35:27 +02:00
Tomasz Miąsko
f8cfb2f5ad
Add tests for overflow in String / VecDeque operations using ranges
2020-09-04 00:00:00 +00:00
Tomasz Miąsko
d98bac4e4e
Add tests for overflow in Vec::drain
2020-09-04 23:16:53 +02:00
Rune Tynan
2278c7255a
Remove vec-to_str.rs, merge the remaining test in with vec
2020-09-03 15:43:07 -04:00
The8472
435219dd82
remove empty Vec extend optimization
...
The optimization meant that every extend code path had to emit llvm
IR for from_iter and extend spec_extend, which likely impacts
compile times while only improving a few edge-cases
2020-09-03 20:59:35 +02:00
The8472
80638330f2
support in-place collect for MapWhile adapters
2020-09-03 20:59:32 +02:00
The8472
5530858a08
generalize in-place collect to types of same size and alignment
2020-09-03 20:59:31 +02:00
The8472
470bf54f94
test drops during in-place iteration
2020-09-03 20:59:27 +02:00
The8472
fd16202e36
include in-place .zip() in test
2020-09-03 20:59:21 +02:00
The8472
2b0b2ae9f6
additional specializations tests
2020-09-03 20:59:17 +02:00
The8472
bb2d533bb9
in-place collect for Vec. Box<[]> and BinaryHeap IntoIter and some adapters
2020-09-03 20:59:03 +02:00
Rune Tynan
3e29fdb0fb
Remove a number of vec UI tests, make them unit tests in the alloc library
2020-09-03 01:40:15 -04:00
Matt Brubeck
b4b383981a
Add PartialEq impls for Vec <-> slice
2020-08-27 13:32:36 -07:00
Ivan Tham
a7468705cb
Use translated variable for test string
...
Test should be educative, added english translation and pronounciation.
2020-08-24 22:47:15 +08:00
Stein Somers
ff45df2acf
Move btree unit test to their native, privileged location
2020-08-14 17:54:09 +02:00
Lukas Kalbertodt
db99f98c3e
Put panic code path from copy_from_slice
into cold function
...
The previous `assert_eq` generated quite some code, which is especially
problematic when this call is inlined. This commit also slightly
improves the panic message from:
assertion failed: `(left == right)`
left: `3`,
right: `2`: destination and source slices have different lengths
...to:
source slice length (2) does not match destination slice length (3)
2020-08-12 21:12:21 +02:00
Nazım Can Altınova
29d9233cf6
Add unit tests for new BTreeMap::into_{keys,values}
methods
2020-08-07 13:13:42 +02:00
Tim Diekmann
ab9362ad9a
Replace Memoryblock
with NonNull<[u8]>
2020-08-04 18:03:34 +02:00
Tim Diekmann
24ddf76ed7
Merge branch 'master' into remove-in-place-alloc
2020-08-03 02:18:20 +02:00
Manish Goregaokar
9471ab068c
Rollup merge of #75059 - shengsheng:typos, r=Dylan-DPC
...
fix typos
Fix common misspellings with https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
2020-08-02 13:08:47 -07:00
liuzhenyu
3b4151c9f3
fix typos
2020-08-02 23:20:00 +08:00
Ralf Jung
ff0c3a9209
expand comments
2020-07-31 14:03:42 +02:00
Ralf Jung
7e168a696f
reduce slice::panic_safe test size further in Miri
2020-07-31 11:56:08 +02:00
Tim Diekmann
076ef66ba2
Remove in-place allocation and revert to separate methods for zeroed allocations
...
Fix docs
2020-07-28 12:41:18 +02:00
Aleksey Kladov
6e9dc7d9ff
Add str::[r]split_once
...
This is useful for quick&dirty parsing of key: value config pairs
2020-07-28 09:58:20 +02:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00