]> git.lizzy.rs Git - rust.git/commitdiff
Fix JSON file_name documentation for macros.
authorEric Huss <eric@huss.org>
Fri, 10 Apr 2020 01:54:53 +0000 (18:54 -0700)
committerEric Huss <eric@huss.org>
Fri, 10 Apr 2020 01:54:53 +0000 (18:54 -0700)
src/doc/rustc/src/json.md

index c46380f1505dfe14a886d6bc46a5ad89b4055d88..5dee603142dcd006067653828627192ac6023f52 100644 (file)
@@ -59,8 +59,11 @@ Diagnostics have the following format:
     "spans": [
         {
             /* The file where the span is located.
-               For spans located within a macro expansion, this will be the
-               name of the expanded macro in the format "<MACRONAME macros>".
+               Note that this path may not exist. For example, if the path
+               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",
             /* The byte offset where the span starts (0-based, inclusive). */