Skip to content

Commit 6f118f2

Browse files
authoredApr 10, 2020
Rollup merge of #70969 - ehuss:json-filename-macros, r=eddyb
Fix JSON file_name documentation for macros. JSON `file_name` paths were changed in #66364 for macros to point to actual source files instead of using `<MACRONAME macros>`. Closes #70396
2 parents 490bdc0 + d6d0799 commit 6f118f2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎src/doc/rustc/src/json.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ Diagnostics have the following format:
5959
"spans": [
6060
{
6161
/* The file where the span is located.
62-
For spans located within a macro expansion, this will be the
63-
name of the expanded macro in the format "<MACRONAME macros>".
62+
Note that this path may not exist. For example, if the path
63+
points to the standard library, and the rust src is not
64+
available in the sysroot, then it may point to a non-existent
65+
file. Beware that this may also point to the source of an
66+
external crate.
6467
*/
6568
"file_name": "lib.rs",
6669
/* The byte offset where the span starts (0-based, inclusive). */

0 commit comments

Comments
 (0)