https://github.com/rust-lang/rust/issues/140689 especially https://github.com/rust-lang/rust/commit/e1a177bbba2b1297c33e2838f8b2b72ab5f62ecf adds a newline in attributes. The diff of the affect: https://github.com/os-checker/distributed-verification/commit/d201112a22bd00466ba9a60579d584fbde463ece#diff-715dddd36ccd9d7762320dee3daa442155492b662edfdeef6d9defcd05ee469eL5-R5 rustdoc-json decides to remove the trailing newline: https://github.com/rust-lang/rust/pull/140762 It doesn't make sense to keep the newline in this tool, either. So we should remove it from each attribute.