diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/traits/bound | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/ui/traits/bound/assoc-fn-bound-root-obligation.rs (renamed from src/test/ui/traits/bound/assoc-fn-bound-root-obligation.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/assoc-fn-bound-root-obligation.stderr (renamed from src/test/ui/traits/bound/assoc-fn-bound-root-obligation.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/auxiliary/crate_a1.rs (renamed from src/test/ui/traits/bound/auxiliary/crate_a1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/auxiliary/crate_a2.rs (renamed from src/test/ui/traits/bound/auxiliary/crate_a2.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs (renamed from src/test/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/basic.rs (renamed from src/test/ui/traits/bound/basic.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/generic_trait.rs (renamed from src/test/ui/traits/bound/generic_trait.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/impl-comparison-duplicates.rs (renamed from src/test/ui/traits/bound/impl-comparison-duplicates.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/in-arc.rs (renamed from src/test/ui/traits/bound/in-arc.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/multiple.rs (renamed from src/test/ui/traits/bound/multiple.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/not-on-bare-trait.rs (renamed from src/test/ui/traits/bound/not-on-bare-trait.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/not-on-bare-trait.stderr (renamed from src/test/ui/traits/bound/not-on-bare-trait.stderr) | 4 | ||||
-rw-r--r-- | tests/ui/traits/bound/not-on-struct.rs (renamed from src/test/ui/traits/bound/not-on-struct.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/not-on-struct.stderr (renamed from src/test/ui/traits/bound/not-on-struct.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-in-fns.rs (renamed from src/test/ui/traits/bound/on-structs-and-enums-in-fns.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-in-fns.stderr (renamed from src/test/ui/traits/bound/on-structs-and-enums-in-fns.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-in-impls.rs (renamed from src/test/ui/traits/bound/on-structs-and-enums-in-impls.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-in-impls.stderr (renamed from src/test/ui/traits/bound/on-structs-and-enums-in-impls.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-locals.rs (renamed from src/test/ui/traits/bound/on-structs-and-enums-locals.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-locals.stderr (renamed from src/test/ui/traits/bound/on-structs-and-enums-locals.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-rpass.rs (renamed from src/test/ui/traits/bound/on-structs-and-enums-rpass.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-static.rs (renamed from src/test/ui/traits/bound/on-structs-and-enums-static.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-static.stderr (renamed from src/test/ui/traits/bound/on-structs-and-enums-static.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-xc.rs (renamed from src/test/ui/traits/bound/on-structs-and-enums-xc.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-xc.stderr (renamed from src/test/ui/traits/bound/on-structs-and-enums-xc.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-xc1.rs (renamed from src/test/ui/traits/bound/on-structs-and-enums-xc1.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums-xc1.stderr (renamed from src/test/ui/traits/bound/on-structs-and-enums-xc1.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums.rs (renamed from src/test/ui/traits/bound/on-structs-and-enums.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/on-structs-and-enums.stderr (renamed from src/test/ui/traits/bound/on-structs-and-enums.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/recursion.rs (renamed from src/test/ui/traits/bound/recursion.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/same-crate-name.rs (renamed from src/test/ui/traits/bound/same-crate-name.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/same-crate-name.stderr (renamed from src/test/ui/traits/bound/same-crate-name.stderr) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/sugar.rs (renamed from src/test/ui/traits/bound/sugar.rs) | 0 | ||||
-rw-r--r-- | tests/ui/traits/bound/sugar.stderr (renamed from src/test/ui/traits/bound/sugar.stderr) | 0 |
34 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/traits/bound/assoc-fn-bound-root-obligation.rs b/tests/ui/traits/bound/assoc-fn-bound-root-obligation.rs index f9a934764..f9a934764 100644 --- a/src/test/ui/traits/bound/assoc-fn-bound-root-obligation.rs +++ b/tests/ui/traits/bound/assoc-fn-bound-root-obligation.rs diff --git a/src/test/ui/traits/bound/assoc-fn-bound-root-obligation.stderr b/tests/ui/traits/bound/assoc-fn-bound-root-obligation.stderr index ce9ab2d81..ce9ab2d81 100644 --- a/src/test/ui/traits/bound/assoc-fn-bound-root-obligation.stderr +++ b/tests/ui/traits/bound/assoc-fn-bound-root-obligation.stderr diff --git a/src/test/ui/traits/bound/auxiliary/crate_a1.rs b/tests/ui/traits/bound/auxiliary/crate_a1.rs index 6aa010258..6aa010258 100644 --- a/src/test/ui/traits/bound/auxiliary/crate_a1.rs +++ b/tests/ui/traits/bound/auxiliary/crate_a1.rs diff --git a/src/test/ui/traits/bound/auxiliary/crate_a2.rs b/tests/ui/traits/bound/auxiliary/crate_a2.rs index d6057db5e..d6057db5e 100644 --- a/src/test/ui/traits/bound/auxiliary/crate_a2.rs +++ b/tests/ui/traits/bound/auxiliary/crate_a2.rs diff --git a/src/test/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs b/tests/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs index 7e9592eee..7e9592eee 100644 --- a/src/test/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs +++ b/tests/ui/traits/bound/auxiliary/on_structs_and_enums_xc.rs diff --git a/src/test/ui/traits/bound/basic.rs b/tests/ui/traits/bound/basic.rs index 8c8a7eb7d..8c8a7eb7d 100644 --- a/src/test/ui/traits/bound/basic.rs +++ b/tests/ui/traits/bound/basic.rs diff --git a/src/test/ui/traits/bound/generic_trait.rs b/tests/ui/traits/bound/generic_trait.rs index 18382bb59..18382bb59 100644 --- a/src/test/ui/traits/bound/generic_trait.rs +++ b/tests/ui/traits/bound/generic_trait.rs diff --git a/src/test/ui/traits/bound/impl-comparison-duplicates.rs b/tests/ui/traits/bound/impl-comparison-duplicates.rs index de6c2afa2..de6c2afa2 100644 --- a/src/test/ui/traits/bound/impl-comparison-duplicates.rs +++ b/tests/ui/traits/bound/impl-comparison-duplicates.rs diff --git a/src/test/ui/traits/bound/in-arc.rs b/tests/ui/traits/bound/in-arc.rs index a1492c0b9..a1492c0b9 100644 --- a/src/test/ui/traits/bound/in-arc.rs +++ b/tests/ui/traits/bound/in-arc.rs diff --git a/src/test/ui/traits/bound/multiple.rs b/tests/ui/traits/bound/multiple.rs index 868b33407..868b33407 100644 --- a/src/test/ui/traits/bound/multiple.rs +++ b/tests/ui/traits/bound/multiple.rs diff --git a/src/test/ui/traits/bound/not-on-bare-trait.rs b/tests/ui/traits/bound/not-on-bare-trait.rs index daf18c670..daf18c670 100644 --- a/src/test/ui/traits/bound/not-on-bare-trait.rs +++ b/tests/ui/traits/bound/not-on-bare-trait.rs diff --git a/src/test/ui/traits/bound/not-on-bare-trait.stderr b/tests/ui/traits/bound/not-on-bare-trait.stderr index 8da0b6d6b..36b08a7d3 100644 --- a/src/test/ui/traits/bound/not-on-bare-trait.stderr +++ b/tests/ui/traits/bound/not-on-bare-trait.stderr @@ -20,6 +20,10 @@ LL | fn foo(_x: Foo + Send) { | = help: the trait `Sized` is not implemented for `(dyn Foo + Send + 'static)` = help: unsized fn params are gated as an unstable feature +help: you can use `impl Trait` as the argument type + | +LL | fn foo(_x: impl Foo + Send) { + | ++++ help: function arguments must have a statically known size, borrowed types always have a known size | LL | fn foo(_x: &Foo + Send) { diff --git a/src/test/ui/traits/bound/not-on-struct.rs b/tests/ui/traits/bound/not-on-struct.rs index 8633e9d7a..8633e9d7a 100644 --- a/src/test/ui/traits/bound/not-on-struct.rs +++ b/tests/ui/traits/bound/not-on-struct.rs diff --git a/src/test/ui/traits/bound/not-on-struct.stderr b/tests/ui/traits/bound/not-on-struct.stderr index 2de35dc7f..2de35dc7f 100644 --- a/src/test/ui/traits/bound/not-on-struct.stderr +++ b/tests/ui/traits/bound/not-on-struct.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-in-fns.rs b/tests/ui/traits/bound/on-structs-and-enums-in-fns.rs index 6a6fcf530..6a6fcf530 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-in-fns.rs +++ b/tests/ui/traits/bound/on-structs-and-enums-in-fns.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-in-fns.stderr b/tests/ui/traits/bound/on-structs-and-enums-in-fns.stderr index 61237a63e..61237a63e 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-in-fns.stderr +++ b/tests/ui/traits/bound/on-structs-and-enums-in-fns.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-in-impls.rs b/tests/ui/traits/bound/on-structs-and-enums-in-impls.rs index d37949952..d37949952 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-in-impls.rs +++ b/tests/ui/traits/bound/on-structs-and-enums-in-impls.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-in-impls.stderr b/tests/ui/traits/bound/on-structs-and-enums-in-impls.stderr index 8a4374226..8a4374226 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-in-impls.stderr +++ b/tests/ui/traits/bound/on-structs-and-enums-in-impls.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-locals.rs b/tests/ui/traits/bound/on-structs-and-enums-locals.rs index 60ba343bb..60ba343bb 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-locals.rs +++ b/tests/ui/traits/bound/on-structs-and-enums-locals.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-locals.stderr b/tests/ui/traits/bound/on-structs-and-enums-locals.stderr index 20bbe69c0..20bbe69c0 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-locals.stderr +++ b/tests/ui/traits/bound/on-structs-and-enums-locals.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-rpass.rs b/tests/ui/traits/bound/on-structs-and-enums-rpass.rs index 4dc4fecc9..4dc4fecc9 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-rpass.rs +++ b/tests/ui/traits/bound/on-structs-and-enums-rpass.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-static.rs b/tests/ui/traits/bound/on-structs-and-enums-static.rs index df3f8b8a5..df3f8b8a5 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-static.rs +++ b/tests/ui/traits/bound/on-structs-and-enums-static.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-static.stderr b/tests/ui/traits/bound/on-structs-and-enums-static.stderr index fda734e85..fda734e85 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-static.stderr +++ b/tests/ui/traits/bound/on-structs-and-enums-static.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-xc.rs b/tests/ui/traits/bound/on-structs-and-enums-xc.rs index 94316d240..94316d240 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-xc.rs +++ b/tests/ui/traits/bound/on-structs-and-enums-xc.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-xc.stderr b/tests/ui/traits/bound/on-structs-and-enums-xc.stderr index 5064b60bf..5064b60bf 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-xc.stderr +++ b/tests/ui/traits/bound/on-structs-and-enums-xc.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums-xc1.rs b/tests/ui/traits/bound/on-structs-and-enums-xc1.rs index 5ef35b513..5ef35b513 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-xc1.rs +++ b/tests/ui/traits/bound/on-structs-and-enums-xc1.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums-xc1.stderr b/tests/ui/traits/bound/on-structs-and-enums-xc1.stderr index 3fb5decb7..3fb5decb7 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums-xc1.stderr +++ b/tests/ui/traits/bound/on-structs-and-enums-xc1.stderr diff --git a/src/test/ui/traits/bound/on-structs-and-enums.rs b/tests/ui/traits/bound/on-structs-and-enums.rs index 024084fa7..024084fa7 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums.rs +++ b/tests/ui/traits/bound/on-structs-and-enums.rs diff --git a/src/test/ui/traits/bound/on-structs-and-enums.stderr b/tests/ui/traits/bound/on-structs-and-enums.stderr index fe05b8634..fe05b8634 100644 --- a/src/test/ui/traits/bound/on-structs-and-enums.stderr +++ b/tests/ui/traits/bound/on-structs-and-enums.stderr diff --git a/src/test/ui/traits/bound/recursion.rs b/tests/ui/traits/bound/recursion.rs index 0023ff654..0023ff654 100644 --- a/src/test/ui/traits/bound/recursion.rs +++ b/tests/ui/traits/bound/recursion.rs diff --git a/src/test/ui/traits/bound/same-crate-name.rs b/tests/ui/traits/bound/same-crate-name.rs index 8d646a414..8d646a414 100644 --- a/src/test/ui/traits/bound/same-crate-name.rs +++ b/tests/ui/traits/bound/same-crate-name.rs diff --git a/src/test/ui/traits/bound/same-crate-name.stderr b/tests/ui/traits/bound/same-crate-name.stderr index f66cad77f..f66cad77f 100644 --- a/src/test/ui/traits/bound/same-crate-name.stderr +++ b/tests/ui/traits/bound/same-crate-name.stderr diff --git a/src/test/ui/traits/bound/sugar.rs b/tests/ui/traits/bound/sugar.rs index 65b6f6faa..65b6f6faa 100644 --- a/src/test/ui/traits/bound/sugar.rs +++ b/tests/ui/traits/bound/sugar.rs diff --git a/src/test/ui/traits/bound/sugar.stderr b/tests/ui/traits/bound/sugar.stderr index b67648c7b..b67648c7b 100644 --- a/src/test/ui/traits/bound/sugar.stderr +++ b/tests/ui/traits/bound/sugar.stderr |