Skip to content

Commit cf02758

Browse files
authored
Merge pull request #740 from RalfJung/stacked-borrows-2
hopefully improve error message a bit
2 parents 75d97d9 + 3e33e54 commit cf02758

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
@@ -383,7 +383,7 @@ impl<'tcx> Stack {
383383
// We use that to determine where to put the new item.
384384
let granting_idx = self.find_granting(access, derived_from)
385385
.ok_or_else(|| InterpError::MachineError(format!(
386-
"no item to reborrow for {:?} from tag {} found in borrow stack", new.perm, derived_from,
386+
"trying to reborrow for {:?}, but parent tag {} does not have an appropriate item in the borrow stack", new.perm, derived_from,
387387
)))?;
388388

389389
// Compute where to put the new item.

0 commit comments

Comments
 (0)