diff options
| author | Simon Vandel Sillesen <simon.vandel@gmail.com> | 2020-10-04 10:26:29 +0200 |
|---|---|---|
| committer | Simon Vandel Sillesen <simon.vandel@gmail.com> | 2021-02-21 21:22:04 +0100 |
| commit | ccecc4f6bf3ba62b0c8be29791a0857ea742ae6b (patch) | |
| tree | 49f0bc163e63194e9b08f2c0aba97e744ed538e8 | |
| parent | 3e826bb11228508fbe749e594038d6727208aa94 (diff) | |
| download | rust-ccecc4f6bf3ba62b0c8be29791a0857ea742ae6b.tar.gz rust-ccecc4f6bf3ba62b0c8be29791a0857ea742ae6b.zip | |
Drive-by formatting of comment
| -rw-r--r-- | compiler/rustc_mir/src/transform/simplify_try.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir/src/transform/simplify_try.rs b/compiler/rustc_mir/src/transform/simplify_try.rs index 05a88828070..b42543c04eb 100644 --- a/compiler/rustc_mir/src/transform/simplify_try.rs +++ b/compiler/rustc_mir/src/transform/simplify_try.rs @@ -696,8 +696,8 @@ impl<'a, 'tcx> SimplifyBranchSameOptimizationFinder<'a, 'tcx> { /// _0 = move _1; // bb2 /// ``` /// In this case the two statements are equal iff - /// 1: _0 is an enum where the variant index 0 is fieldless, and - /// 2: bb1 was targeted by a switch where the discriminant of _1 was switched on + /// - `_0` is an enum where the variant index 0 is fieldless, and + /// - bb1 was targeted by a switch where the discriminant of `_1` was switched on fn statement_equality( &self, adt_matched_on: Place<'tcx>, |
