compiletest::errors

Function load_errors

Source
pub fn load_errors(testfile: &Path, revision: Option<&str>) -> Vec<Error>
Expand description

Looks for either “//| KIND MESSAGE” or “//^^… KIND MESSAGE” The former is a “follow” that inherits its target from the preceding line; the latter is an “adjusts” that goes that many lines up.

Goal is to enable tests both like: //^^^ ERROR go up three and also //^ ERROR message one for the preceding line, and //~| ERROR message two for that same line.

If revision is not None, then we look for //[X]~ instead, where X is the current revision.