rust/compiler/rustc_expand/src
León Orell Valerian Liehr 8e606a6928
Rollup merge of #118253 - dtolnay:issomeand, r=compiler-errors
Replace `option.map(cond) == Some(true)` with `option.is_some_and(cond)`

Requested by `@fmease` in https://github.com/rust-lang/rust/pull/118226#pullrequestreview-1747432292.

There is also a much larger number of `option.map_or(false, cond)` that can be changed separately if someone wants.

r? fmease
2023-11-25 10:21:06 +01:00
..
mbe Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
mut_visit rustc_ast: Turn MutVisitor::token_visiting_enabled into a constant 2021-10-18 00:23:24 +03:00
parse Auto merge of #114115 - nnethercote:less-token-tree-cloning, r=petrochenkov 2023-07-28 01:21:27 +00:00
tokenstream Remove TokenStreamBuilder. 2022-10-05 12:42:54 +11:00
base.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
build.rs Add Span to TraitBoundModifier 2023-11-24 14:32:05 +00:00
config.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
errors.rs Mention the syntax for use on mod foo; if foo doesn't exist 2023-10-21 15:56:01 +00:00
expand.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
lib.rs Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
mbe.rs Move macro_rules diagnostics to diagnostics module 2022-11-20 13:06:44 +01:00
module.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
placeholders.rs Minimize pub usage in source_map.rs. 2023-11-02 19:35:00 +11:00
proc_macro_server.rs Fix clippy::needless_borrow in the compiler 2023-11-21 20:13:40 +01:00
proc_macro.rs More detail when expecting expression but encountering bad macro argument 2023-11-16 16:19:04 +00:00
tests.rs Replace option.map(cond) == Some(true) with option.is_some_and(cond) 2023-11-24 09:14:09 -08:00