hopefully improve error message a bit
This commit is contained in:
parent
75d97d9462
commit
3e33e54b5b
@ -383,7 +383,7 @@ fn grant(
|
||||
// We use that to determine where to put the new item.
|
||||
let granting_idx = self.find_granting(access, derived_from)
|
||||
.ok_or_else(|| InterpError::MachineError(format!(
|
||||
"no item to reborrow for {:?} from tag {} found in borrow stack", new.perm, derived_from,
|
||||
"trying to reborrow for {:?}, but parent tag {} does not have an appropriate item in the borrow stack", new.perm, derived_from,
|
||||
)))?;
|
||||
|
||||
// Compute where to put the new item.
|
||||
|
Loading…
Reference in New Issue
Block a user