Fix JSON file_name documentation for macros.

This commit is contained in:
Eric Huss 2020-04-09 18:54:53 -07:00
parent 93dc97a853
commit d6d0799abf
1 changed files with 5 additions and 2 deletions

View File

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