Skip to content

Commit 5fe1454

Browse files
committed
Accepted all incoming changes
1 parent e848850 commit 5fe1454

File tree

2 files changed

+43
-8
lines changed

2 files changed

+43
-8
lines changed

test_outputs/query_execution/enum_variant_no_longer_non_exhaustive.snap

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ expression: "&query_execution_results"
1717
"visibility_limit": String("public"),
1818
},
1919
],
20-
"./test_crates/enum_non_exhaustive_struct_variant_field_added/": [
20+
"./test_crates/enum_non_exhaustive_tuple_variant_changed_kind/": [
2121
{
22-
"enum_name": String("EnumWithNonExhaustiveVariant"),
22+
"enum_name": String("TestBecomeExhaustive"),
2323
"path": List([
24-
String("enum_non_exhaustive_struct_variant_field_added"),
25-
String("EnumWithNonExhaustiveVariant"),
24+
String("enum_non_exhaustive_tuple_variant_changed_kind"),
25+
String("TestBecomeExhaustive"),
2626
]),
27-
"span_begin_line": Uint64(24),
28-
"span_end_line": Uint64(24),
27+
"span_begin_line": Uint64(28),
28+
"span_end_line": Uint64(28),
2929
"span_filename": String("src/lib.rs"),
30-
"variant_name": String("NonExhaustiveVariant"),
30+
"variant_name": String("WillBecomeStructLike"),
3131
"visibility_limit": String("public"),
3232
},
3333
],

test_outputs/witnesses/enum_tuple_variant_changed_kind.snap

+36-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,44 @@
11
---
22
source: src/query.rs
3-
assertion_line: 847
43
description: "Lint `enum_tuple_variant_changed_kind` did not have the expected witness output.\nSee https://github.com/obi1kenobi/cargo-semver-checks/blob/main/CONTRIBUTING.md#testing-witnesses\nfor more information."
54
expression: "&actual_witnesses"
65
---
6+
[["./test_crates/enum_non_exhaustive_tuple_variant_changed_kind/"]]
7+
filename = 'src/lib.rs'
8+
begin_line = 38
9+
hint = '''
10+
match value {
11+
enum_non_exhaustive_tuple_variant_changed_kind::TestStructExhaustive::WillBecomeStructLike(..) => (),
12+
_ => (),
13+
}'''
14+
15+
[["./test_crates/enum_non_exhaustive_tuple_variant_changed_kind/"]]
16+
filename = 'src/lib.rs'
17+
begin_line = 42
18+
hint = '''
19+
match value {
20+
enum_non_exhaustive_tuple_variant_changed_kind::TestUnitExhaustive::WillBecomeUnitLike(..) => (),
21+
_ => (),
22+
}'''
23+
24+
[["./test_crates/enum_non_exhaustive_tuple_variant_changed_kind/"]]
25+
filename = 'src/lib.rs'
26+
begin_line = 46
27+
hint = '''
28+
match value {
29+
enum_non_exhaustive_tuple_variant_changed_kind::MultipleTestExhaustive::WillBecomeStructLike(..) => (),
30+
_ => (),
31+
}'''
32+
33+
[["./test_crates/enum_non_exhaustive_tuple_variant_changed_kind/"]]
34+
filename = 'src/lib.rs'
35+
begin_line = 47
36+
hint = '''
37+
match value {
38+
enum_non_exhaustive_tuple_variant_changed_kind::MultipleTestExhaustive::WillBecomeUnitLike(..) => (),
39+
_ => (),
40+
}'''
41+
742
[["./test_crates/enum_tuple_variant_changed_kind/"]]
843
filename = 'src/lib.rs'
944
begin_line = 5

0 commit comments

Comments
 (0)