Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions bon/tests/integration/builder/attr_bon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,16 @@ fn receiver_variations() {
fn mut_self_ref_self(#[allow(clippy::needless_arbitrary_self_type)] mut self: &Self) {
#[allow(clippy::self_assignment, unused_assignments)]
{
self = self;
self = &Self { field: 43 };
}
}

#[builder]
fn mut_self_as_ref_mut_self(
#[allow(clippy::needless_arbitrary_self_type)] mut self: &mut Self,
) {
#[allow(clippy::self_assignment, unused_assignments)]
self.field = 45;
#[allow(clippy::self_assignment, unused_assignments, dead_code)]
{
self = self;
}
Expand Down Expand Up @@ -126,7 +127,7 @@ fn receiver_variations() {

Sut::mut_self_as_ref_mut_self(&mut sut).call();
sut.mut_self_as_ref_mut_self().call();
assert_eq!(sut.field, 44);
assert_eq!(sut.field, 45);

Sut::self_as_pin_mut_self(Pin::new(&mut sut)).call();
Pin::new(&mut sut).self_as_pin_mut_self().call();
Expand Down
1 change: 1 addition & 0 deletions scripts/test-msrv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ step cargo update -p tokio --precise 1.29.1
step cargo update -p expect-test --precise 1.4.1
step cargo update -p windows-sys --precise 0.52.0
step cargo update -p libc --precise 0.2.163
step cargo update -p glob --precise 0.3.2

export RUSTFLAGS="${RUSTFLAGS:-} --allow unknown-lints"

Expand Down
Loading