1
Fork 0
rust/compiler/rustc_hir/src
Nicholas-Baron 261ca04c92 Changed unwrap_or to unwrap_or_else in some places.
The discussion seems to have resolved that this lint is a bit "noisy" in
that applying it in all places would result in a reduction in
readability.

A few of the trivial functions (like `Path::new`) are fine to leave
outside of closures.

The general rule seems to be that anything that is obviously an
allocation (`Box`, `Vec`, `vec![]`) should be in a closure, even if it
is a 0-sized allocation.
2020-11-10 20:07:47 -08:00
..
arena.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
def.rs add tests for self with const params 2020-10-23 22:10:44 +02:00
definitions.rs Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
hir.rs Rollup merge of #78748 - fanzier:tuple-assignment, r=petrochenkov 2020-11-09 01:13:44 +01:00
hir_id.rs Remove unused code from rustc_hir 2020-10-14 04:14:32 +02:00
intravisit.rs Lower inline const down to MIR 2020-10-16 15:21:18 -03:00
itemlikevisit.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
lang_items.rs Fix const core::panic!(non_literal_str). 2020-10-22 18:41:35 +02:00
lib.rs [WIP] give better errors for broken intra doc links 2020-09-05 13:48:19 -04:00
pat_util.rs Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
stable_hash_impls.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
target.rs Prevent #[doc(alias = "...")] at crate level 2020-10-03 21:33:47 +02:00
weak_lang_items.rs hir: replace lazy_static by SyncLazy from std 2020-09-01 22:06:47 +01:00