about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-12-20 19:13:24 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-01-03 18:59:42 +0000
commitca83a98e66a1a6f71c09d92ab25fa385ca8353b4 (patch)
tree33c1d9ee9564476ee65b871ae71fb6015da2a366
parenta4c2cf181bde2fab9d6b4042806f93864b3b538f (diff)
downloadrust-ca83a98e66a1a6f71c09d92ab25fa385ca8353b4.tar.gz
rust-ca83a98e66a1a6f71c09d92ab25fa385ca8353b4.zip
Track `HirId` instead of `Span` in `ObligationCauseCode::SizedArgumentType`
This gets us more accurate suggestions.
-rw-r--r--tests/ui/crashes/ice-6251.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/crashes/ice-6251.stderr b/tests/ui/crashes/ice-6251.stderr
index 11081dc8087..0196c9923db 100644
--- a/tests/ui/crashes/ice-6251.stderr
+++ b/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 }]> {
    |                                                +