1
Fork 0
rust/compiler/rustc_builtin_macros/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
..
deriving rustc_ast: visit_mac -> visit_mac_call 2020-11-03 23:39:51 +03:00
format_foreign mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
asm.rs rustc_parse: Make Parser::unexpected public and use it in built-in macros 2020-10-06 00:23:36 +03:00
assert.rs rustc_parse: Make Parser::unexpected public and use it in built-in macros 2020-10-06 00:23:36 +03:00
cfg.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
cfg_accessible.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
cmdline_attrs.rs Unconditionally capture tokens for attributes. 2020-10-21 18:57:29 -04:00
compile_error.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
concat.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
concat_idents.rs expand: Stop un-interpolating NtIdents before passing them to built-in macros 2020-09-28 23:10:44 +03:00
env.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
format.rs Point at named argument not found when using format_args_capture instead of whole format string 2020-09-08 10:10:45 -07:00
format_foreign.rs Simplify using is_ascii_alphabetic and is_ascii_alphanumeric 2020-10-11 22:27:21 +02:00
global_allocator.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
global_asm.rs Attach TokenStream to ast::Visibility 2020-09-10 17:33:06 -04:00
lib.rs /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
llvm_asm.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
log_syntax.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
proc_macro_harness.rs rustc_ast: Do not panic by default when visiting macro calls 2020-11-03 20:38:20 +03:00
source_util.rs Remove extra indirection in LitKind::ByteStr 2020-10-04 15:52:15 -06:00
standard_library_imports.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
test.rs Attach TokenStream to ast::Visibility 2020-09-10 17:33:06 -04:00
test_harness.rs Changed unwrap_or to unwrap_or_else in some places. 2020-11-10 20:07:47 -08:00
trace_macros.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
util.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00