rust/compiler/rustc_mir_dataflow/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
..
framework Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
impls Add defaults for Analysis::apply_{call_return_effect,terminator_effect}. 2024-10-14 16:35:47 +11:00
move_paths Get rid of const eval_* and try_eval_* helpers 2024-10-19 18:07:35 +00:00
debuginfo.rs Preserve DebugInfo in DeadStoreElimination. 2023-10-06 15:46:11 +00:00
drop_flag_effects.rs Stop using MoveDataParamEnv for places that don't need a param-env 2024-07-29 11:59:47 -04:00
elaborate_drops.rs Get rid of const eval_* and try_eval_* helpers 2024-10-19 18:07:35 +00:00
errors.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
lib.rs Merge AnalysisDomain into Analysis. 2024-10-14 16:35:47 +11:00
points.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
rustc_peek.rs Remove Analysis::into_engine. 2024-10-30 09:41:46 +11:00
storage.rs Replace Body::basic_blocks() with field access 2022-08-26 14:27:08 +02:00
un_derefer.rs Avoid unnecessary exports. 2023-11-23 14:06:57 +11:00
value_analysis.rs Merge AnalysisDomain into Analysis. 2024-10-14 16:35:47 +11:00