Re: [PATCH 3/7] cpufreq: rcpufreq_dt: use vertical import style
Miguel Ojeda <[email protected]>
| Newsgroups | org.kernel.vger.linux-pwm,dev.linux.lists.driver-core,dev.linux.lists.nova-gpu,org.freedesktop.lists.dri-devel,org.infradead.lists.linux-riscv,org.kernel.vger.linux-block,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm,org.kernel.vger.netdev,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <CANiq72nESZyX95XSKC3zaog=XSQF09bYJmre0mUbtQ42-Ly6tA@mail.gmail.com> |
On Sun, Jul 5, 2026 at 3:02 AM Guru Das Srinagesh <[email protected]> wrote: > > But unfortunately, since `imports_layout` is an unstable option currently [1], it > cannot be used straightaway. Yeah, we are trying to get that one stabilized -- upstream `rustfmt` is aware and working on it. More context at: https://github.com/rust-lang/rustfmt/issues/6829 https://github.com/Rust-for-Linux/linux/issues/398 > However, .rustfmt.toml already has a section of commented-out unstable options kept > as a reference for when they stabilize. Would it make sense to add `#imports_layout = > "Vertical"` there? If so, I can include it in v2. That may be a bit confusing, because we still need to add the `//` comments. And if you add them, then `rustfmt` will format properly, i.e. you don't need the unstable option. Put another way: the intended workflow is to add the `//` and then to run `make ... rustfmt`. I hope that clarifies! Cheers, Miguel