1
Fork 0
rust/compiler/rustc_ast/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
..
ast mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
attr Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
expand mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
util Auto merge of #78066 - bugadani:wat, r=jonas-schievink 2020-10-18 13:50:31 +00:00
ast.rs Treat trailing semicolon as a statement in macro call 2020-11-02 13:03:13 -05:00
crate_disambiguator.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
entry.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
lib.rs tidy 2020-09-23 22:08:30 +02:00
mut_visit.rs Rollup merge of #78710 - petrochenkov:macvisit, r=davidtwco 2020-11-09 19:06:55 +01:00
node_id.rs The renumber pass is long gone 2020-11-06 03:18:01 +01:00
ptr.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
token.rs Suggest expressions that look like const generic arguments should be enclosed in brackets 2020-10-26 21:54:45 +00:00
tokenstream.rs Expand NtExpr tokens only in key-value attributes 2020-11-03 00:53:43 +03:00
visit.rs rustc_ast: visit_mac -> visit_mac_call 2020-11-03 23:39:51 +03:00