rust/compiler/rustc_borrowck/src
Dylan DPC 83f10ea5b7
Rollup merge of #105300 - aliemjay:member-lower, r=oli-obk
rework min_choice algorithm of member constraints

See [this comment](https://github.com/rust-lang/rust/pull/105300#issuecomment-1384312743) for the description of the new algorithm.

Fixes #63033
Fixes #104639

This uses a more general algorithm than #89056 that doesn't treat `'static` as a special case. It thus accepts more code. For example:
```rust
async fn test2<'s>(_: &'s u8, _: &'_ &'s u8, _: &'_ &'s u8) {}
```
I claim it's more correct as well because it fixes #104639.

cc ``@nikomatsakis`` ``@lqd`` ``@tmandry`` ``@eholk`` ``@chenyukang`` ``@oli-obk``

r? types
2023-02-15 12:24:53 +05:30
..
constraints Auto merge of #105880 - Nilstrieb:make-newtypes-less-not-rust, r=oli-obk 2022-12-20 07:27:01 +00:00
diagnostics Change to ReError(ErrorGuaranteed) 2023-02-09 10:26:49 +00:00
region_infer Rollup merge of #105300 - aliemjay:member-lower, r=oli-obk 2023-02-15 12:24:53 +05:30
type_check s/eval_usize/eval_target_usize/ for clarity 2023-02-14 08:51:19 +00:00
borrow_set.rs rustc_borrowck: remove ref patterns 2022-12-06 14:45:58 +00:00
borrowck_errors.rs Tweak E0597 2023-01-15 19:46:20 +00:00
constraint_generation.rs lint auto pass 2022-11-09 20:42:16 +08:00
consumers.rs Change src/test to tests in source files, fix tidy and tests 2023-01-11 09:32:13 +00:00
dataflow.rs Create stable metric to measure long computation in Const Eval 2023-01-23 23:56:22 +00:00
def_use.rs lint auto pass 2022-11-09 20:42:16 +08:00
facts.rs Use fmt named parameters in rustc_borrowck 2023-01-06 19:34:45 -05:00
invalidation.rs Create stable metric to measure long computation in Const Eval 2023-01-23 23:56:22 +00:00
lib.rs Put a DefId in AggregateKind. 2023-02-02 23:09:51 +00:00
location.rs A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
member_constraints.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
nll.rs session: diagnostic migration lint on more fns 2023-01-30 17:11:35 +00:00
path_utils.rs lint auto pass 2022-11-09 20:42:16 +08:00
place_ext.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
places_conflict.rs Removed various double spaces in compiler source comments. 2023-01-14 17:34:59 +01:00
prefixes.rs lint auto pass 2022-11-09 20:42:16 +08:00
renumber.rs lint auto pass 2022-11-09 20:42:16 +08:00
session_diagnostics.rs errors: implement IntoDiagnosticArg for &T 2023-01-30 17:11:34 +00:00
universal_regions.rs Use 'static RegionVid for ReError 2023-02-09 10:26:50 +00:00
used_muts.rs lint auto pass 2022-11-09 20:42:16 +08:00