-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made sure that variant missing has a witness
- Loading branch information
1 parent
972a769
commit 6d2a737
Showing
2 changed files
with
17 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
source: src/query.rs | ||
description: "Lint `enum_variant_missing` did not have the expected witness output.\nSee https://github.com/obi1kenobi/cargo-semver-checks/blob/main/CONTRIBUTING.md#testing-witnesses\nfor more information." | ||
expression: "&actual_witnesses" | ||
--- | ||
[["./test_crates/enum_struct_variant_field_missing/"]] | ||
filename = 'src/lib.rs' | ||
begin_line = 14 | ||
hint = 'let witness = enum_struct_variant_field_missing::IgnoredEnum::StructVariantWillBeMissing;' | ||
|
||
[["./test_crates/enum_variant_missing/"]] | ||
filename = 'src/lib.rs' | ||
begin_line = 5 | ||
hint = 'let witness = enum_variant_missing::VariantWillBeRemoved::Bar;' |