Add a protector test that demonstrates the base tag diagnostic
This commit is contained in:
parent
0da5f76a92
commit
3cfb9915fc
3 changed files with 46 additions and 1 deletions
|
|
@ -332,7 +332,7 @@ impl<'span, 'history, 'ecx, 'mir, 'tcx> DiagnosticCx<'span, 'history, 'ecx, 'mir
|
|||
// this allocation.
|
||||
if self.history.base.0.tag() == tag {
|
||||
Some((
|
||||
format!("{:?} was created here, as a base tag for {:?}", tag, self.history.id),
|
||||
format!("{:?} was created here, as the base tag for {:?}", tag, self.history.id),
|
||||
self.history.base.1.data()
|
||||
))
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue