Skip to content

Commit

Permalink
chore: change rustc version to nightly
Browse files Browse the repository at this point in the history
Signed-off-by: Lohachov Mykhailo <[email protected]>
  • Loading branch information
aoyako committed Oct 23, 2024
1 parent b9646df commit 2367c41
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
error: Only one #[has_origin] attribute is allowed!
--> tests/ui_fail/has_origin_multiple_attributes.rs:5:1
|
5 | #[has_origin(origin = Object)]
| ^
5 | / #[has_origin(origin = Object)]
6 | | #[has_origin(origin = Object)]
| |______________________________^
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0119]: conflicting implementations of trait `From<Variant1>` for type `En
--> tests/ui_fail/../ui_pass/enum_from_variant.rs
|
| Variant1(Variant1),
| ^^^^^^^^ conflicting implementation for `Enum`
| ^^^^^^^^^^^^^^^^^^ conflicting implementation for `Enum`
|
::: tests/ui_fail/from_variant_conflicting_implementation.rs:3:1
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ error: #[skip_from] attribute should be applied to the field, not variant
--> tests/ui_fail/from_variant_incorrect_attr_placement.rs:6:5
|
6 | #[skip_from]
| ^
| ^^^^^^^^^^^^
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ error[E0119]: conflicting implementations of trait `TryFrom<Enum>` for type `i32
--> tests/ui_fail/from_variant_same_type.rs:4:5
|
3 | Variant1(i32),
| -------- first implementation here
| ------------ first implementation here
4 | Variant2(i32),
| ^^^^^^^^ conflicting implementation for `i32`
| ^^^^^^^^^^^^ conflicting implementation for `i32`

error[E0119]: conflicting implementations of trait `From<i32>` for type `Enum`
--> tests/ui_fail/from_variant_same_type.rs:4:5
|
3 | Variant1(i32),
| -------- first implementation here
| ------------- first implementation here
4 | Variant2(i32),
| ^^^^^^^^ conflicting implementation for `Enum`
| ^^^^^^^^^^^^^ conflicting implementation for `Enum`
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ error: Fieldless enums with explicit discriminants are prohibited
--> tests/ui_fail/fieldless_enum_with_explicit_discriminant.rs:6:5
|
6 | A = 1,
| ^
| ^^^^^
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ error[E0277]: the trait bound `bool: ReprC` is not satisfied
and $N others
= help: see issue #48214
= note: this error originates in the derive macro `FfiType` (in Nightly builds, run with -Z macro-backtrace for more info)
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
1 + #![feature(trivial_bounds)]
|
17 changes: 11 additions & 6 deletions crates/iroha_ffi_derive/tests/ui_fail/uninhabited_enum.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
error: Uninhabited enums are not allowed in FFI
--> tests/ui_fail/uninhabited_enum.rs:3:1
|
3 | /// Uninhabited enum
| ^^^^^^^^^^^^^^^^^^^^
3 | / /// Uninhabited enum
4 | | #[derive(FfiType)]
5 | | #[ffi_type(opaque)]
6 | | pub enum FfiStruct1 {}
| |______________________^

error: Uninhabited enums are not allowed in FFI
--> tests/ui_fail/uninhabited_enum.rs:8:1
|
8 | /// Uninhabited enum
| ^^^^^^^^^^^^^^^^^^^^
--> tests/ui_fail/uninhabited_enum.rs:8:1
|
8 | / /// Uninhabited enum
9 | | #[derive(FfiType)]
10 | | pub enum FfiStruct2 {}
| |______________________^
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error: Unknown field: `versiond_alias`. Did you mean `versioned_alias`?
--> tests/ui_fail/field_typo_in_version_attribute.rs:7:24
|
7 | #[version(version = 1, versiond_alias = "VersionedMessage")]
| ^^^^^^^^^^^^^^
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: Missing field `versioned_alias`
--> tests/ui_fail/field_typo_in_version_attribute.rs:7:1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error: Unknown field: `derive`
--> tests/ui_fail/unknown_field_in_version_attribute.rs:7:62
|
7 | #[version(version = 1, versioned_alias = "VersionedMessage", derive = "Clone")]
| ^^^^^^
| ^^^^^^^^^^^^^^^^

error[E0412]: cannot find type `_VersionedMessageV1` in this scope
--> tests/ui_fail/unknown_field_in_version_attribute.rs:5:1
Expand Down

0 comments on commit 2367c41

Please sign in to comment.