diff options
| author | varkor <github@varkor.com> | 2018-01-26 15:33:05 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-01-26 15:33:05 +0000 |
| commit | 0ac465924e6ae4380b25c38cbc14f425796fa2af (patch) | |
| tree | 35390718704319a4b6e9dc7a66c5eb47ee9de0d3 /src/tools/compiletest | |
| parent | a0dcecff90c45ad5d4eb60859e22bb3f1b03842a (diff) | |
Add line numbers and columns to error messages spanning multiple files
If an error message is emitted that spans several files, only the primary file currently has line and column data attached. This is useful information, even in files other than the one in which the error occurs. We can often work out which line and column the error corresponds to in other files — in this case it is helpful to add them (in the case of ambiguity, the first relevant line/column is picked, which is still helpful than none).
Diffstat (limited to 'src/tools/compiletest')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index bf5fc00428d..abf62a060b8 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1402,7 +1402,7 @@ impl<'test> TestCx<'test> { } /// For each `aux-build: foo/bar` annotation, we check to find the - /// file in a `aux` directory relative to the test itself. + /// file in a `auxiliary` directory relative to the test itself. fn compute_aux_test_paths(&self, rel_ab: &str) -> TestPaths { let test_ab = self.testpaths .file |
