rust/compiler
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
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
rustc_ast_lowering Implement destructuring assignment for tuples 2020-11-07 13:17:19 +00:00
rustc_ast_passes Rollup merge of #78875 - petrochenkov:cleantarg, r=Mark-Simulacrum 2020-11-10 14:45:21 +01:00
rustc_ast_pretty
rustc_attr
rustc_builtin_macros Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
rustc_codegen_cranelift Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
rustc_codegen_llvm Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
rustc_codegen_ssa Rollup merge of #78875 - petrochenkov:cleantarg, r=Mark-Simulacrum 2020-11-10 14:45:21 +01:00
rustc_data_structures
rustc_driver
rustc_error_codes
rustc_errors
rustc_expand Rollup merge of #78710 - petrochenkov:macvisit, r=davidtwco 2020-11-09 19:06:55 +01:00
rustc_feature Add #[cfg(panic = "...")] 2020-11-09 15:30:49 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Rollup merge of #76765 - guswynn:async_return, r=tmandry 2020-11-10 14:45:09 +01:00
rustc_interface Rollup merge of #78710 - petrochenkov:macvisit, r=davidtwco 2020-11-09 19:06:55 +01:00
rustc_lexer
rustc_lint Rollup merge of #78710 - petrochenkov:macvisit, r=davidtwco 2020-11-09 19:06:55 +01:00
rustc_lint_defs Rollup merge of #78114 - jyn514:private, r=oli-obk 2020-11-09 01:13:31 +01:00
rustc_llvm
rustc_macros Small cleanup in TypeFoldable derive macro 2020-11-07 18:20:42 +01:00
rustc_metadata Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
rustc_middle Rollup merge of #78890 - o752d:patch-2, r=jyn514 2020-11-10 14:45:25 +01:00
rustc_mir Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
rustc_mir_build Rollup merge of #78748 - fanzier:tuple-assignment, r=petrochenkov 2020-11-09 01:13:44 +01:00
rustc_parse Rollup merge of #78710 - petrochenkov:macvisit, r=davidtwco 2020-11-09 19:06:55 +01:00
rustc_parse_format
rustc_passes Rollup merge of #78875 - petrochenkov:cleantarg, r=Mark-Simulacrum 2020-11-10 14:45:21 +01:00
rustc_plugin_impl
rustc_privacy
rustc_query_system
rustc_resolve Rollup merge of #78860 - petrochenkov:resolvefmt, r=Mark-Simulacrum 2020-11-08 13:36:30 +01:00
rustc_save_analysis
rustc_serialize
rustc_session Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
rustc_span Add #[cfg(panic = "...")] 2020-11-09 15:30:49 +00:00
rustc_symbol_mangling
rustc_target Rollup merge of #78875 - petrochenkov:cleantarg, r=Mark-Simulacrum 2020-11-10 14:45:21 +01:00
rustc_trait_selection Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
rustc_traits Rollup merge of #78502 - matthewjasper:chalkup, r=nikomatsakis 2020-11-09 19:06:46 +01:00
rustc_ty
rustc_typeck Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00