rust/compiler/rustc_borrowck/src/diagnostics
Manish Goregaokar d0b3ebee66
Rollup merge of #111912 - WaffleLapkin:is_some_and_in_the_compiler, r=petrochenkov
Use `Option::is_some_and` and `Result::is_ok_and` in the compiler

`.is_some_and(..)`/`.is_ok_and(..)` replace `.map_or(false, ..)` and `.map(..).unwrap_or(false)`, making the code more readable.

This PR is a sibling of https://github.com/rust-lang/rust/pull/111873#issuecomment-1561316515
2023-05-24 15:05:05 -07:00
..
bound_region_errors.rs Use ObligationCtxt in custom type ops 2023-05-24 16:06:32 +00:00
conflict_errors.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
explain_borrow.rs Use is_some_and/is_ok_and in less obvious spots 2023-05-24 14:33:43 +00:00
find_all_local_uses.rs rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
find_use.rs Remove ToRegionVid. 2023-04-13 12:20:41 +10:00
mod.rs Use Option::is_some_and and Result::is_ok_and in the compiler 2023-05-24 14:20:41 +00:00
move_errors.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
mutability_errors.rs Use is_some_and/is_ok_and in less obvious spots 2023-05-24 14:33:43 +00:00
outlives_suggestion.rs Use is_some_and/is_ok_and in less obvious spots 2023-05-24 14:33:43 +00:00
region_errors.rs Rollup merge of #110827 - compiler-errors:issue-110761-followup, r=cjgillot 2023-05-08 11:39:20 +05:30
region_name.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
var_name.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00