-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Break down check attribute function - Improve comment - Add debug_assert for invalid unstable attribute - Make all fields required
- Loading branch information
Showing
5 changed files
with
133 additions
and
80 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
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,31 +1,10 @@ | ||
error: failed to parse `#[kani::unstable]`: expected "key = value" pair, but found `feature("invalid_args")` | ||
lib.rs\ | ||
|\ | ||
| #[kani::unstable(reason = "just checking", issue = "<link>")]\ | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\ | ||
|\ | ||
= note: expected format: `#[kani::unstable(feature="<IDENTIFIER>", issue="<OPTIONAL_ISSUE>", reason="<OPTIONAL_DESCRIPTION>")]` | ||
|
||
error: failed to parse `#[kani::unstable]`: expected "key = value" pair, but found `1010` | ||
lib.rs\ | ||
error: failed to parse `#[kani::unstable]`: expected "key = value" pair, but found `feature("invalid_args")`\ | ||
src/lib.rs\ | ||
|\ | ||
| #[kani::unstable(feature("invalid_args"))]\ | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\ | ||
|\ | ||
= note: expected format: `#[kani::unstable(feature="<IDENTIFIER>", issue="<OPTIONAL_ISSUE>", reason="<OPTIONAL_DESCRIPTION>")]` | ||
|
||
error: failed to parse `#[kani::unstable]`: expected "key = value" pair, but found `feature` | ||
lib.rs\ | ||
|\ | ||
| #[kani::unstable(feature, issue)]\ | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\ | ||
|\ | ||
= note: expected format: `#[kani::unstable(feature="<IDENTIFIER>", issue="<OPTIONAL_ISSUE>", reason="<OPTIONAL_DESCRIPTION>")]` | ||
= note: expected format: #[kani::unstable(feature="<IDENTIFIER>", issue="<ISSUE>", reason="<DESCRIPTION>")]\ | ||
= note: this error originates in the attribute macro `kani::unstable` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: failed to parse `#[kani::unstable]`: missing feature identifier | ||
lib.rs\ | ||
|\ | ||
| #[kani::unstable(1010)]\ | ||
| ^^^^^^^^^^^^^^^^^^^^^^^\ | ||
|\ | ||
= note: expected format: `#[kani::unstable(feature="<IDENTIFIER>", issue="<OPTIONAL_ISSUE>", reason="<OPTIONAL_DESCRIPTION>")]` | ||
error: internal compiler error |
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,9 +1,9 @@ | ||
error: Use of unstable feature `always_fails`: do not enable\ | ||
|\ | ||
note: the function `defs::always_fails` is unstable:\ | ||
lib.rs:5:1\ | ||
lib.rs\ | ||
|\ | ||
| pub fn always_fails() {\ | ||
| ^^^^^^^^^^^^^^^^^^^^^\ | ||
= note: see issue <link> for more information\ | ||
= help: use `-Z always_fails` to enable use this API. | ||
= help: use `-Z always_fails` to enable using this function. |