* [PATCH 2/2] rust: str: clean unused import for Rust >= 1.98 [not found] <20260609104152.261145-1-ojeda@kernel.org> @ 2026-06-09 10:41 ` Miguel Ojeda 2026-06-09 10:45 ` Alice Ryhl 2026-06-09 11:45 ` Gary Guo 0 siblings, 2 replies; 3+ messages in thread From: Miguel Ojeda @ 2026-06-09 10:41 UTC (permalink / raw) To: Miguel Ojeda Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, rust-for-linux, stable Starting with Rust 1.98.0 (expected 2026-08-20), the compiler has changed how the resolution algorithm works [1][2] in upstream commit c4d84db5f184 ("Resolver: Batched import resolution."), and it now spots: error: unused import: `flags::*` --> rust/kernel/str.rs:7:9 | 7 | flags::*, | ^^^^^^^^ | = note: `-D unused-imports` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_imports)]` It happens to not be needed because the `prelude::*` already provides the flags. Thus clean it up. Cc: stable@vger.kernel.org # Needed in 6.18.y and later (prelude added to `str`). Link: https://github.com/rust-lang/rust/pull/145108 [1] Signed-off-by: Miguel Ojeda <ojeda@kernel.org> --- rust/kernel/str.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs index 4eae05e4baf9..b3caa9a1c898 100644 --- a/rust/kernel/str.rs +++ b/rust/kernel/str.rs @@ -4,7 +4,6 @@ use crate::{ alloc::{ - flags::*, AllocError, KVec, // }, -- 2.54.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] rust: str: clean unused import for Rust >= 1.98 2026-06-09 10:41 ` [PATCH 2/2] rust: str: clean unused import for Rust >= 1.98 Miguel Ojeda @ 2026-06-09 10:45 ` Alice Ryhl 2026-06-09 11:45 ` Gary Guo 1 sibling, 0 replies; 3+ messages in thread From: Alice Ryhl @ 2026-06-09 10:45 UTC (permalink / raw) To: Miguel Ojeda Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Trevor Gross, Danilo Krummrich, rust-for-linux, stable On Tue, Jun 9, 2026 at 12:42 PM Miguel Ojeda <ojeda@kernel.org> wrote: > > Starting with Rust 1.98.0 (expected 2026-08-20), the compiler has changed > how the resolution algorithm works [1][2] in upstream commit c4d84db5f184 > ("Resolver: Batched import resolution."), and it now spots: > > error: unused import: `flags::*` > --> rust/kernel/str.rs:7:9 > | > 7 | flags::*, > | ^^^^^^^^ > | > = note: `-D unused-imports` implied by `-D warnings` > = help: to override `-D warnings` add `#[allow(unused_imports)]` > > It happens to not be needed because the `prelude::*` already provides > the flags. > > Thus clean it up. > > Cc: stable@vger.kernel.org # Needed in 6.18.y and later (prelude added to `str`). > Link: https://github.com/rust-lang/rust/pull/145108 [1] > Signed-off-by: Miguel Ojeda <ojeda@kernel.org> I ran into this one too. Reviewed-by: Alice Ryhl <aliceryhl@google.com> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] rust: str: clean unused import for Rust >= 1.98 2026-06-09 10:41 ` [PATCH 2/2] rust: str: clean unused import for Rust >= 1.98 Miguel Ojeda 2026-06-09 10:45 ` Alice Ryhl @ 2026-06-09 11:45 ` Gary Guo 1 sibling, 0 replies; 3+ messages in thread From: Gary Guo @ 2026-06-09 11:45 UTC (permalink / raw) To: Miguel Ojeda Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, rust-for-linux, stable On Tue Jun 9, 2026 at 11:41 AM BST, Miguel Ojeda wrote: > Starting with Rust 1.98.0 (expected 2026-08-20), the compiler has changed > how the resolution algorithm works [1][2] in upstream commit c4d84db5f184 > ("Resolver: Batched import resolution."), and it now spots: > > error: unused import: `flags::*` > --> rust/kernel/str.rs:7:9 > | > 7 | flags::*, > | ^^^^^^^^ > | > = note: `-D unused-imports` implied by `-D warnings` > = help: to override `-D warnings` add `#[allow(unused_imports)]` > > It happens to not be needed because the `prelude::*` already provides > the flags. > > Thus clean it up. > > Cc: stable@vger.kernel.org # Needed in 6.18.y and later (prelude added to `str`). > Link: https://github.com/rust-lang/rust/pull/145108 [1] > Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Reviewed-by: Gary Guo <gary@garyguo.net> > --- > rust/kernel/str.rs | 1 - > 1 file changed, 1 deletion(-) ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-06-09 11:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260609104152.261145-1-ojeda@kernel.org>
2026-06-09 10:41 ` [PATCH 2/2] rust: str: clean unused import for Rust >= 1.98 Miguel Ojeda
2026-06-09 10:45 ` Alice Ryhl
2026-06-09 11:45 ` Gary Guo
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox