Skip to content

Commit de30b50

Browse files
committed
test: Update stderr output files
1 parent 58b03e7 commit de30b50

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: the previous field name must not start with the deprecation prefix
2-
--> tests/default/fail/changed.rs:11:52
2+
--> tests/default/changed.rs:11:52
33
|
44
11 | changed(since = "v1beta1", from_name = "deprecated_bar"),
55
| ^^^^^^^^^^^^^^^^
66

77
error: the previous field name must not start with the deprecation prefix
8-
--> tests/default/fail/changed.rs:12:47
8+
--> tests/default/changed.rs:12:47
99
|
1010
12 | changed(since = "v1", from_name = "deprecated_baz")
1111
| ^^^^^^^^^^^^^^^^
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: deprecation must be done using #[versioned(deprecated(since = "VERSION"))]
2-
--> tests/default/fail/deprecate.rs:10:9
2+
--> tests/default/deprecate.rs:10:9
33
|
44
10 | #[deprecated]
55
| ^

crates/stackable-versioned-macros/tests/default/skip_from_all.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> tests/default/fail/skip_from_all.rs:23:42
2+
--> tests/default/skip_from_all.rs:23:42
33
|
44
23 | let foo_v1beta1 = v1beta1::Foo::from(foo_v1alpha1);
55
| ------------------ ^^^^^^^^^^^^ expected `v1beta1::Foo`, found `v1alpha1::Foo`
@@ -8,7 +8,7 @@ error[E0308]: mismatched types
88
|
99
= note: `v1alpha1::Foo` and `v1beta1::Foo` have similar names, but are actually distinct types
1010
note: `v1alpha1::Foo` is defined in module `crate::main::v1alpha1` of the current crate
11-
--> tests/default/fail/skip_from_all.rs:4:5
11+
--> tests/default/skip_from_all.rs:4:5
1212
|
1313
4 | / #[versioned(
1414
5 | | version(name = "v1alpha1"),
@@ -18,7 +18,7 @@ note: `v1alpha1::Foo` is defined in module `crate::main::v1alpha1` of the curren
1818
9 | | )]
1919
| |______^
2020
note: `v1beta1::Foo` is defined in module `crate::main::v1beta1` of the current crate
21-
--> tests/default/fail/skip_from_all.rs:4:5
21+
--> tests/default/skip_from_all.rs:4:5
2222
|
2323
4 | / #[versioned(
2424
5 | | version(name = "v1alpha1"),

crates/stackable-versioned-macros/tests/default/skip_from_version.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> tests/default/fail/skip_from_version.rs:23:32
2+
--> tests/default/skip_from_version.rs:23:32
33
|
44
23 | let foo_v1 = v1::Foo::from(foo_v1beta1);
55
| ------------- ^^^^^^^^^^^ expected `main::v1::Foo`, found `v1beta1::Foo`
@@ -8,7 +8,7 @@ error[E0308]: mismatched types
88
|
99
= note: `v1beta1::Foo` and `main::v1::Foo` have similar names, but are actually distinct types
1010
note: `v1beta1::Foo` is defined in module `crate::main::v1beta1` of the current crate
11-
--> tests/default/fail/skip_from_version.rs:4:5
11+
--> tests/default/skip_from_version.rs:4:5
1212
|
1313
4 | / #[versioned(
1414
5 | | version(name = "v1alpha1"),
@@ -17,7 +17,7 @@ note: `v1beta1::Foo` is defined in module `crate::main::v1beta1` of the current
1717
8 | | )]
1818
| |______^
1919
note: `main::v1::Foo` is defined in module `crate::main::v1` of the current crate
20-
--> tests/default/fail/skip_from_version.rs:4:5
20+
--> tests/default/skip_from_version.rs:4:5
2121
|
2222
4 | / #[versioned(
2323
5 | | version(name = "v1alpha1"),
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: struct name needs to include the `Spec` suffix if Kubernetes features are enabled via `#[versioned(k8s())]`
2-
--> tests/k8s/fail/crd.rs:15:16
2+
--> tests/k8s/crd.rs:15:16
33
|
44
15 | pub struct Foo {
55
| ^^^
66

77
error[E0433]: failed to resolve: use of undeclared type `Foo`
8-
--> tests/k8s/fail/crd.rs:24:22
8+
--> tests/k8s/crd.rs:24:22
99
|
1010
24 | let merged_crd = Foo::merged_crd("v1").unwrap();
1111
| ^^^ use of undeclared type `Foo`

0 commit comments

Comments
 (0)