rust/compiler/rustc_codegen_llvm/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
..
back Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
coverageinfo Addressed all feedback to date 2020-11-05 18:24:17 -08:00
debuginfo Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
llvm Rollup merge of #77950 - arlosi:sha256, r=eddyb 2020-11-03 19:32:26 +01:00
abi.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
allocator.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
asm.rs Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
attributes.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
base.rs Replace target.target with target and target.ptr_width with target.pointer_width 2020-10-15 12:02:24 +02:00
builder.rs Fix even more clippy warnings 2020-10-30 10:13:39 -04:00
callee.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
common.rs s/Scalar::Raw/Scalar::Int 2020-11-04 10:11:31 +00:00
consts.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
context.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
declare.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
intrinsic.rs Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
lib.rs Rollup merge of #77795 - bjorn3:codegen_backend_interface_refactor, r=oli-obk 2020-10-14 02:30:38 +02:00
llvm_util.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
metadata.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
mono_item.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
type_.rs Remove MMX from Rust 2020-09-20 15:13:11 +02:00
type_of.rs Remove MMX from Rust 2020-09-20 15:13:11 +02:00
va_arg.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00