[ MappedRustDiagnostic { url: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/test/crates/test_diagnostics/src/main.rs", query: None, fragment: None, }, diagnostic: Diagnostic { range: Range { start: Position { line: 3, character: 17, }, end: Position { line: 3, character: 27, }, }, severity: Some( Error, ), code: Some( String( "E0308", ), ), code_description: Some( CodeDescription { href: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some( Domain( "doc.rust-lang.org", ), ), port: None, path: "/error-index.html", query: None, fragment: Some( "E0308", ), }, }, ), source: Some( "rustc", ), message: "mismatched types\nexpected `u32`, found `&str`", related_information: Some( [ DiagnosticRelatedInformation { location: Location { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/test/crates/test_diagnostics/src/main.rs", query: None, fragment: None, }, range: Range { start: Position { line: 3, character: 11, }, end: Position { line: 3, character: 14, }, }, }, message: "expected due to this", }, ], ), tags: None, data: None, }, fix: None, }, MappedRustDiagnostic { url: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/test/crates/test_diagnostics/src/main.rs", query: None, fragment: None, }, diagnostic: Diagnostic { range: Range { start: Position { line: 3, character: 11, }, end: Position { line: 3, character: 14, }, }, severity: Some( Hint, ), code: Some( String( "E0308", ), ), code_description: Some( CodeDescription { href: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some( Domain( "doc.rust-lang.org", ), ), port: None, path: "/error-index.html", query: None, fragment: Some( "E0308", ), }, }, ), source: Some( "rustc", ), message: "expected due to this", related_information: Some( [ DiagnosticRelatedInformation { location: Location { uri: Url { scheme: "file", cannot_be_a_base: false, username: "", password: None, host: None, port: None, path: "/test/crates/test_diagnostics/src/main.rs", query: None, fragment: None, }, range: Range { start: Position { line: 3, character: 17, }, end: Position { line: 3, character: 27, }, }, }, message: "original diagnostic", }, ], ), tags: None, data: None, }, fix: None, }, ]