mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:30:12 +01:00
When an error diagnostic has an unattached location, for example because the diagnostic points into a file that's in the prelude, use the next attached location to position the error diagnostic's CHECK line. In particular, if the error is followed by a note, use the position of the note to determine where to place the error. This exposes a general mechanism to do final fixups of the CHECK lines to individual file_test binaries, which the toolchain's binary uses to special-case error / warning CHECK lines.
Testing
Testing-specific libraries.