On Sat, Jan 10, 2026 at 4:09 PM Kari Argillander
<[email protected]> wrote:
>
> So currently we have problem that we are not always filling .owner field
> example for file_operations. I think we can enable const_refs_to_static
> already as that is in 1.78 and is stable in 1.83. So that fits perfecly
> for us.  This also seems to be quite request feature but I did not found
> that no one has ever suggested that we just enable this.

For context, we have been tracking that feature (as well as
`const_mut_refs`) precisely for `THIS_MODULE`:

    https://github.com/Rust-for-Linux/linux/issues/2

There is also a test that Ralf added upstream back then:

    
https://github.com/rust-lang/rust/blob/main/tests/ui/consts/const-ref-to-static-linux-vtable.rs

(Not sure what you mean by "quite request" though)

Cheers,
Miguel

Reply via email to