Tweak multispan rendering to reduce output length Consider comments and bare delimiters the same as an "empty line" for purposes of hiding rendered code output of long multispans. This results in more aggressive shortening of rendered output without losing too much context, specially in `*.stderr` tests that have "hidden" comments. We do that check not only on the first 4 lines of the multispan, but now also on the previous to last line as well.
93 lines
2.8 KiB
Text
93 lines
2.8 KiB
Text
error: an async construct yields a type which is itself awaitable
|
|
--> tests/ui/async_yields_async.rs:37:9
|
|
|
|
|
LL | let _h = async {
|
|
| _____________________-
|
|
LL | |/ async {
|
|
LL | || 3
|
|
LL | || }
|
|
| ||_________^ awaitable value not awaited
|
|
LL | | };
|
|
| |______- outer async construct
|
|
|
|
|
= note: `-D clippy::async-yields-async` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::async_yields_async)]`
|
|
help: consider awaiting this value
|
|
|
|
|
LL ~ async {
|
|
LL + 3
|
|
LL + }.await
|
|
|
|
|
|
|
error: an async construct yields a type which is itself awaitable
|
|
--> tests/ui/async_yields_async.rs:42:9
|
|
|
|
|
LL | let _i = async {
|
|
| ____________________-
|
|
LL | | CustomFutureType
|
|
| | ^^^^^^^^^^^^^^^^
|
|
| | |
|
|
| | awaitable value not awaited
|
|
| | help: consider awaiting this value: `CustomFutureType.await`
|
|
LL | | };
|
|
| |_____- outer async construct
|
|
|
|
error: an async construct yields a type which is itself awaitable
|
|
--> tests/ui/async_yields_async.rs:48:9
|
|
|
|
|
LL | let _j = async || {
|
|
| ________________________-
|
|
LL | |/ async {
|
|
LL | || 3
|
|
LL | || }
|
|
| ||_________^ awaitable value not awaited
|
|
LL | | };
|
|
| |______- outer async construct
|
|
|
|
|
help: consider awaiting this value
|
|
|
|
|
LL ~ async {
|
|
LL + 3
|
|
LL + }.await
|
|
|
|
|
|
|
error: an async construct yields a type which is itself awaitable
|
|
--> tests/ui/async_yields_async.rs:53:9
|
|
|
|
|
LL | let _k = async || {
|
|
| _______________________-
|
|
LL | | CustomFutureType
|
|
| | ^^^^^^^^^^^^^^^^
|
|
| | |
|
|
| | awaitable value not awaited
|
|
| | help: consider awaiting this value: `CustomFutureType.await`
|
|
LL | | };
|
|
| |_____- outer async construct
|
|
|
|
error: an async construct yields a type which is itself awaitable
|
|
--> tests/ui/async_yields_async.rs:55:23
|
|
|
|
|
LL | let _l = async || CustomFutureType;
|
|
| ^^^^^^^^^^^^^^^^
|
|
| |
|
|
| outer async construct
|
|
| awaitable value not awaited
|
|
| help: consider awaiting this value: `CustomFutureType.await`
|
|
|
|
error: an async construct yields a type which is itself awaitable
|
|
--> tests/ui/async_yields_async.rs:61:9
|
|
|
|
|
LL | let _m = async || {
|
|
| _______________________-
|
|
LL | | println!("I'm bored");
|
|
... |
|
|
LL | | CustomFutureType
|
|
| | ^^^^^^^^^^^^^^^^
|
|
| | |
|
|
| | awaitable value not awaited
|
|
| | help: consider awaiting this value: `CustomFutureType.await`
|
|
LL | | };
|
|
| |_____- outer async construct
|
|
|
|
error: aborting due to 6 previous errors
|
|
|