about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-17 12:21:48 +0200
committerGitHub <noreply@github.com>2022-06-17 12:21:48 +0200
commit51e2d6a4a932f5c8a6d573ef5ff4d0866c24f8b8 (patch)
treebede629a2bfe176d603c471987d75ada8264e62e /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parentf8f9d01c2ad0dff565bdd60feeb4cbd09dada8cd (diff)
parent4d889935443b7d5cd3c33b432c920807b1387340 (diff)
downloadrust-51e2d6a4a932f5c8a6d573ef5ff4d0866c24f8b8.tar.gz
rust-51e2d6a4a932f5c8a6d573ef5ff4d0866c24f8b8.zip
Rollup merge of #97798 - WaffleLapkin:allow_for_suggestions_that_are_quite_far_away_from_each_other, r=estebank
Hide irrelevant lines in suggestions to allow for suggestions that are far from each other to be shown

This is an attempt to fix suggestions one part of which is 6 lines or more far from the first. I've noticed "the problem" (of not showing some parts of the suggestion) here: https://github.com/rust-lang/rust/pull/97759#discussion_r889689230.

I'm not sure about the implementation (this big closure is just bad and makes already complicated code even more so), but I want to at least discuss the result.

Here is an example of how this changes the output:

Before:
```text
help: consider enclosing expression in a block
  |
3 ~     'l: { match () { () => break 'l,
4 |
5 |
6 |
7 |
8 |
...
```

After:
```text
help: consider enclosing expression in a block
  |
3 ~     'l: { match () { () => break 'l,
4 |
...
31|
32~ } };
  |
```

r? `@estebank`
`@rustbot` label +A-diagnostics +A-suggestion-diagnostics
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions