diff options
| author | Roxane <roxane.fruytier@hotmail.com> | 2021-03-29 22:48:44 -0400 |
|---|---|---|
| committer | Roxane <roxane.fruytier@hotmail.com> | 2021-04-02 19:11:50 -0400 |
| commit | 0a97eee8df1f4a3182cd92786258ee5cf2baa43f (patch) | |
| tree | ff57df5c2cb332e3f2036c1112c9cdb72e21d9c5 /compiler/rustc_mir/src/transform/coverage/spans.rs | |
| parent | 2fb1fb7634b79d93d48749ee1f84d4ba552b186f (diff) | |
| download | rust-0a97eee8df1f4a3182cd92786258ee5cf2baa43f.tar.gz rust-0a97eee8df1f4a3182cd92786258ee5cf2baa43f.zip | |
Reduce size of statements
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/spans.rs')
| -rw-r--r-- | compiler/rustc_mir/src/transform/coverage/spans.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir/src/transform/coverage/spans.rs b/compiler/rustc_mir/src/transform/coverage/spans.rs index e7097ce8619..324d826b375 100644 --- a/compiler/rustc_mir/src/transform/coverage/spans.rs +++ b/compiler/rustc_mir/src/transform/coverage/spans.rs @@ -683,10 +683,10 @@ pub(super) fn filtered_statement_span( // and `_1` is the `Place` for `somenum`. // // If and when the Issue is resolved, remove this special case match pattern: - StatementKind::FakeRead(cause, _) if cause == FakeReadCause::ForGuardBinding => None, + StatementKind::FakeRead(box (cause, _)) if cause == FakeReadCause::ForGuardBinding => None, // Retain spans from all other statements - StatementKind::FakeRead(_, _) // Not including `ForGuardBinding` + StatementKind::FakeRead(box (_, _)) // Not including `ForGuardBinding` | StatementKind::CopyNonOverlapping(..) | StatementKind::Assign(_) | StatementKind::SetDiscriminant { .. } |
