]> git.proxmox.com Git - rustc.git/blobdiff - src/rustdoc-json-types/lib.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / src / rustdoc-json-types / lib.rs
index 4e7794fe610646e43e577aa42a044fa9624a4456..72a4d9a18301139ae16af1287c6a7a5772e31203 100644 (file)
@@ -64,7 +64,7 @@ pub struct Item {
     pub name: Option<String>,
     /// The source location of this item (absent if it came from a macro expansion or inline
     /// assembly).
-    pub source: Option<Span>,
+    pub span: Option<Span>,
     /// By default all documented items are public, but you can tell rustdoc to output private items
     /// so this field is needed to differentiate.
     pub visibility: Visibility,
@@ -461,7 +461,7 @@ pub struct Impl {
 #[serde(rename_all = "snake_case")]
 pub struct Import {
     /// The full path being imported.
-    pub span: String,
+    pub source: String,
     /// May be different from the last segment of `source` when renaming imports:
     /// `use source as name;`
     pub name: String,