rust/compiler/rustc_session/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
..
cgu_reuse_tracker.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
code_stats.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
config.rs Rollup merge of #78875 - petrochenkov:cleantarg, r=Mark-Simulacrum 2020-11-10 14:45:21 +01:00
filesearch.rs Dogfood {exclusive,half-open} ranges in compiler (nfc) 2020-10-28 20:09:20 -07:00
lib.rs Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
options.rs Responded to all feedback as of 2020-10-30 2020-11-05 18:24:18 -08:00
output.rs Collapse all uses of target.options.foo into target.foo 2020-11-08 17:29:13 +03:00
parse.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
search_paths.rs use strip_prefix over starts_with and manual slicing based on pattern length (clippy::manual_strip) 2020-09-17 10:13:16 +02:00
session.rs Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
utils.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00