-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1479 from matrix-org/jplatte/record-field-ffi-tag
Improve UniFFI tag handling in macros
- Loading branch information
Showing
13 changed files
with
195 additions
and
202 deletions.
There are no files selected for viewing
8 changes: 6 additions & 2 deletions
8
fixtures/uitests/tests/ui/fieldless_errors_used_in_callbacks_cant_have_fields.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
error[E0533]: expected unit struct, unit variant or constant, found struct variant `Self::DivisionByZero` | ||
--> $OUT_DIR[uniffi_uitests]/errors.uniffi.rs | ||
| | ||
| #[::uniffi::ffi_converter_error(crate::UniFfiTag)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| / #[::uniffi::ffi_converter_error( | ||
| | tag = crate::UniFfiTag, | ||
| | flat_error, | ||
| | with_try_read, | ||
| | )] | ||
| |__^ | ||
| | ||
= note: this error originates in the attribute macro `::uniffi::ffi_converter_error` (in Nightly builds, run with -Z macro-backtrace for more info) |
14 changes: 7 additions & 7 deletions
14
fixtures/uitests/tests/ui/interface_cannot_use_mut_self.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
error[E0308]: mismatched types | ||
--> $OUT_DIR[uniffi_uitests]/counter.uniffi.rs | ||
| | ||
| Ok(ref val) => val, | ||
| ^^^ types differ in mutability | ||
| | ||
= note: expected mutable reference `&mut Counter` | ||
found reference `&Arc<Counter>` | ||
--> $OUT_DIR[uniffi_uitests]/counter.uniffi.rs | ||
| | ||
| Ok(ref val) => val, | ||
| ^^^ types differ in mutability | ||
| | ||
= note: expected mutable reference `&mut Counter` | ||
found reference `&Arc<Counter>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.