-
Notifications
You must be signed in to change notification settings - Fork 35
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 #69 from alex/fix-ci
Attempt to fix CI and test on multiple rustc versions
- Loading branch information
Showing
10 changed files
with
41 additions
and
42 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
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,22 +1,15 @@ | ||
error: Ouroboros cannot automatically determine if this type is covariant. | ||
|
||
If it is covariant, it should be legal to convert any instance of that type to an instance of that type where all usages of 'this are replaced with a smaller lifetime. For example, Box<&'this i32> is covariant because it is legal to use it as a Box<&'a i32> where 'this: 'a. In contrast, Fn(&'this i32) cannot be used as Fn(&'a i32). | ||
If it is covariant, it should be legal to convert any instance of that type to an instance of that type where all usages of 'this are replaced with a smaller lifetime. For example, Box<&'this i32> is covariant because it is legal to use it as a Box<&'a i32> where 'this: 'a. In contrast, Fn(&'this i32) cannot be used as Fn(&'a i32). | ||
|
||
To resolve this error, add #[covariant] or #[not_covariant] to the field. | ||
|
||
--> $DIR/auto_covariant.rs:11:12 | ||
To resolve this error, add #[covariant] or #[not_covariant] to the field. | ||
--> src/fail_tests/auto_covariant.rs:11:12 | ||
| | ||
11 | field: NotGuaranteedCovariant<'this> | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error[E0601]: `main` function not found in crate `$CRATE` | ||
--> $DIR/auto_covariant.rs:1:1 | ||
--> src/fail_tests/auto_covariant.rs:12:2 | ||
| | ||
1 | / use ouroboros::self_referencing; | ||
2 | | | ||
3 | | struct NotGuaranteedCovariant<'a> { | ||
4 | | data: &'a (), | ||
... | | ||
11 | | field: NotGuaranteedCovariant<'this> | ||
12 | | } | ||
| |_^ consider adding a `main` function to `$DIR/src/fail_tests/auto_covariant.rs` | ||
12 | } | ||
| ^ consider adding a `main` function to `$DIR/src/fail_tests/auto_covariant.rs` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
error[E0599]: no function or associated item named `is_std_box_type` found for struct `CheckIfTypeIsStd<Box<String>>` in the current scope | ||
--> $DIR/refuse_non_std_box.rs:19:1 | ||
--> src/fail_tests/refuse_non_std_box.rs:19:1 | ||
| | ||
19 | #[self_referencing] | ||
| ^^^^^^^^^^^^^^^^^^^ function or associated item not found in `CheckIfTypeIsStd<Box<String>>` | ||
| | ||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
= note: the function or associated item was found for | ||
- `CheckIfTypeIsStd<std::boxed::Box<T>>` | ||
= note: this error originates in the attribute macro `self_referencing` (in Nightly builds, run with -Z macro-backtrace for more info) |
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