rust/compiler/rustc_middle/src
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
..
dep_graph Allow LocalDefId as the argument to def_path_str 2023-04-21 22:27:20 +00:00
hir Use Option::is_some_and and Result::is_ok_and in the compiler 2023-05-24 14:20:41 +00:00
infer Use OpaqueTypeKey in query response 2023-05-10 23:41:06 +00:00
middle Use Option::is_some_and and Result::is_ok_and in the compiler 2023-05-24 14:20:41 +00:00
mir Auto merge of #111673 - cjgillot:dominator-preprocess, r=cjgillot,tmiasko 2023-05-24 16:18:21 +00:00
query Rollup merge of #111870 - WaffleLapkin:just_🌟traits🌟_query, r=compiler-errors 2023-05-24 06:05:38 +02:00
thir offset_of 2023-04-21 02:14:02 -07:00
traits Auto merge of #111754 - lcnr:recursion-depth, r=matthewjasper 2023-05-22 17:56:26 +00:00
ty Use Option::is_some_and and Result::is_ok_and in the compiler 2023-05-24 14:20:41 +00:00
util Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
arena.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
error.rs Remove LangItems::require 2023-05-16 19:53:38 +02:00
lib.rs Finish move of query.rs 2023-05-17 01:57:21 +02:00
lint.rs Restrict From<S> for {D,Subd}iagnosticMessage. 2023-05-03 08:44:39 +10:00
macros.rs Simplify CloneLiftImpls and TrivialTypeTraversalImpls. 2023-04-16 14:19:50 +10:00
metadata.rs rustc_metadata: Remove Span from ModChild 2023-04-18 17:25:04 +03:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Remove unused TypeFoldable/TypeVisitable impls. 2023-04-26 15:19:50 +10:00
values.rs Avoid ICEing miri on layout query cycles 2023-05-02 16:14:20 +00:00