From 247e66e0f89ce7a989c6656282bb199d1d772ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Sat, 5 Feb 2022 01:24:31 +0100 Subject: [PATCH] Update UI-test output lockall_borrow_shared --- ui/lockall_borrow_shared.stderr | 20 +++++++++++--------- ui/lockall_borrow_shared_a.stderr | 20 +++++++++++--------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/ui/lockall_borrow_shared.stderr b/ui/lockall_borrow_shared.stderr index b0c8d66779..d75cb9ab8e 100644 --- a/ui/lockall_borrow_shared.stderr +++ b/ui/lockall_borrow_shared.stderr @@ -7,17 +7,19 @@ error[E0499]: cannot borrow `c.shared` as mutable more than once at a time | _________| first borrow later used by call | | 21 | | c.shared.lock(|_| {}); // borrow error - | | -------- first borrow occurs due to use of `c` in closure + | | -------- first borrow occurs due to use of `c.shared` in closure 22 | | }); | |__________^ second mutable borrow occurs here -error[E0499]: cannot borrow `c` as mutable more than once at a time +error[E0499]: cannot borrow `c.shared` 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 - | first mutable borrow occurs here -21 | c.shared.lock(|_| {}); // borrow error - | -------- second borrow occurs due to use of `c` in closure +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.shared` in closure +22 | | }); + | |__________- first mutable borrow occurs here diff --git a/ui/lockall_borrow_shared_a.stderr b/ui/lockall_borrow_shared_a.stderr index 37fee7bc91..96bba7f306 100644 --- a/ui/lockall_borrow_shared_a.stderr +++ b/ui/lockall_borrow_shared_a.stderr @@ -7,17 +7,19 @@ error[E0499]: cannot borrow `c.shared` as mutable more than once at a time | _________| first borrow later used by call | | 21 | | c.shared.a.lock(|_| {}); // borrow error - | | ---------- first borrow occurs due to use of `c` in closure + | | ---------- first borrow occurs due to use of `c.shared.a` in closure 22 | | }); | |__________^ second mutable borrow occurs here -error[E0499]: cannot borrow `c` as mutable more than once at a time +error[E0499]: cannot borrow `c.shared.a` 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 - | first mutable borrow occurs here -21 | c.shared.a.lock(|_| {}); // borrow error - | ---------- second borrow occurs due to use of `c` in closure +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.shared.a` in closure +22 | | }); + | |__________- first mutable borrow occurs here