From ba052bd8de1459acb6809215b0bedf4ea476ef9a Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Sat, 17 Jul 2021 11:13:50 -0700 Subject: Various diagnostics clean ups/tweaks * Always point at macros, including derive macros * Point at non-local items that introduce a trait requirement * On private associated item, point at definition --- src/test/ui/parser/struct-literal-in-for.stderr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/test/ui/parser') diff --git a/src/test/ui/parser/struct-literal-in-for.stderr b/src/test/ui/parser/struct-literal-in-for.stderr index fe9c113710c..5c229431ad3 100644 --- a/src/test/ui/parser/struct-literal-in-for.stderr +++ b/src/test/ui/parser/struct-literal-in-for.stderr @@ -25,7 +25,11 @@ LL | | }.hi() { | = help: the trait `Iterator` is not implemented for `bool` = note: required because of the requirements on the impl of `IntoIterator` for `bool` - = note: required by `into_iter` +note: required by `into_iter` + --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL + | +LL | fn into_iter(self) -> Self::IntoIter; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 2 previous errors -- cgit 1.4.1-3-g733a5