mirror of
https://github.com/torvalds/linux.git
synced 2026-10-23 15:32:04 +02:00
The `diff` parameter is needed currently because doctests want to override the line number. Simplify it by changing it to use `line!()`. Have doctests override `line!()` macro to achieve the current behavior. An existing doctest requires `line!()` to expand to a literal; so update it to use `::core::line!()` instead. Reviewed-by: David Gow <david@davidgow.net> Signed-off-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20260902-kunit-v2-2-eda3ed6c00c5@garyguo.net [ Removed spurious `///`-to-`//` change and adjusted `line!` to match. Added a comment to match `file!`'s. Made `NOTE:` more precise. Reworded to say it is only one doctest being updated. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org> |
||
|---|---|---|
| .. | ||
| concat_idents.rs | ||
| export.rs | ||
| fmt.rs | ||
| for_lt.rs | ||
| helpers.rs | ||
| kunit.rs | ||
| lib.rs | ||
| module.rs | ||
| paste.rs | ||
| vtable.rs | ||