Skip to content

Commit

Permalink
report: if we have a lot of original code, collapse it
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Oct 14, 2023
1 parent df02602 commit 405b106
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/ice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,22 @@ impl ICE {
{original_code}
````"
)
// if we have a very long original snippet. collapse it
} else if original_code.len() > 999 {
format!(
"auto-reduced (treereduce-rust):
````rust
{mvce_string}
````
<details><summary><strong>original code</strong></summary>
<p>
original:
````rust
{original_code}
````"
)
} else {
format!(
"auto-reduced (treereduce-rust):
Expand Down

0 comments on commit 405b106

Please sign in to comment.