1
Fork 0
rust/src/libstd
Dylan DPC 67d735c4bf
Rollup merge of #69736 - matthiaskrgr:even_more_clippy, r=Dylan-DPC
even more clippy cleanups

* Don't pass &mut where immutable reference (&) is sufficient (clippy::unnecessary_mut_passed)
* Use more efficient &&str to String conversion (clippy::inefficient_to_string)
* Don't always eval arguments inside .expect(), use unwrap_or_else and closure. (clippy::expect_fun_call)
* Use righthand '&' instead of lefthand "ref". (clippy::toplevel_ref_arg)
* Use simple 'for i in x' loops instead of 'while let Some(i) = x.next()' loops on iterators. (clippy::while_let_on_iterator)
* Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes)
* Remove redundant patterns when matching ( x @ _  to  x) (clippy::redundant_pattern)
2020-03-05 22:04:10 +01:00
..
benches Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
collections Rollup merge of #67642 - Mark-Simulacrum:relax-bounds, r=Amanieu 2020-02-13 02:52:46 +01:00
ffi Rollup merge of #64069 - danielhenrymantilla:feature/cstring_from_vec_of_nonzerou8, r=KodrAus 2020-02-15 09:45:38 +01:00
io use char instead of &str for single char patterns 2020-02-27 14:57:22 +01:00
net Don't convert Results to Options just for matching. 2020-03-02 15:31:14 +01:00
os Add support for RISC-V 64-bit GNU/Linux 2020-01-01 09:52:18 +07:00
prelude Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
sync Stabilize Once::is_completed 2020-02-07 21:53:22 -08:00
sys Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes) 2020-03-05 16:38:24 +01:00
sys_common Fix failing backtrace ui tests 2020-02-11 16:57:22 -08:00
tests stdarch: update submodule. 2020-02-01 22:04:18 -05:00
thread Add an unstable conversion from thread ID to u64 2020-01-06 10:56:13 -05:00
alloc.rs Remove usable_size APIs 2020-03-03 00:08:24 +01:00
ascii.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
backtrace.rs use is_empty() instead of len() == x to determine if structs are empty. 2020-02-28 15:16:27 +01:00
build.rs remove dependency from libhermit 2019-11-25 08:59:23 +01:00
Cargo.toml Bump version to backtrace without the header 2020-02-10 14:20:21 -08:00
env.rs Add support for RISC-V 64-bit GNU/Linux 2020-01-01 09:52:18 +07:00
error.rs inline impl From<String> for Box<dyn Error + Send + Sync> 2020-01-10 19:27:02 +00:00
f32.rs Add notice about using new consts in new code on float modules 2020-02-12 20:20:56 +01:00
f64.rs Add notice about using new consts in new code on float modules 2020-02-12 20:20:56 +01:00
fs.rs Reword OpenOptions::{create, create_new} doc. 2020-02-19 19:57:32 +10:00
future.rs Fix tests after rebase 2020-02-14 22:40:03 +00:00
keyword_docs.rs docs: add mention of async blocks in move keyword docs 2020-02-28 16:47:29 +05:30
lib.rs Auto merge of #68952 - faern:stabilize-assoc-int-consts, r=dtolnay 2020-03-04 07:29:32 +00:00
macros.rs Update macros.rs: fix documentation typo. 2020-03-04 14:18:31 -05:00
memchr.rs libstd => 2018 2019-02-28 04:06:15 +09:00
num.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
panic.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
panicking.rs Auto merge of #68708 - Mark-Simulacrum:stage0-step, r=pietroalbini 2020-02-04 14:16:18 +00:00
path.rs remove unneeded .as_ref() calls. 2020-02-29 02:16:04 +01:00
primitive_docs.rs Add notice about using new consts in new code on float modules 2020-02-12 20:20:56 +01:00
process.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
rt.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
time.rs correct comment to match behavior 2020-02-29 08:40:09 -05:00