Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review possible updates to std_vendor.rs files #1124

Open
ojeda opened this issue Oct 2, 2024 · 1 comment
Open

Review possible updates to std_vendor.rs files #1124

ojeda opened this issue Oct 2, 2024 · 1 comment
Labels
easy Expected to be an easy issue to resolve. good first issue Good for newcomers • lib Related to the `rust/` library.

Comments

@ojeda
Copy link
Member

ojeda commented Oct 2, 2024

Our std_vendor.rs files contain code from adapted from upstream Rust. After a while, upstream Rust may have some improvements that we may want to merge into our version. Review the differences / recent changes and send a patch as needed. For instance, there is a change in the documentation to add column numbers to the dbg! examples to match what its output produces nowadays.


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 Suggested-by: tag and 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.

@ojeda ojeda added good first issue Good for newcomers easy Expected to be an easy issue to resolve. • lib Related to the `rust/` library. labels Oct 2, 2024
@iapain
Copy link

iapain commented Oct 3, 2024

Patch submitted on LKML.

intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this issue Oct 4, 2024
`dbg!` contain adapted code from rust upstream.
Compare code with rust upstream and update missing column
numbers in `dbg!` outputs. Column numbers are not copied
but adjusted for examples in docstring.

Thus update the docstring only.

Suggested-by: Miguel Ojeda <[email protected]>
Link: Rust-for-Linux#1124
Signed-off-by: Deepak Thukral <[email protected]>
ojeda pushed a commit that referenced this issue Oct 5, 2024
`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 <[email protected]>
Link: #1124
Signed-off-by: Deepak Thukral <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Fixed typo and slightly reworded. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
ojeda pushed a commit that referenced this issue Oct 7, 2024
`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 <[email protected]>
Link: #1124
Signed-off-by: Deepak Thukral <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Fixed typo and slightly reworded. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
ojeda pushed a commit that referenced this issue Oct 7, 2024
`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 <[email protected]>
Link: #1124
Signed-off-by: Deepak Thukral <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Fixed typo and slightly reworded. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
ojeda pushed a commit that referenced this issue Oct 9, 2024
`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 <[email protected]>
Link: #1124
Signed-off-by: Deepak Thukral <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Fixed typo and slightly reworded. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
alistair23 pushed a commit to alistair23/linux that referenced this issue Nov 11, 2024
`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 <[email protected]>
Link: Rust-for-Linux#1124
Signed-off-by: Deepak Thukral <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Fixed typo and slightly reworded. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
alistair23 pushed a commit to alistair23/linux that referenced this issue Nov 12, 2024
`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 <[email protected]>
Link: Rust-for-Linux#1124
Signed-off-by: Deepak Thukral <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Fixed typo and slightly reworded. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Expected to be an easy issue to resolve. good first issue Good for newcomers • lib Related to the `rust/` library.
Development

No branches or pull requests

2 participants