You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the kernel, the std_vendor.rs file contains some functionality that comes from std. In Rust 1.76.0, rust-lang/rust#114962 got merged. This issue is about researching whether updating dbg! to match upstream with the column information would make sense for the kernel as well. For instance, it would be interesting to double-check whether the formatting optimizations apply as expected in the kernel (if not, please create an issue about it). Please submit a patch to the mailing list with the dbg! update, perhaps as an RFC, explaining your findings and why the column information would be useful (or not), similar to what was done in Rust upstream.
This requires submitting a proper patch to the LKML and the Rust for Linux mailing list. Please recall to test your changes (including generating the documentation if changed, running the Rust doctests if changed, etc.), to use a proper title for the commit, to sign your commit under the Developer's Certificate of Origin and to add a Link: tag to this issue. Please see https://rust-for-linux.com/contributing for details.
Please take this issue only if you are new to the kernel development process and you would like to use it as a test to submit your first patch to the kernel. Please do not take it if you do not plan to make other contributions to the kernel.
The text was updated successfully, but these errors were encountered:
In Rust 1.76.0, the `dbg!()` macro was updated to also format the column
number. The reason cited was usage of a few characters worth of
horizontal space while allowing direct jumps to the source location. [1]
Link: rust-lang/rust#114962 [1]
Link: Rust-for-Linux#1065
Signed-off-by: Raghav Narang <dev@raxyte.com>
ojeda
pushed a commit
to ojeda/linux
that referenced
this issue
May 5, 2024
In Rust 1.76.0, the `dbg!()` macro was updated to also format the column
number. The reason cited was usage of a few characters worth of
horizontal space while allowing direct jumps to the source location. [1]
Link: rust-lang/rust#114962 [1]
Link: Rust-for-Linux#1065
Signed-off-by: Raghav Narang <dev@raxyte.com>
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://lore.kernel.org/r/eba70259-9b10-4bf7-ac4f-d7accf6b8891@smtp-relay.sendinblue.com
[ Fixed commit author name and removed spurious newline in message. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
In the kernel, the
std_vendor.rs
file contains some functionality that comes fromstd
. In Rust 1.76.0, rust-lang/rust#114962 got merged. This issue is about researching whether updatingdbg!
to match upstream with the column information would make sense for the kernel as well. For instance, it would be interesting to double-check whether the formatting optimizations apply as expected in the kernel (if not, please create an issue about it). Please submit a patch to the mailing list with thedbg!
update, perhaps as an RFC, explaining your findings and why the column information would be useful (or not), similar to what was done in Rust upstream.This requires submitting a proper patch to the LKML and the Rust for Linux mailing list. Please recall to test your changes (including generating the documentation if changed, running the Rust doctests if changed, etc.), to use a proper title for the commit, to sign your commit under the Developer's Certificate of Origin and to add a
Link:
tag to this issue. Please see https://rust-for-linux.com/contributing for details.Please take this issue only if you are new to the kernel development process and you would like to use it as a test to submit your first patch to the kernel. Please do not take it if you do not plan to make other contributions to the kernel.
The text was updated successfully, but these errors were encountered: