aboutsummaryrefslogtreecommitdiffstats
path: root/rust/pin-init/examples/static_init.rs
diff options
context:
space:
mode:
authorMiguel Ojeda <[email protected]>2025-05-26 15:29:13 +0000
committerBenno Lossin <[email protected]>2025-06-11 19:13:57 +0000
commitd2b7313fa21bbe7ce3c4147d84c1ccbc6d69b9db (patch)
tree2b4dac1eec0f519403a74480e6eac155d52e201b /rust/pin-init/examples/static_init.rs
parentrust: pin-init: implement `ZeroableOption` for function pointers with up to 2... (diff)
downloadkernel-d2b7313fa21bbe7ce3c4147d84c1ccbc6d69b9db.tar.gz
kernel-d2b7313fa21bbe7ce3c4147d84c1ccbc6d69b9db.zip
rust: init: re-enable doctests
Commit a30e94c29673 ("rust: init: make doctests compilable/testable") made these tests buildable among others, but eventually the pin-init crate was made into its own crate [1] and the tests were marked as `ignore` in commit 206dea39e559 ("rust: init: disable doctests"). A few other bits got changed in that reorganization, e.g. the `clippy::missing_safety_doc` was removed and the `expect` use. Since there is no reason not to build/test them, re-enable them. In order to do so, tweak a few bits to keep the build clean, and also use again `expect` since this is one of those places where we can actually do so. Link: https://lore.kernel.org/all/[email protected]/ [1] Signed-off-by: Miguel Ojeda <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Benno Lossin <[email protected]>
Diffstat (limited to 'rust/pin-init/examples/static_init.rs')
0 files changed, 0 insertions, 0 deletions