rust/compiler/rustc_borrowck/src
Nicholas Nethercote e54c177118 Remove Analysis::into_engine.
This is a standard pattern:
```
MyAnalysis.into_engine(tcx, body).iterate_to_fixpoint()
```
`into_engine` and `iterate_to_fixpoint` are always called in pairs, but
sometimes with a builder-style `pass_name` call between them. But a
builder-style interface is overkill here. This has been bugging me a for
a while.

This commit:
- Merges `Engine::new` and `Engine::iterate_to_fixpoint`. This removes
  the need for `Engine` to have fields, leaving it as a trivial type
  that the next commit will remove.
- Renames `Analysis::into_engine` as `Analysis::iterate_to_fixpoint`,
  gives it an extra argument for the optional pass name, and makes it
  call `Engine::iterate_to_fixpoint` instead of `Engine::new`.

This turns the pattern from above into this:
```
MyAnalysis.iterate_to_fixpoint(tcx, body, None)
```
which is shorter at every call site, and there's less plumbing required
to support it.
2024-10-30 09:41:46 +11:00
..
constraints Rename and reorder lots of lifetimes. 2024-09-13 15:46:20 +10:00
diagnostics Rollup merge of #127675 - chenyukang:yukang-fix-127562-addr, r=petrochenkov 2024-10-19 22:00:55 +02:00
polonius various fixes for naked_asm! implementation 2024-10-06 19:00:09 +02:00
region_infer Rollup merge of #131225 - nnethercote:rustc_borrowck-mm, r=lqd 2024-10-07 11:10:54 -07:00
type_check Get rid of const eval_* and try_eval_* helpers 2024-10-19 18:07:35 +00:00
util Add warn(unreachable_pub) to rustc_borrowck. 2024-08-16 08:46:57 +10:00
borrow_set.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
borrowck_errors.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
consumers.rs Avoid Rc in BodyWithBorrowckFacts. 2024-10-04 16:48:16 +10:00
dataflow.rs Add defaults for Analysis::apply_{call_return_effect,terminator_effect}. 2024-10-14 16:35:47 +11:00
def_use.rs Rollup merge of #126013 - nnethercote:unreachable_pub, r=Urgau 2024-08-27 00:41:57 +02:00
facts.rs Dogfood feature(file_buffered) 2024-09-24 14:25:16 -07:00
lib.rs Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
location.rs Remove #[macro_use] extern crate tracing from rustc_borrowck. 2024-08-30 17:14:53 +10:00
member_constraints.rs Remove #[macro_use] extern crate tracing from rustc_borrowck. 2024-08-30 17:14:53 +10:00
nll.rs yeet some clones 2024-10-12 10:59:12 +02:00
path_utils.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
place_ext.rs Remove #[macro_use] extern crate tracing from rustc_borrowck. 2024-08-30 17:14:53 +10:00
places_conflict.rs update rustc_borrowck::places_conflict doc-comment 2024-10-10 10:33:29 +03:00
prefixes.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00
renumber.rs Fix some pub(crate) that were undetected bc of instrument 2024-10-04 14:02:09 -04:00
session_diagnostics.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
universal_regions.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
used_muts.rs Remove unnecessary lifetimes in dataflow structs. 2024-09-09 16:14:18 +10:00