diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-12-20 19:13:24 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-01-03 18:59:42 +0000 |
| commit | 79bef72fd56c2a0f3998dceb7c08355cf3fabc4e (patch) | |
| tree | 83239d36326e3c16731a204ab70f8723698896d1 /src | |
| parent | 8551cab7b75ab8f9c51b1d5a847031093b79b546 (diff) | |
| download | rust-79bef72fd56c2a0f3998dceb7c08355cf3fabc4e.tar.gz rust-79bef72fd56c2a0f3998dceb7c08355cf3fabc4e.zip | |
Track `HirId` instead of `Span` in `ObligationCauseCode::SizedArgumentType`
This gets us more accurate suggestions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/clippy/tests/ui/crashes/ice-6251.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-6251.stderr b/src/tools/clippy/tests/ui/crashes/ice-6251.stderr index 11081dc8087..0196c9923db 100644 --- a/src/tools/clippy/tests/ui/crashes/ice-6251.stderr +++ b/src/tools/clippy/tests/ui/crashes/ice-6251.stderr @@ -6,7 +6,7 @@ LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> { | = help: the trait `std::marker::Sized` is not implemented for `[u8]` = help: unsized fn params are gated as an unstable feature -help: function arguments must have a statically known size, borrowed types always have a known size +help: function arguments must have a statically known size, borrowed slices always have a known size | LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: &[u8]| x }]> { | + |
