rust/compiler/rustc_session/src
bors c1691db366 Auto merge of #113218 - lqd:polonius-scopes, r=jackh726
Compute NLL loan scopes using the polonius model

For a *location-insensitive* analysis (that is, without expressiveness improvements for users yet), this PR implements loans going out of scope using reachability and liveness, rather than checking if the issuing region's values contain a given CFG point. This is equivalent to NLL scopes and computes the same data.

r? `@matthewjasper`

A couple of notes:
- there are some assumptions about SCC representatives, placeholders, free regions, and member constraints that I believe hold, and they're documented in the code
- this passes all the UI tests with `-Zpolonius=next` -- the perf is [not terrible](https://github.com/rust-lang/rust/pull/112432#issuecomment-1749685862) and there are a bunch of ways to improve it in the future.
- there's a fixme left, hopefully Matthew you know a clean way to get the information it mentions.
2023-10-11 16:46:03 +00:00
..
config Change process spawning to inherit the parent's signal mask by default 2022-10-20 14:53:38 -07:00
cgu_reuse_tracker.rs Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
code_stats.rs fix couple of clippy findings: 2023-07-23 10:50:14 +02:00
config.rs Auto merge of #113218 - lqd:polonius-scopes, r=jackh726 2023-10-11 16:46:03 +00:00
cstore.rs Use FreezeLock for CStore 2023-09-09 16:02:11 +02:00
errors.rs unknown unstable lint command line 2023-08-22 18:58:39 +08:00
filesearch.rs bump windows crate 0.46 -> 0.48 in workspace 2023-05-09 18:20:13 +03:00
lib.rs consistency check for self-contained linking components CLI options 2023-10-08 21:57:39 +00:00
options.rs Auto merge of #113218 - lqd:polonius-scopes, r=jackh726 2023-10-11 16:46:03 +00:00
output.rs Make .rmeta file in dep-info have correct name (lib prefix) 2023-09-03 07:14:12 +02:00
parse.rs unknown unstable lint command line 2023-08-22 18:58:39 +08:00
search_paths.rs Provide more context for rustc +nightly -Zunstable-options on stable 2023-06-27 23:23:33 +08:00
session.rs Auto merge of #116001 - fmease:validate-crate-name-extern-cli-opt, r=est31 2023-09-22 19:57:07 +00:00
utils.rs Validate crate name in CLI option --extern 2023-09-20 18:50:40 +02:00