Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tnowacki committed Oct 12, 2023
1 parent c8ca5a1 commit c119853
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module 0x2::A {
borrow_global<R>(b).f2
}

#[test, expected_failure]
#[test, expected_failure, allow(unused_mut_ref)]
public fun borrow_mut_err(): u64 acquires R {
let b = @0x2;
borrow_global_mut<R>(b).f2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::debug;
use std::vector;
use 0x2::N;

#[allow(unused_mut_ref)]
fun print_stack_trace() {
let v = vector::empty();
vector::push_back(&mut v, true);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
address 0x2 {
#[allow(unused_type_parameter)]
#[allow(unused_type_parameter, unused_mut_ref)]
module N {
use 0x2::M;

Expand Down

0 comments on commit c119853

Please sign in to comment.