File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/cc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -455,12 +455,12 @@ class SepCheck(checker: CheckCaptures.CheckerAPI) extends tpd.TreeTraverser:
455455 tree.srcPos)
456456
457457 class UseAfterConsume (ref : Capability , consumedLoc : SrcPos , useLoc : SrcPos )(using Context ) extends reporting.Diagnostic .Error (
458- em """ Separation failure: Illegal access to $ref, which was consumed
458+ em """ Separation failure: Illegal access to $ref, which was passed to a
459+ |consume parameter or was used as a prefix to a consume method
459460 |and therefore is no longer available. """ ,
460461 useLoc.sourcePos
461462 ):
462- addSubdiag(em """ $ref was passed to a consume parameter or
463- |was used as a prefix of a consume method here. """ , consumedLoc.sourcePos)
463+ addSubdiag(em " ... $ref was consumed here. " , consumedLoc.sourcePos)
464464
465465 /** Report a failure where a previously consumed capability is used again,
466466 * @param ref the capability that is used after being consumed
You can’t perform that action at this time.
0 commit comments