diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-10 10:54:36 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-13 06:20:11 +1100 |
| commit | 87090a97e3de431bf15832d9389bf07a969e2791 (patch) | |
| tree | 48eef82b1e7e54d461fb116cc76d200002ebc15e | |
| parent | c5cfcdc4ac0880b171dc0004c660e3a6fd315ee0 (diff) | |
| download | rust-87090a97e3de431bf15832d9389bf07a969e2791.tar.gz rust-87090a97e3de431bf15832d9389bf07a969e2791.zip | |
Remove an outdated comment.
`phase_3_run_analysis_passes` no longer exists, and AFAICT this code has been refactored so much since this comment was written that it no longer has any useful meaning.
| -rw-r--r-- | compiler/rustc_driver_impl/src/pretty.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_driver_impl/src/pretty.rs b/compiler/rustc_driver_impl/src/pretty.rs index bae0d3dd6a6..4a5198080a2 100644 --- a/compiler/rustc_driver_impl/src/pretty.rs +++ b/compiler/rustc_driver_impl/src/pretty.rs @@ -451,10 +451,6 @@ pub fn print_after_hir_lowering<'tcx>(tcx: TyCtxt<'tcx>, ppm: PpMode) { write_or_print(&out, tcx.sess); } -// In an ideal world, this would be a public function called by the driver after -// analysis is performed. However, we want to call `phase_3_run_analysis_passes` -// with a different callback than the standard driver, so that isn't easy. -// Instead, we call that function ourselves. fn print_with_analysis(tcx: TyCtxt<'_>, ppm: PpMode) -> Result<(), ErrorGuaranteed> { tcx.analysis(())?; let out = match ppm { |
