File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
crates/stackable-versioned-macros/tests Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
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
3
3
|
4
4
11 | changed(since = "v1beta1", from_name = "deprecated_bar"),
5
5
| ^^^^^^^^^^^^^^^^
6
6
7
7
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
9
9
|
10
10
12 | changed(since = "v1", from_name = "deprecated_baz")
11
11
| ^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 1
1
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
3
3
|
4
4
10 | #[deprecated]
5
5
| ^
Original file line number Diff line number Diff line change 1
1
error[E0308]: mismatched types
2
- --> tests/default/fail/ skip_from_all.rs:23:42
2
+ --> tests/default/skip_from_all.rs:23:42
3
3
|
4
4
23 | let foo_v1beta1 = v1beta1::Foo::from(foo_v1alpha1);
5
5
| ------------------ ^^^^^^^^^^^^ expected `v1beta1::Foo`, found `v1alpha1::Foo`
@@ -8,7 +8,7 @@ error[E0308]: mismatched types
8
8
|
9
9
= note: `v1alpha1::Foo` and `v1beta1::Foo` have similar names, but are actually distinct types
10
10
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
12
12
|
13
13
4 | / #[versioned(
14
14
5 | | version(name = "v1alpha1"),
@@ -18,7 +18,7 @@ note: `v1alpha1::Foo` is defined in module `crate::main::v1alpha1` of the curren
18
18
9 | | )]
19
19
| |______^
20
20
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
22
22
|
23
23
4 | / #[versioned(
24
24
5 | | version(name = "v1alpha1"),
Original file line number Diff line number Diff line change 1
1
error[E0308]: mismatched types
2
- --> tests/default/fail/ skip_from_version.rs:23:32
2
+ --> tests/default/skip_from_version.rs:23:32
3
3
|
4
4
23 | let foo_v1 = v1::Foo::from(foo_v1beta1);
5
5
| ------------- ^^^^^^^^^^^ expected `main::v1::Foo`, found `v1beta1::Foo`
@@ -8,7 +8,7 @@ error[E0308]: mismatched types
8
8
|
9
9
= note: `v1beta1::Foo` and `main::v1::Foo` have similar names, but are actually distinct types
10
10
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
12
12
|
13
13
4 | / #[versioned(
14
14
5 | | version(name = "v1alpha1"),
@@ -17,7 +17,7 @@ note: `v1beta1::Foo` is defined in module `crate::main::v1beta1` of the current
17
17
8 | | )]
18
18
| |______^
19
19
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
21
21
|
22
22
4 | / #[versioned(
23
23
5 | | version(name = "v1alpha1"),
Original file line number Diff line number Diff line change 1
1
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
3
3
|
4
4
15 | pub struct Foo {
5
5
| ^^^
6
6
7
7
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
9
9
|
10
10
24 | let merged_crd = Foo::merged_crd("v1").unwrap();
11
11
| ^^^ use of undeclared type `Foo`
You can’t perform that action at this time.
0 commit comments