rust: std_vendor: update dbg macro from Rust upstream
authorDeepak Thukral <iapain@gmail.com>
Fri, 4 Oct 2024 12:56:16 +0000 (14:56 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 9 Oct 2024 22:33:42 +0000 (00:33 +0200)
commit3566362dd4dc61f770e42045a92cc3f17df61df0
tree6ec0788362dcf50e544ef87c1febcaf20d861fc2
parent5ed147473458f8c20f908a03227d8f5bb3cb8f7d
rust: std_vendor: update dbg macro from Rust upstream

`dbg!` contains adapted code from Rust upstream. Compare the kernel
code with the Rust upstream one and update missing column numbers in
`dbg!` outputs.

Column numbers are not copied but adjusted for the kernel's examples.

Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1124
Signed-off-by: Deepak Thukral <iapain@gmail.com>
Link: https://lore.kernel.org/r/20241004125616.49886-1-iapain@gmail.com
[ Fixed typo and slightly reworded. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/std_vendor.rs