File tree Expand file tree Collapse file tree 4 files changed +23
-5
lines changed Expand file tree Collapse file tree 4 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1+ <a name =" v0.41.0 " ></a >
2+ # [ v0.41.0] ( https://github.com/rust-lang/rustdoc-types/releases/tag/v0.41.0 ) - 2025-04-20
3+
4+ ** Breaking Change** : Make ` Span::begin ` and ` Span::end ` consistantly one-indexed
5+ for both line and column
6+ ([ rust #139919 ] ( https://github.com/rust-lang/rust/pull/139919 ) ).
7+ Previously this was incorrecly documented both line and column being
8+ zero-indexed, but line was actually one-indexed
9+ ([ rust #139906 ] ( https://github.com/rust-lang/rust/issues/139906 ) ).
10+
11+ No changes were made to the schema (i.e. the public api for this crate is
12+ unchanged), but the format version has been bumped, as this may effect consuming
13+ tools regardless.
14+
15+ - Format Version: 45
16+ - Upstream Commit: [ ` 076016d55afdf760c7e30e23c5df8f0c079cd85b ` ] ( https://github.com/rust-lang/rust/commit/076016d55afdf760c7e30e23c5df8f0c079cd85b )
17+ - Diff: [ v0.40.0...v0.41.0] ( https://github.com/rust-lang/rustdoc-types/compare/v0.40.0...v0.41.0 )
18+
119<a name =" v0.40.0 " ></a >
220# [ v0.40.0] ( https://github.com/rust-lang/rustdoc-types/releases/tag/v0.40.0 ) - 2025-04-19
321
Original file line number Diff line number Diff line change 1- 8c50f95cf088c6ccf882a152bd46c090efa3a1c7
1+ 076016d55afdf760c7e30e23c5df8f0c079cd85b
Original file line number Diff line number Diff line change 11[package ]
22name = " rustdoc-types"
3- version = " 0.40 .0"
3+ version = " 0.41 .0"
44edition = " 2018"
55license = " MIT OR Apache-2.0"
66description = " Types for rustdoc's json output"
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ use serde::{Deserialize, Serialize};
2929/// This integer is incremented with every breaking change to the API,
3030/// and is returned along with the JSON blob as [`Crate::format_version`].
3131/// Consuming code should assert that this value matches the format version(s) that it supports.
32- pub const FORMAT_VERSION : u32 = 44 ;
32+ pub const FORMAT_VERSION : u32 = 45 ;
3333
3434/// The root of the emitted JSON blob.
3535///
@@ -204,9 +204,9 @@ pub struct Item {
204204pub struct Span {
205205 /// The path to the source file for this span relative to the path `rustdoc` was invoked with.
206206 pub filename : PathBuf ,
207- /// Zero indexed Line and Column of the first character of the `Span`
207+ /// One indexed Line and Column of the first character of the `Span`.
208208 pub begin : ( usize , usize ) ,
209- /// Zero indexed Line and Column of the last character of the `Span`
209+ /// One indexed Line and Column of the last character of the `Span`.
210210 pub end : ( usize , usize ) ,
211211}
212212
You can’t perform that action at this time.
0 commit comments