Frank Steffahn
a957cefda6
Fix a bunch of typos
2021-12-14 16:40:43 +01:00
Maybe Waffle
cf6f64a963
Make slice->str conversion and related functions const
...
This commit makes the following functions from `core::str` `const fn`:
- `from_utf8[_mut]` (`feature(const_str_from_utf8)`)
- `from_utf8_unchecked_mut` (`feature(const_str_from_utf8_unchecked_mut)`)
- `Utf8Error::{valid_up_to,error_len}` (`feature(const_str_from_utf8)`)
2021-11-18 00:50:42 +03:00
John Kugelman
68b0d86294
Add #[must_use] to remaining core functions
2021-10-30 18:21:29 -04:00
Alexis Bourget
cd04731d3a
Add test for the fix
2021-07-11 17:47:57 +02:00
hi-rustin
88abd7d81d
Lint for unused borrows as part of UNUSED_MUST_USE
2021-06-18 15:09:40 +08:00
Yechan Bae
6d43225bfb
Fixes #80335
2021-02-03 16:36:33 -05:00
Ralf Jung
7e74b72d13
break formatting so rustfmt is happy
2020-12-02 14:09:36 +01:00
Ralf Jung
67a67d827a
disable a ptr equality test on Miri
2020-12-02 13:49:33 +01:00
Christiaan Dirkx
be554c4101
Make ui test that are run-pass and do not test the compiler itself library tests
2020-11-30 02:47:32 +01:00
Josh Stone
9202fbdbdb
Check for exhaustion in SliceIndex for RangeInclusive
2020-10-20 17:18:08 -07:00
Ayush Kumar Mishra
7d834c87d2
Move Various str tests in library
2020-09-05 17:24:06 +05:30
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