Skip to content

Commit d6d0799

Browse files
committed
Fix JSON file_name documentation for macros.
1 parent 93dc97a commit d6d0799

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)