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 @@ -444,12 +444,12 @@ class SepCheck(checker: CheckCaptures.CheckerAPI) extends tpd.TreeTraverser:
444444 tree.srcPos)
445445
446446 class UseAfterConsume (ref : Capability , consumedLoc : SrcPos , useLoc : SrcPos )(using Context ) extends reporting.Diagnostic .Error (
447- em """ Separation failure: Illegal access to $ref, which was consumed
447+ em """ Separation failure: Illegal access to $ref, which was passed to a
448+ |consume parameter or was used as a prefix to a consume method
448449 |and therefore is no longer available. """ ,
449450 useLoc.sourcePos
450451 ):
451- addSubdiag(em """ $ref was passed to a consume parameter or
452- |was used as a prefix of a consume method here. """ , consumedLoc.sourcePos)
452+ addSubdiag(em " ... $ref was consumed here. " , consumedLoc.sourcePos)
453453
454454 /** Report a failure where a previously consumed capability is used again,
455455 * @param ref the capability that is used after being consumed
You can’t perform that action at this time.
0 commit comments