-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch trybuild errors during monomorphization as well
- Loading branch information
Showing
4 changed files
with
49 additions
and
10 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
fn main() {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,43 @@ | ||
error[E0080]: evaluation of constant value failed | ||
--> ui/invalid_option_encode_impl.rs | ||
error[E0080]: evaluation of `<std::option::Option<MyType> as objc2::Encode>::ENCODING` failed | ||
--> $WORKSPACE/crates/objc2/src/encode/mod.rs | ||
| | ||
| panic!("todo"); | ||
| ^^^^^^^^^^^^^^ the evaluated program panicked at 'todo', $DIR/ui/invalid_option_encode_impl.rs:24:9 | ||
| panic!("invalid OptionEncode + Encode implementation"); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'invalid OptionEncode + Encode implementation', $WORKSPACE/crates/objc2/src/encode/mod.rs:276:13 | ||
| | ||
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
note: erroneous constant used | ||
--> ui/invalid_option_encode_impl.rs | ||
| | ||
| assert_eq!(<Option<MyType>>::ENCODING, MyType::ENCODING); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
note: erroneous constant used | ||
--> ui/invalid_option_encode_impl.rs | ||
| | ||
| assert_eq!(<Option<MyType>>::ENCODING, MyType::ENCODING); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this note originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0080]: evaluation of `<std::option::Option<MyType> as objc2::RefEncode>::ENCODING_REF` failed | ||
--> $WORKSPACE/crates/objc2/src/encode/mod.rs | ||
| | ||
| panic!("invalid OptionEncode + RefEncode implementation"); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'invalid OptionEncode + RefEncode implementation', $WORKSPACE/crates/objc2/src/encode/mod.rs:286:13 | ||
| | ||
= note: this error originates in the macro `$crate::panic::panic_2021` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
note: erroneous constant used | ||
--> ui/invalid_option_encode_impl.rs | ||
| | ||
| assert_eq!(<Option<MyType>>::ENCODING_REF, MyType::ENCODING_REF); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
note: erroneous constant used | ||
--> ui/invalid_option_encode_impl.rs | ||
| | ||
| assert_eq!(<Option<MyType>>::ENCODING_REF, MyType::ENCODING_REF); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this note originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) |