diff options
| author | bors <bors@rust-lang.org> | 2016-03-30 21:13:43 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-03-30 21:13:43 -0700 |
| commit | 4583dc9b13f8a46b10bcc8eb4483080b9736cdd2 (patch) | |
| tree | 65a2870e0b0cfead96edb00a19ca51d54253ed33 /src/test/run-make/json-errors | |
| parent | 30a3849f228833f9dc280120126d16aef3a292ba (diff) | |
| parent | da41e583d614411c99370881c38f919c99dec448 (diff) | |
| download | rust-4583dc9b13f8a46b10bcc8eb4483080b9736cdd2.tar.gz rust-4583dc9b13f8a46b10bcc8eb4483080b9736cdd2.zip | |
Auto merge of #32439 - jseyfried:visible_suggestions, r=nrc
diagnostics: make paths to external items more visible This PR changes the reported path for an external item so that it is visible from at least one local module (i.e. it does not use any inaccessible external modules) if possible. If the external item's crate was declared with an `extern crate`, the path is guarenteed to use the `extern crate`. Fixes #23224, fixes #23355, fixes #26635, fixes #27165. r? @nrc
Diffstat (limited to 'src/test/run-make/json-errors')
| -rw-r--r-- | src/test/run-make/json-errors/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-make/json-errors/Makefile b/src/test/run-make/json-errors/Makefile index cd3a2af30ab..bb73fda67bd 100644 --- a/src/test/run-make/json-errors/Makefile +++ b/src/test/run-make/json-errors/Makefile @@ -7,4 +7,4 @@ all: cd $(TMPDIR) -$(RUSTC) -Z unstable-options --error-format=json foo.rs 2>$(LOG) grep -q '{"message":"unresolved name `y`","code":{"code":"E0425","explanation":"\\nAn unresolved name was used. Example of erroneous codes.*"},"level":"error","spans":\[{"file_name":"foo.rs","byte_start":496,"byte_end":497,"line_start":12,"line_end":12,"column_start":18,"column_end":19,"text":\[{"text":" let x = 42 + y;","highlight_start":18,"highlight_end":19}\]}\],"children":\[\]}' $(LOG) - grep -q '{"message":".*","code":{"code":"E0277","explanation":"\\nYou tried.*"},"level":"error","spans":\[{.*}\],"children":\[{"message":"the .*","code":null,"level":"help","spans":\[{"file_name":"foo.rs","byte_start":504,"byte_end":516,"line_start":14,"line_end":14,"column_start":0,"column_end":0,"text":\[{.*}\]}\],"children":\[\]},{"message":" <u8 as core::ops::Add>","code":null,"level":"help",' $(LOG) + grep -q '{"message":".*","code":{"code":"E0277","explanation":"\\nYou tried.*"},"level":"error","spans":\[{.*}\],"children":\[{"message":"the .*","code":null,"level":"help","spans":\[{"file_name":"foo.rs","byte_start":504,"byte_end":516,"line_start":14,"line_end":14,"column_start":0,"column_end":0,"text":\[{.*}\]}\],"children":\[\]},{"message":" <u8 as std::ops::Add>","code":null,"level":"help",' $(LOG) |
