This happens when NLL has been fixed up to the point where it reproduces borrowck's output. (example: #51186)
If both are the same, automatically remove the .nll.stderr in --bless mode and emit an error without --bless.
Here's what --bless does when it detects that the output of files has changed. Something similar can be done as a new check for equality of the .nll.* and .* files. It would probably be best to extract the replacing code from the current --bless impl to a separate function so it can be reused.
This happens when NLL has been fixed up to the point where it reproduces borrowck's output. (example: #51186)
If both are the same, automatically remove the
.nll.stderrin--blessmode and emit an error without--bless.Here's what
--blessdoes when it detects that the output of files has changed. Something similar can be done as a new check for equality of the.nll.*and.*files. It would probably be best to extract the replacing code from the current--blessimpl to a separate function so it can be reused.