Skip to content

Commit 0bb2fde

Browse files
committed
Update test snapshots
1 parent e399b36 commit 0bb2fde

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

bon/tests/integration/ui/compile_fail/attr_derive.stderr

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,13 @@ error[E0277]: the trait bound `StructContainsNonTrait: Clone` is not satisfied
356356
--> tests/integration/ui/compile_fail/attr_derive.rs:38:6
357357
|
358358
38 | impl StructContainsNonTrait {
359-
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `StructContainsNonTrait`
359+
| ^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
360+
|
361+
help: the trait `Clone` is not implemented for `StructContainsNonTrait`
362+
--> tests/integration/ui/compile_fail/attr_derive.rs:7:1
363+
|
364+
7 | struct StructContainsNonTrait {
365+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
360366

361367
error[E0277]: the trait bound `NoTraitImpls: Clone` is not satisfied
362368
--> tests/integration/ui/compile_fail/attr_derive.rs:43:49
@@ -425,8 +431,13 @@ error[E0277]: `StructContainsNonTrait` doesn't implement `Debug`
425431
--> tests/integration/ui/compile_fail/attr_derive.rs:38:6
426432
|
427433
38 | impl StructContainsNonTrait {
428-
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `StructContainsNonTrait`
434+
| ^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
435+
|
436+
help: the trait `Debug` is not implemented for `StructContainsNonTrait`
437+
--> tests/integration/ui/compile_fail/attr_derive.rs:7:1
429438
|
439+
7 | struct StructContainsNonTrait {
440+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
430441
= note: add `#[derive(Debug)]` to `StructContainsNonTrait` or manually `impl Debug for StructContainsNonTrait`
431442
note: required by a bound in `as_dyn_debug`
432443
--> src/__/better_errors.rs

bon/tests/integration/ui/compile_fail/attr_getter.stderr

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ error[E0277]: the member `Unset<negative_test_builder::members::x1>` was not set
197197
| ^^^^^^ the member `Unset<negative_test_builder::members::x1>` was not set, but this method requires it to be set
198198
|
199199
= help: the trait `IsSet` is not implemented for `Unset<negative_test_builder::members::x1>`
200-
= help: the trait `IsSet` is implemented for `Set<Name>`
201200
note: required by a bound in `NegativeTestBuilder::<S>::get_x1`
202201
--> tests/integration/ui/compile_fail/attr_getter.rs:21:10
203202
|
@@ -215,7 +214,6 @@ error[E0277]: the member `Unset<negative_test_builder::members::x2>` was not set
215214
| ^^^^^^ the member `Unset<negative_test_builder::members::x2>` was not set, but this method requires it to be set
216215
|
217216
= help: the trait `IsSet` is not implemented for `Unset<negative_test_builder::members::x2>`
218-
= help: the trait `IsSet` is implemented for `Set<Name>`
219217
note: required by a bound in `NegativeTestBuilder::<S>::get_x2`
220218
--> tests/integration/ui/compile_fail/attr_getter.rs:21:10
221219
|
@@ -233,7 +231,6 @@ error[E0277]: the member `Unset<negative_test_builder::members::x3>` was not set
233231
| ^^^^^^ the member `Unset<negative_test_builder::members::x3>` was not set, but this method requires it to be set
234232
|
235233
= help: the trait `IsSet` is not implemented for `Unset<negative_test_builder::members::x3>`
236-
= help: the trait `IsSet` is implemented for `Set<Name>`
237234
note: required by a bound in `NegativeTestBuilder::<S>::get_x3`
238235
--> tests/integration/ui/compile_fail/attr_getter.rs:21:10
239236
|

bon/tests/integration/ui/compile_fail/attr_required.stderr

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ error: `skip` attribute can't be specified together with `required`
2222
23 | #[builder(skip, required)]
2323
| ^^^^
2424

25-
error[E0599]: no method named `maybe_member` found for struct `ValidBuilder` in the current scope
25+
error[E0599]: no method named `maybe_member` found for struct `ValidBuilder<S>` in the current scope
2626
--> tests/integration/ui/compile_fail/attr_required.rs:38:30
2727
|
2828
27 | #[derive(Builder)]
@@ -37,7 +37,7 @@ help: there is a method `member` with a similar name
3737
38 + let _ = Valid::builder().member(Some(42));
3838
|
3939

40-
error[E0599]: no method named `maybe_some_member` found for struct `ValidBuilder` in the current scope
40+
error[E0599]: no method named `maybe_some_member` found for struct `ValidBuilder<S>` in the current scope
4141
--> tests/integration/ui/compile_fail/attr_required.rs:39:30
4242
|
4343
27 | #[derive(Builder)]
@@ -59,7 +59,6 @@ error[E0277]: the member `Unset<arg1>` was not set, but this method requires it
5959
| ^^^^^ the member `Unset<arg1>` was not set, but this method requires it to be set
6060
|
6161
= help: the trait `IsSet` is not implemented for `Unset<arg1>`
62-
= help: the trait `IsSet` is implemented for `Set<Name>`
6362
note: required for `sut_builder::Empty` to implement `sut_builder::IsComplete`
6463
--> tests/integration/ui/compile_fail/attr_required.rs:45:18
6564
|

bon/tests/integration/ui/compile_fail/attr_skip.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ error: `skip` attribute is not supported on function arguments; use a local vari
3434
26 | fn skip_on_fn_is_unsupporetd3(#[builder(skip = vec![42])] _z: Vec<u32>) {}
3535
| ^^^^
3636

37-
error[E0599]: no method named `x` found for struct `SkipGeneratesNoSetterBuilder` in the current scope
37+
error[E0599]: no method named `x` found for struct `SkipGeneratesNoSetterBuilder<S>` in the current scope
3838
--> tests/integration/ui/compile_fail/attr_skip.rs:38:38
3939
|
4040
29 | #[derive(Builder)]
@@ -43,7 +43,7 @@ error[E0599]: no method named `x` found for struct `SkipGeneratesNoSetterBuilder
4343
38 | SkipGeneratesNoSetter::builder().x(42).build();
4444
| ^ method not found in `SkipGeneratesNoSetterBuilder`
4545

46-
error[E0599]: no method named `y` found for struct `SkipGeneratesNoSetterBuilder` in the current scope
46+
error[E0599]: no method named `y` found for struct `SkipGeneratesNoSetterBuilder<S>` in the current scope
4747
--> tests/integration/ui/compile_fail/attr_skip.rs:39:38
4848
|
4949
29 | #[derive(Builder)]

bon/tests/integration/ui/compile_fail/diagnostic_on_unimplemented.stderr

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ error[E0277]: the member `Unset<y>` was not set, but this method requires it to
55
| ^^^^^ the member `Unset<y>` was not set, but this method requires it to be set
66
|
77
= help: the trait `IsSet` is not implemented for `Unset<y>`
8-
= help: the trait `IsSet` is implemented for `Set<Name>`
98
note: required for `SetX` to implement `IsComplete`
109
--> tests/integration/ui/compile_fail/diagnostic_on_unimplemented.rs:4:14
1110
|
@@ -27,7 +26,6 @@ error[E0277]: the member `Unset<renamed>` was not set, but this method requires
2726
| ^^^^^ the member `Unset<renamed>` was not set, but this method requires it to be set
2827
|
2928
= help: the trait `IsSet` is not implemented for `Unset<renamed>`
30-
= help: the trait `IsSet` is implemented for `Set<Name>`
3129
note: required for `SetX` to implement `IsComplete`
3230
--> tests/integration/ui/compile_fail/diagnostic_on_unimplemented.rs:4:14
3331
|
@@ -49,7 +47,6 @@ error[E0277]: the member `Set<y>` was already set, but this method requires it t
4947
| ^ the member `Set<y>` was already set, but this method requires it to be unset
5048
|
5149
= help: the trait `IsUnset` is not implemented for `Set<y>`
52-
= help: the trait `IsUnset` is implemented for `Unset<Name>`
5350
note: required by a bound in `ExampleBuilder::<S>::y`
5451
--> tests/integration/ui/compile_fail/diagnostic_on_unimplemented.rs:4:14
5552
|

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
22
channel = "1.92.0"
3-
components = ["cargo"]
3+
components = ["cargo", "rust-src"]

0 commit comments

Comments
 (0)