summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-19 18:44:27 +0000
committerbors <bors@rust-lang.org>2021-07-19 18:44:27 +0000
commitd5af63480fb08b5276a608a8cd4865fa92d4b2bc (patch)
tree4dafbbc941ca3ed032a8bdb4c90c36aeab752152 /src/test/ui/parser
parentfad295b299d9e93950c27acd6a12026d100185fe (diff)
parentba052bd8de1459acb6809215b0bedf4ea476ef9a (diff)
downloadrust-d5af63480fb08b5276a608a8cd4865fa92d4b2bc.tar.gz
rust-d5af63480fb08b5276a608a8cd4865fa92d4b2bc.zip
Auto merge of #87225 - estebank:cleanup, r=oli-obk
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
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/struct-literal-in-for.stderr6
1 files changed, 5 insertions, 1 deletions
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