slightly more verbose error msg
This commit is contained in:
parent
41f89beb3f
commit
694d2490f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue