Skip to content

Commit 9b97afd

Browse files
authored
Update dependencies (Rust, website npm) (#363)
1 parent 1e83ed3 commit 9b97afd

File tree

12 files changed

+150
-128
lines changed

12 files changed

+150
-128
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ mut_mut = "warn"
9494
naive_bytecount = "warn"
9595
needless_bitwise_bool = "warn"
9696
needless_collect = "warn"
97-
needless_continue = "warn"
9897
needless_for_each = "warn"
9998
negative_feature_names = "warn"
10099
no_effect_underscore_binding = "warn"
@@ -125,7 +124,7 @@ transmute_ptr_to_ptr = "warn"
125124
transmute_undefined_repr = "warn"
126125
try_err = "warn"
127126
type_repetition_in_bounds = "warn"
128-
unchecked_duration_subtraction = "warn"
127+
unchecked_time_subtraction = "warn"
129128
unicode_not_nfc = "warn"
130129
unnecessary_join = "warn"
131130
unnecessary_self_imports = "warn"

bon-macros/src/builder/builder_gen/member/config/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This lint occurs in code generated by `darling::FromAttributes`.
2+
// TODO: report/fix this in `darling` upstream.
3+
#![allow(clippy::needless_continue)]
4+
15
mod blanket;
26
mod getter;
37
mod setters;

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
|

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"devDependencies": {
3-
"prettier": "^3.6.2"
3+
"prettier": "^3.7.4"
44
}
55
}

rust-toolchain.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[toolchain]
2-
channel = "1.90.0"
3-
components = ["cargo"]
2+
channel = "1.92.0"
3+
# rust-src is required for consistently generating test snapshots with
4+
# `trybuild` that contain snippets of code from the standard library.
5+
components = ["cargo", "rust-src"]

0 commit comments

Comments
 (0)