From 19fbeb004b0b06daaa4ac9a58f67a5ef5938bd74 Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Fri, 15 Sep 2023 16:09:45 +0200 Subject: [PATCH] [PATCH] avoid blessing cargo deps's source code in ui tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit FG: just the stderr part for now, the rest needs a newer cargo Signed-off-by: Fabian Grünbichler Gbp-Pq: Name u-avoid-blessing-cargo-deps-s-source-code-in-ui-tests.patch --- tests/ui/issues/issue-21763.rs | 2 +- tests/ui/issues/issue-21763.stderr | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/ui/issues/issue-21763.rs b/tests/ui/issues/issue-21763.rs index 38103ff4f9..cc1a00687b 100644 --- a/tests/ui/issues/issue-21763.rs +++ b/tests/ui/issues/issue-21763.rs @@ -1,6 +1,6 @@ // Regression test for HashMap only impl'ing Send/Sync if its contents do -// normalize-stderr-test: "\S+hashbrown-\S+" -> "$$HASHBROWN_SRC_LOCATION" +// normalize-stderr-test: "\S+[\\/]hashbrown\S+" -> "$$HASHBROWN_SRC_LOCATION" use std::collections::HashMap; use std::rc::Rc; diff --git a/tests/ui/issues/issue-21763.stderr b/tests/ui/issues/issue-21763.stderr index df50118ac4..a887635d35 100644 --- a/tests/ui/issues/issue-21763.stderr +++ b/tests/ui/issues/issue-21763.stderr @@ -9,9 +9,6 @@ LL | foo::, Rc<()>>>(); = note: required for `hashbrown::raw::RawTable<(Rc<()>, Rc<()>)>` to implement `Send` note: required because it appears within the type `HashMap, Rc<()>, RandomState>` --> $HASHBROWN_SRC_LOCATION - | -LL | pub struct HashMap { - | ^^^^^^^ note: required because it appears within the type `HashMap, Rc<()>>` --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL note: required by a bound in `foo` -- 2.30.2