diff options
| author | scottmcm <scottmcm@users.noreply.github.com> | 2021-05-18 18:29:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-18 18:29:34 +0000 |
| commit | 6f7dea74d7699707cfdcf81435c200923d0a5047 (patch) | |
| tree | 416c142b1b042f700328cdaf006b0e9092907fc3 /src | |
| parent | bf0e34c00159b60472ca2f78adb8837b9f5849a2 (diff) | |
Mention the issue number for the new mir-opt in the FIXMEs
Thanks for the suggestions, lcnr! Co-authored-by: lcnr <rust@lcnr.de>
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/codegen/try_identity.rs | 2 | ||||
| -rw-r--r-- | src/test/mir-opt/simplify-arm.rs | 2 | ||||
| -rw-r--r-- | src/test/mir-opt/simplify_try.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/codegen/try_identity.rs b/src/test/codegen/try_identity.rs index 71bfc3b44da..0363b9dd19e 100644 --- a/src/test/codegen/try_identity.rs +++ b/src/test/codegen/try_identity.rs @@ -9,7 +9,7 @@ type R = Result<u64, i32>; // This was written to the `?` from `try_trait`, but `try_trait_v2` uses a different structure, // so the relevant desugar is copied inline in order to keep the test testing the same thing. -// FIXME: while this might be useful for `r#try!`, it would be nice to have a MIR optimization +// FIXME(#85133): while this might be useful for `r#try!`, it would be nice to have a MIR optimization // that picks up the `?` desugaring, as `SimplifyArmIdentity` does not. See #85133 #[no_mangle] pub fn try_identity(x: R) -> R { diff --git a/src/test/mir-opt/simplify-arm.rs b/src/test/mir-opt/simplify-arm.rs index 6a6e39e68f9..e0c7b95a5ec 100644 --- a/src/test/mir-opt/simplify-arm.rs +++ b/src/test/mir-opt/simplify-arm.rs @@ -30,7 +30,7 @@ fn from_error<T, E>(e: E) -> Result<T, E> { // This was written to the `?` from `try_trait`, but `try_trait_v2` uses a different structure, // so the relevant desugar is copied inline in order to keep the test testing the same thing. -// FIXME: while this might be useful for `r#try!`, it would be nice to have a MIR optimization +// FIXME(#85133): while this might be useful for `r#try!`, it would be nice to have a MIR optimization // that picks up the `?` desugaring, as `SimplifyArmIdentity` does not. See #85133 fn id_try(r: Result<u8, i32>) -> Result<u8, i32> { let x = match into_result(r) { diff --git a/src/test/mir-opt/simplify_try.rs b/src/test/mir-opt/simplify_try.rs index b91a7bfe68f..46c239ebe32 100644 --- a/src/test/mir-opt/simplify_try.rs +++ b/src/test/mir-opt/simplify_try.rs @@ -15,7 +15,7 @@ fn from_error<T, E>(e: E) -> Result<T, E> { // This was written to the `?` from `try_trait`, but `try_trait_v2` uses a different structure, // so the relevant desugar is copied inline in order to keep the test testing the same thing. -// FIXME: while this might be useful for `r#try!`, it would be nice to have a MIR optimization +// FIXME(#85133): while this might be useful for `r#try!`, it would be nice to have a MIR optimization // that picks up the `?` desugaring, as `SimplifyArmIdentity` does not. See #85133 fn try_identity(x: Result<u32, i32>) -> Result<u32, i32> { let y = match into_result(x) { |
