From 82947e3a59e8ecf66e2628aabad95446566e5462 Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Tue, 26 Oct 2021 20:30:07 +0200 Subject: [PATCH] moved to stable compiler --- ui/lockall_borrow_shared.stderr | 16 +++++++--------- ui/lockall_borrow_shared_a.stderr | 16 +++++++--------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/ui/lockall_borrow_shared.stderr b/ui/lockall_borrow_shared.stderr index 97d0e7856a..b0c8d66779 100644 --- a/ui/lockall_borrow_shared.stderr +++ b/ui/lockall_borrow_shared.stderr @@ -14,12 +14,10 @@ error[E0499]: cannot borrow `c.shared` as mutable more than once at a time error[E0499]: cannot borrow `c` as mutable more than once at a time --> ui/lockall_borrow_shared.rs:20:23 | -20 | c.shared.lock(|_| { - | - ---- ^^^ second mutable borrow occurs here - | | | - | _________| first borrow later used by call - | | -21 | | c.shared.lock(|_| {}); // borrow error - | | -------- second borrow occurs due to use of `c` in closure -22 | | }); - | |__________- first mutable borrow occurs here +20 | c.shared.lock(|_| { + | -------- ---- ^^^ second mutable borrow occurs here + | | | + | | first borrow later used by call + | first mutable borrow occurs here +21 | c.shared.lock(|_| {}); // borrow error + | -------- second borrow occurs due to use of `c` in closure diff --git a/ui/lockall_borrow_shared_a.stderr b/ui/lockall_borrow_shared_a.stderr index bc1a5bfd60..37fee7bc91 100644 --- a/ui/lockall_borrow_shared_a.stderr +++ b/ui/lockall_borrow_shared_a.stderr @@ -14,12 +14,10 @@ error[E0499]: cannot borrow `c.shared` as mutable more than once at a time error[E0499]: cannot borrow `c` as mutable more than once at a time --> ui/lockall_borrow_shared_a.rs:20:23 | -20 | c.shared.lock(|_| { - | - ---- ^^^ second mutable borrow occurs here - | | | - | _________| first borrow later used by call - | | -21 | | c.shared.a.lock(|_| {}); // borrow error - | | ---------- second borrow occurs due to use of `c` in closure -22 | | }); - | |__________- first mutable borrow occurs here +20 | c.shared.lock(|_| { + | -------- ---- ^^^ second mutable borrow occurs here + | | | + | | first borrow later used by call + | first mutable borrow occurs here +21 | c.shared.a.lock(|_| {}); // borrow error + | ---------- second borrow occurs due to use of `c` in closure