mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 07:10:29 +00:00
Update ui test suite to nightly-2022-09-07
This commit is contained in:
parent
ed1852df1f
commit
b6e97c824d
@ -1,8 +1,8 @@
|
||||
error[E0004]: non-exhaustive patterns: `A { repr: 2_u8..=u8::MAX }` not covered
|
||||
error[E0004]: non-exhaustive patterns: `ffi::A { repr: 2_u8..=u8::MAX }` not covered
|
||||
--> tests/ui/enum_match_without_wildcard.rs:12:11
|
||||
|
|
||||
12 | match a {
|
||||
| ^ pattern `A { repr: 2_u8..=u8::MAX }` not covered
|
||||
| ^ pattern `ffi::A { repr: 2_u8..=u8::MAX }` not covered
|
||||
|
|
||||
note: `ffi::A` defined here
|
||||
--> tests/ui/enum_match_without_wildcard.rs:3:10
|
||||
@ -13,5 +13,5 @@ note: `ffi::A` defined here
|
||||
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
|
||||
|
|
||||
14 ~ ffi::A::FieldB => 2021,
|
||||
15 ~ A { repr: 2_u8..=u8::MAX } => todo!(),
|
||||
15 ~ ffi::A { repr: 2_u8..=u8::MAX } => todo!(),
|
||||
|
|
||||
|
@ -1,8 +1,8 @@
|
||||
error[E0271]: type mismatch resolving `<ElementOpaque as ExternType>::Kind == Trivial`
|
||||
--> tests/ui/slice_of_type_alias.rs:13:9
|
||||
--> tests/ui/slice_of_type_alias.rs:13:14
|
||||
|
|
||||
13 | type ElementOpaque = crate::ElementOpaque;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch resolving `<ElementOpaque as ExternType>::Kind == Trivial`
|
||||
| ^^^^^^^^^^^^^ type mismatch resolving `<ElementOpaque as ExternType>::Kind == Trivial`
|
||||
|
|
||||
note: expected this to be `Trivial`
|
||||
--> tests/ui/slice_of_type_alias.rs:27:17
|
||||
|
@ -11,10 +11,10 @@ error: needs a cxx::ExternType impl in order to be used as a vector element in V
|
||||
| ^^^^^^^^
|
||||
|
||||
error[E0271]: type mismatch resolving `<handle::Job as ExternType>::Kind == Trivial`
|
||||
--> tests/ui/vec_opaque.rs:22:9
|
||||
--> tests/ui/vec_opaque.rs:22:14
|
||||
|
|
||||
22 | type Job = crate::handle::Job;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Trivial`, found enum `cxx::kind::Opaque`
|
||||
| ^^^ expected enum `Trivial`, found enum `cxx::kind::Opaque`
|
||||
|
|
||||
note: required by a bound in `verify_extern_kind`
|
||||
--> src/extern_type.rs
|
||||
|
@ -1,8 +1,8 @@
|
||||
error[E0271]: type mismatch resolving `<StringPiece as ExternType>::Id == (f, o, l, l, y, (), B, y, t, e, R, a, n, g, e)`
|
||||
--> tests/ui/wrong_type_id.rs:11:9
|
||||
--> tests/ui/wrong_type_id.rs:11:14
|
||||
|
|
||||
11 | type ByteRange = crate::here::StringPiece;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 15 elements, found one with 17 elements
|
||||
| ^^^^^^^^^ expected a tuple with 15 elements, found one with 17 elements
|
||||
|
|
||||
= note: expected tuple `(f, o, l, l, y, (), B, y, t, e, R, a, n, g, e)`
|
||||
found tuple `(f, o, l, l, y, (), S, t, r, i, n, g, P, i, e, c, e)`
|
||||
|
Loading…
Reference in New Issue
Block a user