1[ 2 MappedRustDiagnostic { 3 url: Url { 4 scheme: "file", 5 cannot_be_a_base: false, 6 username: "", 7 password: None, 8 host: None, 9 port: None, 10 path: "/test/crates/hir_def/src/path.rs", 11 query: None, 12 fragment: None, 13 }, 14 diagnostic: Diagnostic { 15 range: Range { 16 start: Position { 17 line: 271, 18 character: 8, 19 }, 20 end: Position { 21 line: 271, 22 character: 50, 23 }, 24 }, 25 severity: Some( 26 Hint, 27 ), 28 code: None, 29 code_description: None, 30 source: Some( 31 "rustc", 32 ), 33 message: "Please register your known path in the path module", 34 related_information: Some( 35 [ 36 DiagnosticRelatedInformation { 37 location: Location { 38 uri: Url { 39 scheme: "file", 40 cannot_be_a_base: false, 41 username: "", 42 password: None, 43 host: None, 44 port: None, 45 path: "/test/crates/hir_def/src/path.rs", 46 query: None, 47 fragment: None, 48 }, 49 range: Range { 50 start: Position { 51 line: 264, 52 character: 8, 53 }, 54 end: Position { 55 line: 264, 56 character: 76, 57 }, 58 }, 59 }, 60 message: "Exact error occurred here", 61 }, 62 ], 63 ), 64 tags: None, 65 data: None, 66 }, 67 fix: None, 68 }, 69 MappedRustDiagnostic { 70 url: Url { 71 scheme: "file", 72 cannot_be_a_base: false, 73 username: "", 74 password: None, 75 host: None, 76 port: None, 77 path: "/test/crates/hir_def/src/data.rs", 78 query: None, 79 fragment: None, 80 }, 81 diagnostic: Diagnostic { 82 range: Range { 83 start: Position { 84 line: 79, 85 character: 15, 86 }, 87 end: Position { 88 line: 79, 89 character: 41, 90 }, 91 }, 92 severity: Some( 93 Hint, 94 ), 95 code: None, 96 code_description: None, 97 source: Some( 98 "rustc", 99 ), 100 message: "Please register your known path in the path module", 101 related_information: Some( 102 [ 103 DiagnosticRelatedInformation { 104 location: Location { 105 uri: Url { 106 scheme: "file", 107 cannot_be_a_base: false, 108 username: "", 109 password: None, 110 host: None, 111 port: None, 112 path: "/test/crates/hir_def/src/path.rs", 113 query: None, 114 fragment: None, 115 }, 116 range: Range { 117 start: Position { 118 line: 264, 119 character: 8, 120 }, 121 end: Position { 122 line: 264, 123 character: 76, 124 }, 125 }, 126 }, 127 message: "Exact error occurred here", 128 }, 129 ], 130 ), 131 tags: None, 132 data: None, 133 }, 134 fix: None, 135 }, 136 MappedRustDiagnostic { 137 url: Url { 138 scheme: "file", 139 cannot_be_a_base: false, 140 username: "", 141 password: None, 142 host: None, 143 port: None, 144 path: "/test/crates/hir_def/src/path.rs", 145 query: None, 146 fragment: None, 147 }, 148 diagnostic: Diagnostic { 149 range: Range { 150 start: Position { 151 line: 264, 152 character: 8, 153 }, 154 end: Position { 155 line: 264, 156 character: 76, 157 }, 158 }, 159 severity: Some( 160 Error, 161 ), 162 code: None, 163 code_description: None, 164 source: Some( 165 "rustc", 166 ), 167 message: "Please register your known path in the path module", 168 related_information: Some( 169 [ 170 DiagnosticRelatedInformation { 171 location: Location { 172 uri: Url { 173 scheme: "file", 174 cannot_be_a_base: false, 175 username: "", 176 password: None, 177 host: None, 178 port: None, 179 path: "/test/crates/hir_def/src/path.rs", 180 query: None, 181 fragment: None, 182 }, 183 range: Range { 184 start: Position { 185 line: 271, 186 character: 8, 187 }, 188 end: Position { 189 line: 271, 190 character: 50, 191 }, 192 }, 193 }, 194 message: "Error originated from macro call here", 195 }, 196 DiagnosticRelatedInformation { 197 location: Location { 198 uri: Url { 199 scheme: "file", 200 cannot_be_a_base: false, 201 username: "", 202 password: None, 203 host: None, 204 port: None, 205 path: "/test/crates/hir_def/src/data.rs", 206 query: None, 207 fragment: None, 208 }, 209 range: Range { 210 start: Position { 211 line: 79, 212 character: 15, 213 }, 214 end: Position { 215 line: 79, 216 character: 41, 217 }, 218 }, 219 }, 220 message: "Error originated from macro call here", 221 }, 222 ], 223 ), 224 tags: None, 225 data: None, 226 }, 227 fix: None, 228 }, 229] 230