slightly more verbose error msg

This commit is contained in:
Ralf Jung 2018-11-21 16:02:38 +01:00
parent 41f89beb3f
commit 694d2490f1

View File

@ -153,7 +153,7 @@ impl<'tcx> Stack {
fn deref(&self, bor: Borrow, kind: RefKind) -> Result<Option<usize>, String> {
// Exclude unique ref with frozen tag.
if let (RefKind::Unique, Borrow::Shr(Some(_))) = (kind, bor) {
return Err(format!("Encountered mutable reference with frozen tag"));
return Err(format!("Encountered mutable reference with frozen tag ({:?})", bor));
}
// Checks related to freezing
match bor {