Skip to content

Commit 694d249

Browse files
committed
slightly more verbose error msg
1 parent 41f89be commit 694d249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stacked_borrows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl<'tcx> Stack {
153153
fn deref(&self, bor: Borrow, kind: RefKind) -> Result<Option<usize>, String> {
154154
// Exclude unique ref with frozen tag.
155155
if let (RefKind::Unique, Borrow::Shr(Some(_))) = (kind, bor) {
156-
return Err(format!("Encountered mutable reference with frozen tag"));
156+
return Err(format!("Encountered mutable reference with frozen tag ({:?})", bor));
157157
}
158158
// Checks related to freezing
159159
match bor {

0 commit comments

Comments
 (0)