Skip to content

Commit e2edee4

Browse files
committed
No matter how trivial the change, tidy always finds a way to complain...
1 parent 6f7dea7 commit e2edee4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/test/codegen/try_identity.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ type R = Result<u64, i32>;
99

1010
// This was written to the `?` from `try_trait`, but `try_trait_v2` uses a different structure,
1111
// so the relevant desugar is copied inline in order to keep the test testing the same thing.
12-
// FIXME(#85133): while this might be useful for `r#try!`, it would be nice to have a MIR optimization
13-
// that picks up the `?` desugaring, as `SimplifyArmIdentity` does not. See #85133
12+
// FIXME(#85133): while this might be useful for `r#try!`, it would be nice to have a MIR
13+
// optimization that picks up the `?` desugaring, as `SimplifyArmIdentity` does not.
1414
#[no_mangle]
1515
pub fn try_identity(x: R) -> R {
1616
// CHECK: start:

src/test/mir-opt/simplify-arm.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ fn from_error<T, E>(e: E) -> Result<T, E> {
3030

3131
// This was written to the `?` from `try_trait`, but `try_trait_v2` uses a different structure,
3232
// so the relevant desugar is copied inline in order to keep the test testing the same thing.
33-
// FIXME(#85133): while this might be useful for `r#try!`, it would be nice to have a MIR optimization
34-
// that picks up the `?` desugaring, as `SimplifyArmIdentity` does not. See #85133
33+
// FIXME(#85133): while this might be useful for `r#try!`, it would be nice to have a MIR
34+
// optimization that picks up the `?` desugaring, as `SimplifyArmIdentity` does not.
3535
fn id_try(r: Result<u8, i32>) -> Result<u8, i32> {
3636
let x = match into_result(r) {
3737
Err(e) => return from_error(From::from(e)),

src/test/mir-opt/simplify_try.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ fn from_error<T, E>(e: E) -> Result<T, E> {
1515

1616
// This was written to the `?` from `try_trait`, but `try_trait_v2` uses a different structure,
1717
// so the relevant desugar is copied inline in order to keep the test testing the same thing.
18-
// FIXME(#85133): while this might be useful for `r#try!`, it would be nice to have a MIR optimization
19-
// that picks up the `?` desugaring, as `SimplifyArmIdentity` does not. See #85133
18+
// FIXME(#85133): while this might be useful for `r#try!`, it would be nice to have a MIR
19+
// optimization that picks up the `?` desugaring, as `SimplifyArmIdentity` does not.
2020
fn try_identity(x: Result<u32, i32>) -> Result<u32, i32> {
2121
let y = match into_result(x) {
2222
Err(e) => return from_error(From::from(e)),

0 commit comments

Comments
 (0)