mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-27 01:11:38 +00:00
Ui test changes for trybuild 1.0.49
This commit is contained in:
parent
981d720cf7
commit
9f83380038
@ -34,7 +34,7 @@ cxx-build = { version = "=1.0.56", path = "gen/build" }
|
||||
cxx-gen = { version = "0.7", path = "gen/lib" }
|
||||
cxx-test-suite = { version = "0", path = "tests/ffi" }
|
||||
rustversion = "1.0"
|
||||
trybuild = { version = "1.0.33", features = ["diff"] }
|
||||
trybuild = { version = "1.0.49", features = ["diff"] }
|
||||
|
||||
[workspace]
|
||||
members = ["demo", "flags", "gen/build", "gen/cmd", "gen/lib", "macro", "tests/ffi"]
|
||||
|
@ -1,17 +1,17 @@
|
||||
error: array length must be an integer literal
|
||||
--> $DIR/tests/ui/array_len_expr.rs:4:28
|
||||
--> tests/ui/array_len_expr.rs:4:28
|
||||
|
|
||||
4 | arraystr: [String; "13"],
|
||||
| ^^^^
|
||||
|
||||
error: unsupported expression, array length must be an integer literal
|
||||
--> $DIR/tests/ui/array_len_expr.rs:5:28
|
||||
--> tests/ui/array_len_expr.rs:5:28
|
||||
|
|
||||
5 | arraysub: [String; 15 - 1],
|
||||
| ^^^^^^
|
||||
|
||||
error: array with zero size is not supported
|
||||
--> $DIR/tests/ui/array_len_expr.rs:6:20
|
||||
--> tests/ui/array_len_expr.rs:6:20
|
||||
|
|
||||
6 | arrayzero: [String; 0],
|
||||
| ^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/tests/ui/array_len_suffix.rs:4:32
|
||||
--> tests/ui/array_len_suffix.rs:4:32
|
||||
|
|
||||
4 | fn array() -> [String; 12u16];
|
||||
| ^^^^^ expected `usize`, found `u16`
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: async function is not directly supported yet, but see https://cxx.rs/async.html for a working approach
|
||||
--> $DIR/tests/ui/async_fn.rs:4:9
|
||||
--> tests/ui/async_fn.rs:4:9
|
||||
|
|
||||
4 | async fn f();
|
||||
| ^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: unsupported Self type of explicit impl
|
||||
--> $DIR/tests/ui/bad_explicit_impl.rs:7:5
|
||||
--> tests/ui/bad_explicit_impl.rs:7:5
|
||||
|
|
||||
7 | impl fn() -> &S {}
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
@ -1,59 +1,59 @@
|
||||
error: using opaque C++ type by value is not supported
|
||||
--> $DIR/tests/ui/by_value_not_supported.rs:4:9
|
||||
--> tests/ui/by_value_not_supported.rs:4:9
|
||||
|
|
||||
4 | c: C,
|
||||
| ^^^^
|
||||
|
||||
error: using opaque Rust type by value is not supported
|
||||
--> $DIR/tests/ui/by_value_not_supported.rs:5:9
|
||||
--> tests/ui/by_value_not_supported.rs:5:9
|
||||
|
|
||||
5 | r: R,
|
||||
| ^^^^
|
||||
|
||||
error: using C++ string by value is not supported
|
||||
--> $DIR/tests/ui/by_value_not_supported.rs:6:9
|
||||
--> tests/ui/by_value_not_supported.rs:6:9
|
||||
|
|
||||
6 | s: CxxString,
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: needs a cxx::ExternType impl in order to be used as a field of `S`, argument of `f` or return value of `f`
|
||||
--> $DIR/tests/ui/by_value_not_supported.rs:10:9
|
||||
--> tests/ui/by_value_not_supported.rs:10:9
|
||||
|
|
||||
10 | type C;
|
||||
| ^^^^^^
|
||||
|
||||
error: passing opaque C++ type by value is not supported
|
||||
--> $DIR/tests/ui/by_value_not_supported.rs:16:14
|
||||
--> tests/ui/by_value_not_supported.rs:16:14
|
||||
|
|
||||
16 | fn f(c: C) -> C;
|
||||
| ^^^^
|
||||
|
||||
error: returning opaque C++ type by value is not supported
|
||||
--> $DIR/tests/ui/by_value_not_supported.rs:16:23
|
||||
--> tests/ui/by_value_not_supported.rs:16:23
|
||||
|
|
||||
16 | fn f(c: C) -> C;
|
||||
| ^
|
||||
|
||||
error: passing opaque Rust type by value is not supported
|
||||
--> $DIR/tests/ui/by_value_not_supported.rs:17:14
|
||||
--> tests/ui/by_value_not_supported.rs:17:14
|
||||
|
|
||||
17 | fn g(r: R) -> R;
|
||||
| ^^^^
|
||||
|
||||
error: returning opaque Rust type by value is not supported
|
||||
--> $DIR/tests/ui/by_value_not_supported.rs:17:23
|
||||
--> tests/ui/by_value_not_supported.rs:17:23
|
||||
|
|
||||
17 | fn g(r: R) -> R;
|
||||
| ^
|
||||
|
||||
error: passing C++ string by value is not supported
|
||||
--> $DIR/tests/ui/by_value_not_supported.rs:18:14
|
||||
--> tests/ui/by_value_not_supported.rs:18:14
|
||||
|
|
||||
18 | fn h(s: CxxString) -> CxxString;
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: returning C++ string by value is not supported
|
||||
--> $DIR/tests/ui/by_value_not_supported.rs:18:31
|
||||
--> tests/ui/by_value_not_supported.rs:18:31
|
||||
|
|
||||
18 | fn h(s: CxxString) -> CxxString;
|
||||
| ^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: const extern function is not supported
|
||||
--> $DIR/tests/ui/const_fn.rs:4:9
|
||||
--> tests/ui/const_fn.rs:4:9
|
||||
|
|
||||
4 | const fn f();
|
||||
| ^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: enums with data are not supported yet
|
||||
--> $DIR/tests/ui/data_enums.rs:4:9
|
||||
--> tests/ui/data_enums.rs:4:9
|
||||
|
|
||||
4 | Field(u64),
|
||||
| ^^^^^^^^^^
|
||||
|
@ -1,47 +1,47 @@
|
||||
error: missing documentation for a struct
|
||||
--> $DIR/tests/ui/deny_missing_docs.rs:11:5
|
||||
--> tests/ui/deny_missing_docs.rs:11:5
|
||||
|
|
||||
11 | pub struct UndocumentedStruct {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/tests/ui/deny_missing_docs.rs:6:9
|
||||
--> tests/ui/deny_missing_docs.rs:6:9
|
||||
|
|
||||
6 | #![deny(missing_docs)]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: missing documentation for a struct field
|
||||
--> $DIR/tests/ui/deny_missing_docs.rs:12:9
|
||||
--> tests/ui/deny_missing_docs.rs:12:9
|
||||
|
|
||||
12 | pub undocumented_field: u8,
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: missing documentation for a struct
|
||||
--> $DIR/tests/ui/deny_missing_docs.rs:21:5
|
||||
--> tests/ui/deny_missing_docs.rs:21:5
|
||||
|
|
||||
21 | pub enum UndocumentedEnum {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: missing documentation for an associated constant
|
||||
--> $DIR/tests/ui/deny_missing_docs.rs:22:9
|
||||
--> tests/ui/deny_missing_docs.rs:22:9
|
||||
|
|
||||
22 | UndocumentedVariant = 0,
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: missing documentation for a struct
|
||||
--> $DIR/tests/ui/deny_missing_docs.rs:44:9
|
||||
--> tests/ui/deny_missing_docs.rs:44:9
|
||||
|
|
||||
44 | pub type UndocumentedForeignType;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: missing documentation for a type alias
|
||||
--> $DIR/tests/ui/deny_missing_docs.rs:49:9
|
||||
--> tests/ui/deny_missing_docs.rs:49:9
|
||||
|
|
||||
49 | pub type UndocumentedTypeAlias = crate::bindgen::UndocumentedTypeAlias;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: missing documentation for a function
|
||||
--> $DIR/tests/ui/deny_missing_docs.rs:54:9
|
||||
--> tests/ui/deny_missing_docs.rs:54:9
|
||||
|
|
||||
54 | pub fn undocumented_foreign_fn() -> u8;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0119]: conflicting implementations of trait `std::clone::Clone` for type `ffi::Struct`
|
||||
--> $DIR/tests/ui/derive_duplicate.rs:3:21
|
||||
--> tests/ui/derive_duplicate.rs:3:21
|
||||
|
|
||||
3 | #[derive(Clone, Clone)]
|
||||
| ----- ^^^^^ conflicting implementation for `ffi::Struct`
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0204]: the trait `Copy` may not be implemented for this type
|
||||
--> $DIR/tests/ui/derive_noncopy.rs:3:14
|
||||
--> tests/ui/derive_noncopy.rs:3:14
|
||||
|
|
||||
3 | #[derive(Copy)]
|
||||
| ^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0119]: conflicting implementations of trait `ffi::_::forbid::Drop` for type `ffi::Shared`
|
||||
--> $DIR/tests/ui/drop_shared.rs:3:5
|
||||
--> tests/ui/drop_shared.rs:3:5
|
||||
|
|
||||
1 | #[cxx::bridge]
|
||||
| -------------- first implementation here
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: explicit #[repr(...)] is required for enum without any variants
|
||||
--> $DIR/tests/ui/empty_enum.rs:3:5
|
||||
--> tests/ui/empty_enum.rs:3:5
|
||||
|
|
||||
3 | enum A {}
|
||||
| ^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: structs without any fields are not supported
|
||||
--> $DIR/tests/ui/empty_struct.rs:3:5
|
||||
--> tests/ui/empty_struct.rs:3:5
|
||||
|
|
||||
3 | struct Empty {}
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: expected u16, found i64
|
||||
--> $DIR/tests/ui/enum_inconsistent.rs:5:9
|
||||
--> tests/ui/enum_inconsistent.rs:5:9
|
||||
|
|
||||
5 | B = 2i64,
|
||||
| ^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0004]: non-exhaustive patterns: `A { repr: 2_u8..=u8::MAX }` not covered
|
||||
--> $DIR/tests/ui/enum_match_without_wildcard.rs:12:11
|
||||
--> tests/ui/enum_match_without_wildcard.rs:12:11
|
||||
|
|
||||
3 | enum A {
|
||||
| ------ `ffi::A` defined here
|
||||
|
@ -1,11 +1,11 @@
|
||||
error: discriminant value `18446744073709551615` is outside the limits of u32
|
||||
--> $DIR/tests/ui/enum_out_of_bounds.rs:5:9
|
||||
--> tests/ui/enum_out_of_bounds.rs:5:9
|
||||
|
|
||||
5 | A = 0xFFFF_FFFF_FFFF_FFFF,
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: discriminant value `2000` is outside the limits of u8
|
||||
--> $DIR/tests/ui/enum_out_of_bounds.rs:9:9
|
||||
--> tests/ui/enum_out_of_bounds.rs:9:9
|
||||
|
|
||||
9 | B = 1u8,
|
||||
| ^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: discriminant overflow on value after 18446744073709551615
|
||||
--> $DIR/tests/ui/enum_overflows.rs:13:9
|
||||
--> tests/ui/enum_overflows.rs:13:9
|
||||
|
|
||||
13 | F,
|
||||
| ^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: unsupported receiver type; C++ does not allow member functions on enums
|
||||
--> $DIR/tests/ui/enum_receiver.rs:7:20
|
||||
--> tests/ui/enum_receiver.rs:7:20
|
||||
|
|
||||
7 | fn f(self: &Enum);
|
||||
| ^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: these discriminant values do not fit in any supported enum repr type
|
||||
--> $DIR/tests/ui/enum_unsatisfiable.rs:3:5
|
||||
--> tests/ui/enum_unsatisfiable.rs:3:5
|
||||
|
|
||||
3 | / enum Bad {
|
||||
4 | | A = -0xFFFF_FFFF_FFFF_FFFF,
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0106]: missing lifetime specifier
|
||||
--> $DIR/tests/ui/expected_named.rs:5:36
|
||||
--> tests/ui/expected_named.rs:5:36
|
||||
|
|
||||
5 | fn borrowed() -> UniquePtr<Borrowed>;
|
||||
| ^^^^^^^^ expected named lifetime parameter
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: explicit ABI on extern function is not supported
|
||||
--> $DIR/tests/ui/extern_fn_abi.rs:4:9
|
||||
--> tests/ui/extern_fn_abi.rs:4:9
|
||||
|
|
||||
4 | extern "Java" fn f();
|
||||
| ^^^^^^^^^^^^^
|
||||
|
@ -1,11 +1,11 @@
|
||||
error: extern type bounds are not implemented yet
|
||||
--> $DIR/tests/ui/extern_type_bound.rs:4:22
|
||||
--> tests/ui/extern_type_bound.rs:4:22
|
||||
|
|
||||
4 | type Opaque: PartialEq + PartialOrd;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: unsupported trait
|
||||
--> $DIR/tests/ui/extern_type_bound.rs:11:22
|
||||
--> tests/ui/extern_type_bound.rs:11:22
|
||||
|
|
||||
11 | type Opaque: for<'de> Deserialize<'de>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: extern type with generic type parameter is not supported yet
|
||||
--> $DIR/tests/ui/extern_type_generic.rs:4:22
|
||||
--> tests/ui/extern_type_generic.rs:4:22
|
||||
|
|
||||
4 | type Generic<T>;
|
||||
| ^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: lifetime parameter with bounds is not supported yet
|
||||
--> $DIR/tests/ui/extern_type_lifetime_bound.rs:4:26
|
||||
--> tests/ui/extern_type_lifetime_bound.rs:4:26
|
||||
|
|
||||
4 | type Complex<'a, 'b: 'a>;
|
||||
| ^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: function pointer returning Result is not supported yet
|
||||
--> $DIR/tests/ui/fallible_fnptr.rs:4:24
|
||||
--> tests/ui/fallible_fnptr.rs:4:24
|
||||
|
|
||||
4 | fn f(callback: fn() -> Result<()>);
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: expected `;`
|
||||
--> $DIR/tests/ui/function_with_body.rs:4:16
|
||||
--> tests/ui/function_with_body.rs:4:16
|
||||
|
|
||||
4 | fn f() {}
|
||||
| ^
|
||||
|
@ -1,17 +1,17 @@
|
||||
error: enum with generic parameters is not supported
|
||||
--> $DIR/tests/ui/generic_enum.rs:3:5
|
||||
--> tests/ui/generic_enum.rs:3:5
|
||||
|
|
||||
3 | enum A<T> {
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: enum with generic parameters is not supported
|
||||
--> $DIR/tests/ui/generic_enum.rs:7:5
|
||||
--> tests/ui/generic_enum.rs:7:5
|
||||
|
|
||||
7 | enum B<T> where T: Copy {
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: enum with where-clause is not supported
|
||||
--> $DIR/tests/ui/generic_enum.rs:11:12
|
||||
--> tests/ui/generic_enum.rs:11:12
|
||||
|
|
||||
11 | enum C where void: Copy {
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: unexpected impl, expected something like `impl UniquePtr<T> {}`
|
||||
--> $DIR/tests/ui/impl_trait_for_type.rs:7:10
|
||||
--> tests/ui/impl_trait_for_type.rs:7:10
|
||||
|
|
||||
7 | impl UniquePtrTarget for S {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -1,29 +1,29 @@
|
||||
error: unexpected token
|
||||
--> $DIR/tests/ui/include.rs:4:28
|
||||
--> tests/ui/include.rs:4:28
|
||||
|
|
||||
4 | include!("path/to" what);
|
||||
| ^^^^
|
||||
|
||||
error: unexpected token
|
||||
--> $DIR/tests/ui/include.rs:5:28
|
||||
--> tests/ui/include.rs:5:28
|
||||
|
|
||||
5 | include!(<path/to> what);
|
||||
| ^^^^
|
||||
|
||||
error: expected `>`
|
||||
--> $DIR/tests/ui/include.rs:6:17
|
||||
--> tests/ui/include.rs:6:17
|
||||
|
|
||||
6 | include!(<path/to);
|
||||
| ^^^^^^^^^^
|
||||
|
||||
error: unexpected token in include path
|
||||
--> $DIR/tests/ui/include.rs:7:23
|
||||
--> tests/ui/include.rs:7:23
|
||||
|
|
||||
7 | include!(<path[to]>);
|
||||
| ^^^^
|
||||
|
||||
error: expected "quoted/path/to" or <bracketed/path/to>
|
||||
--> $DIR/tests/ui/include.rs:8:18
|
||||
--> tests/ui/include.rs:8:18
|
||||
|
|
||||
8 | include!(...);
|
||||
| ^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: extern C++ function with lifetimes must be declared in `unsafe extern "C++"` block
|
||||
--> $DIR/tests/ui/lifetime_extern_cxx.rs:5:9
|
||||
--> tests/ui/lifetime_extern_cxx.rs:5:9
|
||||
|
|
||||
5 | unsafe fn f<'a>(&'a self, arg: &str) -> &'a str;
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: must be `unsafe fn f` in order to expose explicit lifetimes to C++
|
||||
--> $DIR/tests/ui/lifetime_extern_rust.rs:5:9
|
||||
--> tests/ui/lifetime_extern_rust.rs:5:9
|
||||
|
|
||||
5 | fn f<'a>(&'a self, arg: &str) -> &'a str;
|
||||
| ^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
|
||||
--> $DIR/tests/ui/missing_unsafe.rs:4:12
|
||||
--> tests/ui/missing_unsafe.rs:4:12
|
||||
|
|
||||
4 | fn f(x: i32);
|
||||
| ^ call to unsafe function
|
||||
|
@ -1,11 +1,11 @@
|
||||
error: unit structs are not supported
|
||||
--> $DIR/tests/ui/multiple_parse_error.rs:3:5
|
||||
--> tests/ui/multiple_parse_error.rs:3:5
|
||||
|
|
||||
3 | struct Monad<T>;
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: unrecognized ABI, requires either "C++" or "Rust"
|
||||
--> $DIR/tests/ui/multiple_parse_error.rs:5:5
|
||||
--> tests/ui/multiple_parse_error.rs:5:5
|
||||
|
|
||||
5 | extern "Haskell" {}
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
@ -1,11 +1,11 @@
|
||||
error: &mut return type is not allowed unless there is a &mut argument
|
||||
--> $DIR/tests/ui/mut_return.rs:10:9
|
||||
--> tests/ui/mut_return.rs:10:9
|
||||
|
|
||||
10 | fn f(t: &Thing) -> Pin<&mut CxxString>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: &mut return type is not allowed unless there is a &mut argument
|
||||
--> $DIR/tests/ui/mut_return.rs:14:9
|
||||
--> tests/ui/mut_return.rs:14:9
|
||||
|
|
||||
14 | fn j(t: &Thing) -> &mut [u8];
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: enums with non-integer literal discriminants are not supported yet
|
||||
--> $DIR/tests/ui/non_integer_discriminant_enum.rs:4:9
|
||||
--> tests/ui/non_integer_discriminant_enum.rs:4:9
|
||||
|
|
||||
4 | Field = 2020 + 1,
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: expected an empty impl block
|
||||
--> $DIR/tests/ui/nonempty_impl_block.rs:7:23
|
||||
--> tests/ui/nonempty_impl_block.rs:7:23
|
||||
|
|
||||
7 | impl UniquePtr<S> {
|
||||
| _______________________^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
||||
--> $DIR/tests/ui/nonlocal_rust_type.rs:10:9
|
||||
--> tests/ui/nonlocal_rust_type.rs:10:9
|
||||
|
|
||||
10 | type OptBuilder<'a>;
|
||||
| ^^^^^--------------
|
||||
@ -10,7 +10,7 @@ error[E0117]: only traits defined in the current crate can be implemented for ar
|
||||
= note: define and implement a trait or new type instead
|
||||
|
||||
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
|
||||
--> $DIR/tests/ui/nonlocal_rust_type.rs:14:13
|
||||
--> tests/ui/nonlocal_rust_type.rs:14:13
|
||||
|
|
||||
14 | rs: Box<OptBuilder<'a>>,
|
||||
| ^^^^---------------
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: `*const cxx::void` cannot be sent between threads safely
|
||||
--> $DIR/tests/ui/opaque_autotraits.rs:13:5
|
||||
--> tests/ui/opaque_autotraits.rs:13:5
|
||||
|
|
||||
13 | assert_send::<ffi::Opaque>();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const cxx::void` cannot be sent between threads safely
|
||||
@ -8,18 +8,18 @@ error[E0277]: `*const cxx::void` cannot be sent between threads safely
|
||||
= note: required because it appears within the type `[*const cxx::void; 0]`
|
||||
= note: required because it appears within the type `cxx::private::Opaque`
|
||||
note: required because it appears within the type `ffi::Opaque`
|
||||
--> $DIR/tests/ui/opaque_autotraits.rs:4:14
|
||||
--> tests/ui/opaque_autotraits.rs:4:14
|
||||
|
|
||||
4 | type Opaque;
|
||||
| ^^^^^^
|
||||
note: required by a bound in `assert_send`
|
||||
--> $DIR/tests/ui/opaque_autotraits.rs:8:19
|
||||
--> tests/ui/opaque_autotraits.rs:8:19
|
||||
|
|
||||
8 | fn assert_send<T: Send>() {}
|
||||
| ^^^^ required by this bound in `assert_send`
|
||||
|
||||
error[E0277]: `*const cxx::void` cannot be shared between threads safely
|
||||
--> $DIR/tests/ui/opaque_autotraits.rs:14:5
|
||||
--> tests/ui/opaque_autotraits.rs:14:5
|
||||
|
|
||||
14 | assert_sync::<ffi::Opaque>();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const cxx::void` cannot be shared between threads safely
|
||||
@ -28,18 +28,18 @@ error[E0277]: `*const cxx::void` cannot be shared between threads safely
|
||||
= note: required because it appears within the type `[*const cxx::void; 0]`
|
||||
= note: required because it appears within the type `cxx::private::Opaque`
|
||||
note: required because it appears within the type `ffi::Opaque`
|
||||
--> $DIR/tests/ui/opaque_autotraits.rs:4:14
|
||||
--> tests/ui/opaque_autotraits.rs:4:14
|
||||
|
|
||||
4 | type Opaque;
|
||||
| ^^^^^^
|
||||
note: required by a bound in `assert_sync`
|
||||
--> $DIR/tests/ui/opaque_autotraits.rs:9:19
|
||||
--> tests/ui/opaque_autotraits.rs:9:19
|
||||
|
|
||||
9 | fn assert_sync<T: Sync>() {}
|
||||
| ^^^^ required by this bound in `assert_sync`
|
||||
|
||||
error[E0277]: `PhantomPinned` cannot be unpinned
|
||||
--> $DIR/tests/ui/opaque_autotraits.rs:15:5
|
||||
--> tests/ui/opaque_autotraits.rs:15:5
|
||||
|
|
||||
15 | assert_unpin::<ffi::Opaque>();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `ffi::Opaque`, the trait `Unpin` is not implemented for `PhantomPinned`
|
||||
@ -48,12 +48,12 @@ error[E0277]: `PhantomPinned` cannot be unpinned
|
||||
= note: required because it appears within the type `PhantomData<PhantomPinned>`
|
||||
= note: required because it appears within the type `cxx::private::Opaque`
|
||||
note: required because it appears within the type `ffi::Opaque`
|
||||
--> $DIR/tests/ui/opaque_autotraits.rs:4:14
|
||||
--> tests/ui/opaque_autotraits.rs:4:14
|
||||
|
|
||||
4 | type Opaque;
|
||||
| ^^^^^^
|
||||
note: required by a bound in `assert_unpin`
|
||||
--> $DIR/tests/ui/opaque_autotraits.rs:10:20
|
||||
--> tests/ui/opaque_autotraits.rs:10:20
|
||||
|
|
||||
10 | fn assert_unpin<T: Unpin>() {}
|
||||
| ^^^^^ required by this bound in `assert_unpin`
|
||||
|
@ -1,17 +1,17 @@
|
||||
error[E0277]: the size for values of type `str` cannot be known at compilation time
|
||||
--> $DIR/tests/ui/opaque_not_sized.rs:4:14
|
||||
--> tests/ui/opaque_not_sized.rs:4:14
|
||||
|
|
||||
4 | type TypeR;
|
||||
| ^^^^^ doesn't have a size known at compile-time
|
||||
|
|
||||
= help: within `TypeR`, the trait `Sized` is not implemented for `str`
|
||||
note: required because it appears within the type `TypeR`
|
||||
--> $DIR/tests/ui/opaque_not_sized.rs:8:8
|
||||
--> tests/ui/opaque_not_sized.rs:8:8
|
||||
|
|
||||
8 | struct TypeR(str);
|
||||
| ^^^^^
|
||||
note: required by a bound in `__AssertSized`
|
||||
--> $DIR/tests/ui/opaque_not_sized.rs:4:9
|
||||
--> tests/ui/opaque_not_sized.rs:4:9
|
||||
|
|
||||
4 | type TypeR;
|
||||
| ^^^^^^^^^^^ required by this bound in `__AssertSized`
|
||||
|
@ -1,35 +1,35 @@
|
||||
error: mutable reference to C++ type requires a pin -- use Pin<&mut Opaque>
|
||||
--> $DIR/tests/ui/pin_mut_opaque.rs:5:19
|
||||
--> tests/ui/pin_mut_opaque.rs:5:19
|
||||
|
|
||||
5 | fn f(arg: &mut Opaque);
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxString>
|
||||
--> $DIR/tests/ui/pin_mut_opaque.rs:8:17
|
||||
--> tests/ui/pin_mut_opaque.rs:8:17
|
||||
|
|
||||
8 | fn s(s: &mut CxxString);
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
||||
error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxVector<...>>
|
||||
--> $DIR/tests/ui/pin_mut_opaque.rs:9:17
|
||||
--> tests/ui/pin_mut_opaque.rs:9:17
|
||||
|
|
||||
9 | fn v(v: &mut CxxVector<u8>);
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: needs a cxx::ExternType impl in order to be used as a non-pinned mutable reference in signature of `f`, `g`, `h`
|
||||
--> $DIR/tests/ui/pin_mut_opaque.rs:4:9
|
||||
--> tests/ui/pin_mut_opaque.rs:4:9
|
||||
|
|
||||
4 | type Opaque;
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>`
|
||||
--> $DIR/tests/ui/pin_mut_opaque.rs:6:14
|
||||
--> tests/ui/pin_mut_opaque.rs:6:14
|
||||
|
|
||||
6 | fn g(&mut self);
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>`
|
||||
--> $DIR/tests/ui/pin_mut_opaque.rs:7:20
|
||||
--> tests/ui/pin_mut_opaque.rs:7:20
|
||||
|
|
||||
7 | fn h(self: &mut Opaque);
|
||||
| ^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: pointer argument requires that the function pointer be marked unsafe
|
||||
--> $DIR/tests/ui/ptr_in_fnptr.rs:4:27
|
||||
--> tests/ui/ptr_in_fnptr.rs:4:27
|
||||
|
|
||||
4 | fn f(callback: fn(p: *const u8));
|
||||
| ^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: pointer argument requires that the function be marked unsafe
|
||||
--> $DIR/tests/ui/ptr_missing_unsafe.rs:6:27
|
||||
--> tests/ui/ptr_missing_unsafe.rs:6:27
|
||||
|
|
||||
6 | fn not_unsafe_ptr(c: *mut C);
|
||||
| ^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: expected mut or const in raw pointer type
|
||||
--> $DIR/tests/ui/ptr_no_const_mut.rs:6:43
|
||||
--> tests/ui/ptr_no_const_mut.rs:6:43
|
||||
|
|
||||
6 | fn get_neither_const_nor_mut() -> *C;
|
||||
| ^ expected mut or const in raw pointer type
|
||||
@ -7,7 +7,7 @@ error: expected mut or const in raw pointer type
|
||||
= help: use `*mut T` or `*const T` as appropriate
|
||||
|
||||
error: expected `const` or `mut`
|
||||
--> $DIR/tests/ui/ptr_no_const_mut.rs:6:44
|
||||
--> tests/ui/ptr_no_const_mut.rs:6:44
|
||||
|
|
||||
6 | fn get_neither_const_nor_mut() -> *C;
|
||||
| ^
|
||||
|
@ -1,17 +1,17 @@
|
||||
error: C++ does not allow pointer to reference as a type
|
||||
--> $DIR/tests/ui/ptr_unsupported.rs:6:38
|
||||
--> tests/ui/ptr_unsupported.rs:6:38
|
||||
|
|
||||
6 | fn get_ptr_to_reference() -> *mut &C;
|
||||
| ^^^^^^^
|
||||
|
||||
error: unsupported unique_ptr target type
|
||||
--> $DIR/tests/ui/ptr_unsupported.rs:7:38
|
||||
--> tests/ui/ptr_unsupported.rs:7:38
|
||||
|
|
||||
7 | fn get_uniqueptr_to_ptr() -> UniquePtr<*mut C>;
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: unsupported vector element type
|
||||
--> $DIR/tests/ui/ptr_unsupported.rs:8:45
|
||||
--> tests/ui/ptr_unsupported.rs:8:45
|
||||
|
|
||||
8 | fn get_vector_of_ptr() -> UniquePtr<CxxVector<*mut C>>;
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
@ -1,11 +1,11 @@
|
||||
error: C++ does not allow references to references
|
||||
--> $DIR/tests/ui/reference_to_reference.rs:5:23
|
||||
--> tests/ui/reference_to_reference.rs:5:23
|
||||
|
|
||||
5 | fn repro_c(t: &&ThingC);
|
||||
| ^^^^^^^^
|
||||
|
||||
error: C++ does not allow references to references
|
||||
--> $DIR/tests/ui/reference_to_reference.rs:9:23
|
||||
--> tests/ui/reference_to_reference.rs:9:23
|
||||
|
|
||||
9 | fn repro_r(t: &&ThingR);
|
||||
| ^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0262]: invalid lifetime parameter name: `'static`
|
||||
--> $DIR/tests/ui/reserved_lifetime.rs:6:19
|
||||
--> tests/ui/reserved_lifetime.rs:6:19
|
||||
|
|
||||
6 | fn logger<'static>() -> Pin<&'static Logger>;
|
||||
| ^^^^^^^ 'static is a reserved lifetime name
|
||||
|
@ -1,17 +1,17 @@
|
||||
error: reserved name
|
||||
--> $DIR/tests/ui/reserved_name.rs:3:12
|
||||
--> tests/ui/reserved_name.rs:3:12
|
||||
|
|
||||
3 | struct UniquePtr {
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: reserved name
|
||||
--> $DIR/tests/ui/reserved_name.rs:8:14
|
||||
--> tests/ui/reserved_name.rs:8:14
|
||||
|
|
||||
8 | type Box;
|
||||
| ^^^
|
||||
|
||||
error: reserved name
|
||||
--> $DIR/tests/ui/reserved_name.rs:12:14
|
||||
--> tests/ui/reserved_name.rs:12:14
|
||||
|
|
||||
12 | type String;
|
||||
| ^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: `NonError` doesn't implement `std::fmt::Display`
|
||||
--> $DIR/tests/ui/result_no_display.rs:4:19
|
||||
--> tests/ui/result_no_display.rs:4:19
|
||||
|
|
||||
4 | fn f() -> Result<()>;
|
||||
| ^^^^^^^^^^ `NonError` cannot be formatted with the default formatter
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: expected expression, found `]`
|
||||
--> $DIR/tests/ui/root_namespace.rs:9:19
|
||||
--> tests/ui/root_namespace.rs:9:19
|
||||
|
|
||||
9 | #[namespace = ]
|
||||
| ^ expected expression
|
||||
|
@ -1,17 +1,17 @@
|
||||
error[E0277]: `PhantomPinned` cannot be unpinned
|
||||
--> $DIR/tests/ui/rust_pinned.rs:6:14
|
||||
--> tests/ui/rust_pinned.rs:6:14
|
||||
|
|
||||
6 | type Pinned;
|
||||
| ^^^^^^ within `Pinned`, the trait `Unpin` is not implemented for `PhantomPinned`
|
||||
|
|
||||
= note: consider using `Box::pin`
|
||||
note: required because it appears within the type `Pinned`
|
||||
--> $DIR/tests/ui/rust_pinned.rs:10:12
|
||||
--> tests/ui/rust_pinned.rs:10:12
|
||||
|
|
||||
10 | pub struct Pinned {
|
||||
| ^^^^^^
|
||||
note: required by a bound in `__AssertUnpin`
|
||||
--> $DIR/tests/ui/rust_pinned.rs:6:9
|
||||
--> tests/ui/rust_pinned.rs:6:9
|
||||
|
|
||||
6 | type Pinned;
|
||||
| ^^^^^^^^^^^^ required by this bound in `__AssertUnpin`
|
||||
|
@ -1,11 +1,11 @@
|
||||
error[E0271]: type mismatch resolving `<ElementOpaque as ExternType>::Kind == Trivial`
|
||||
--> $DIR/tests/ui/slice_of_type_alias.rs:13:9
|
||||
--> tests/ui/slice_of_type_alias.rs:13:9
|
||||
|
|
||||
13 | type ElementOpaque = crate::ElementOpaque;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Trivial`, found enum `cxx::kind::Opaque`
|
||||
|
|
||||
note: required by a bound in `verify_extern_kind`
|
||||
--> $DIR/src/extern_type.rs:186:41
|
||||
--> src/extern_type.rs:186:41
|
||||
|
|
||||
186 | pub fn verify_extern_kind<T: ExternType<Kind = Kind>, Kind: self::Kind>() {}
|
||||
| ^^^^^^^^^^^ required by this bound in `verify_extern_kind`
|
||||
|
@ -1,11 +1,11 @@
|
||||
error: unsupported &mut [T] element type: opaque C++ type is not supported yet
|
||||
--> $DIR/tests/ui/slice_unsupported.rs:6:17
|
||||
--> tests/ui/slice_unsupported.rs:6:17
|
||||
|
|
||||
6 | fn f(_: &mut [Opaque]);
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error: needs a cxx::ExternType impl in order to be used as a slice element in &mut [Opaque]
|
||||
--> $DIR/tests/ui/slice_unsupported.rs:4:9
|
||||
--> tests/ui/slice_unsupported.rs:4:9
|
||||
|
|
||||
4 | type Opaque;
|
||||
| ^^^^^^^^^^^
|
||||
|
@ -1,23 +1,23 @@
|
||||
error: unsupported cyclic data structure
|
||||
--> $DIR/tests/ui/struct_cycle.rs:26:9
|
||||
--> tests/ui/struct_cycle.rs:26:9
|
||||
|
|
||||
26 | node2: Node2,
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: unsupported cyclic data structure
|
||||
--> $DIR/tests/ui/struct_cycle.rs:22:9
|
||||
--> tests/ui/struct_cycle.rs:22:9
|
||||
|
|
||||
22 | node5: Node5,
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: unsupported cyclic data structure
|
||||
--> $DIR/tests/ui/struct_cycle.rs:13:9
|
||||
--> tests/ui/struct_cycle.rs:13:9
|
||||
|
|
||||
13 | node4: Node4,
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: unsupported cyclic data structure
|
||||
--> $DIR/tests/ui/struct_cycle.rs:8:9
|
||||
--> tests/ui/struct_cycle.rs:8:9
|
||||
|
|
||||
8 | node2: Node2,
|
||||
| ^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: type alias in extern "Rust" block is not supported
|
||||
--> $DIR/tests/ui/type_alias_rust.rs:5:9
|
||||
--> tests/ui/type_alias_rust.rs:5:9
|
||||
|
|
||||
5 | type Alias = crate::Type;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0596]: cannot borrow data in a dereference of `UniquePtr<ffi::Opaque>` as mutable
|
||||
--> $DIR/tests/ui/unique_ptr_as_mut.rs:22:31
|
||||
--> tests/ui/unique_ptr_as_mut.rs:22:31
|
||||
|
|
||||
22 | let _: &mut ffi::Opaque = &mut opaque;
|
||||
| ^^^^^^^^^^^ cannot borrow as mutable
|
||||
|
@ -1,11 +1,11 @@
|
||||
error[E0271]: type mismatch resolving `<outside::C as ExternType>::Kind == Trivial`
|
||||
--> $DIR/tests/ui/unique_ptr_to_opaque.rs:22:5
|
||||
--> tests/ui/unique_ptr_to_opaque.rs:22:5
|
||||
|
|
||||
22 | cxx::UniquePtr::new(outside::C { a: 4 });
|
||||
| ^^^^^^^^^^^^^^^^^^^ expected enum `Trivial`, found enum `cxx::kind::Opaque`
|
||||
|
|
||||
note: required by `UniquePtr::<T>::new`
|
||||
--> $DIR/src/unique_ptr.rs:38:5
|
||||
--> src/unique_ptr.rs:38:5
|
||||
|
|
||||
38 | / pub fn new(value: T) -> Self
|
||||
39 | | where
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0119]: conflicting implementations of trait `cxx::memory::UniquePtrTarget` for type `here::C`
|
||||
--> $DIR/tests/ui/unique_ptr_twice.rs:16:5
|
||||
--> tests/ui/unique_ptr_twice.rs:16:5
|
||||
|
|
||||
7 | impl UniquePtr<C> {}
|
||||
| ----------------- first implementation here
|
||||
|
@ -1,11 +1,11 @@
|
||||
error: unnamed receiver type is only allowed if the surrounding extern block contains exactly one extern type; use `self: &mut TheType`
|
||||
--> $DIR/tests/ui/unnamed_receiver.rs:6:14
|
||||
--> tests/ui/unnamed_receiver.rs:6:14
|
||||
|
|
||||
6 | fn f(&mut self);
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: unnamed receiver type is only allowed if the surrounding extern block contains exactly one extern type; use `self: &TheType`
|
||||
--> $DIR/tests/ui/unnamed_receiver.rs:10:20
|
||||
--> tests/ui/unnamed_receiver.rs:10:20
|
||||
|
|
||||
10 | fn f(self: &Self);
|
||||
| ^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0282]: type annotations needed for `fn()`
|
||||
--> $DIR/tests/ui/unpin_impl.rs:4:14
|
||||
--> tests/ui/unpin_impl.rs:4:14
|
||||
|
|
||||
1 | #[cxx::bridge]
|
||||
| -------------- consider giving this pattern the explicit type `fn()`, with the type parameters specified
|
||||
|
@ -1,5 +1,5 @@
|
||||
error: unrecognized receiver type
|
||||
--> $DIR/tests/ui/unrecognized_receiver.rs:4:20
|
||||
--> tests/ui/unrecognized_receiver.rs:4:20
|
||||
|
|
||||
4 | fn f(self: &Unrecognized);
|
||||
| ^^^^^^^^^^^^^
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0726]: implicit elided lifetime not allowed here
|
||||
--> $DIR/tests/ui/unsupported_elided.rs:6:14
|
||||
--> tests/ui/unsupported_elided.rs:6:14
|
||||
|
|
||||
6 | type T;
|
||||
| ^- help: indicate the anonymous lifetime: `<'_>`
|
||||
@ -7,7 +7,7 @@ error[E0726]: implicit elided lifetime not allowed here
|
||||
= note: assuming a `'static` lifetime...
|
||||
|
||||
error[E0106]: missing lifetime specifier
|
||||
--> $DIR/tests/ui/unsupported_elided.rs:8:24
|
||||
--> tests/ui/unsupported_elided.rs:8:24
|
||||
|
|
||||
8 | fn f(t: &T) -> &str;
|
||||
| -- ^ expected named lifetime parameter
|
||||
|
@ -1,23 +1,23 @@
|
||||
error: Rust Vec containing C++ type is not supported yet
|
||||
--> $DIR/tests/ui/vec_opaque.rs:15:19
|
||||
--> tests/ui/vec_opaque.rs:15:19
|
||||
|
|
||||
15 | fn f() -> Vec<Job>;
|
||||
| ^^^^^^^^
|
||||
|
||||
error: needs a cxx::ExternType impl in order to be used as a vector element in Vec<Job>
|
||||
--> $DIR/tests/ui/vec_opaque.rs:11:9
|
||||
--> tests/ui/vec_opaque.rs:11:9
|
||||
|
|
||||
11 | type Job;
|
||||
| ^^^^^^^^
|
||||
|
||||
error[E0271]: type mismatch resolving `<handle::Job as ExternType>::Kind == Trivial`
|
||||
--> $DIR/tests/ui/vec_opaque.rs:22:9
|
||||
--> tests/ui/vec_opaque.rs:22:9
|
||||
|
|
||||
22 | type Job = crate::handle::Job;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Trivial`, found enum `cxx::kind::Opaque`
|
||||
|
|
||||
note: required by a bound in `verify_extern_kind`
|
||||
--> $DIR/src/extern_type.rs:186:41
|
||||
--> src/extern_type.rs:186:41
|
||||
|
|
||||
186 | pub fn verify_extern_kind<T: ExternType<Kind = Kind>, Kind: self::Kind>() {}
|
||||
| ^^^^^^^^^^^ required by this bound in `verify_extern_kind`
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0277]: `*const cxx::void` cannot be sent between threads safely
|
||||
--> $DIR/tests/ui/vector_autotraits.rs:20:5
|
||||
--> tests/ui/vector_autotraits.rs:20:5
|
||||
|
|
||||
20 | assert_send::<CxxVector<ffi::NotThreadSafe>>();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const cxx::void` cannot be sent between threads safely
|
||||
@ -8,7 +8,7 @@ error[E0277]: `*const cxx::void` cannot be sent between threads safely
|
||||
= note: required because it appears within the type `[*const cxx::void; 0]`
|
||||
= note: required because it appears within the type `cxx::private::Opaque`
|
||||
note: required because it appears within the type `NotThreadSafe`
|
||||
--> $DIR/tests/ui/vector_autotraits.rs:7:14
|
||||
--> tests/ui/vector_autotraits.rs:7:14
|
||||
|
|
||||
7 | type NotThreadSafe;
|
||||
| ^^^^^^^^^^^^^
|
||||
@ -16,7 +16,7 @@ note: required because it appears within the type `NotThreadSafe`
|
||||
= note: required because it appears within the type `PhantomData<[NotThreadSafe]>`
|
||||
= note: required because it appears within the type `CxxVector<NotThreadSafe>`
|
||||
note: required by a bound in `assert_send`
|
||||
--> $DIR/tests/ui/vector_autotraits.rs:16:19
|
||||
--> tests/ui/vector_autotraits.rs:16:19
|
||||
|
|
||||
16 | fn assert_send<T: Send>() {}
|
||||
| ^^^^ required by this bound in `assert_send`
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0271]: type mismatch resolving `<StringPiece as ExternType>::Id == (f, o, l, l, y, (), B, y, t, e, R, a, n, g, e)`
|
||||
--> $DIR/tests/ui/wrong_type_id.rs:11:9
|
||||
--> tests/ui/wrong_type_id.rs:11:9
|
||||
|
|
||||
11 | type ByteRange = crate::here::StringPiece;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 15 elements, found one with 17 elements
|
||||
@ -7,7 +7,7 @@ error[E0271]: type mismatch resolving `<StringPiece as ExternType>::Id == (f, o,
|
||||
= 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)`
|
||||
note: required by a bound in `verify_extern_type`
|
||||
--> $DIR/src/extern_type.rs:183:41
|
||||
--> src/extern_type.rs:183:41
|
||||
|
|
||||
183 | pub fn verify_extern_type<T: ExternType<Id = Id>, Id>() {}
|
||||
| ^^^^^^^ required by this bound in `verify_extern_type`
|
||||
|
Loading…
Reference in New Issue
Block a user