]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: types: make doctests compilable/testable
authorMiguel Ojeda <ojeda@kernel.org>
Tue, 18 Jul 2023 05:27:50 +0000 (07:27 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 19 Jul 2023 15:32:47 +0000 (09:32 -0600)
commited615fb8ee6d166166b6cdff5ddacef6f6ef7dab
treeb26cc4cf2ee4d580cb0f98e6ac5fa68ff57c83d0
parentbfa7dff036f0cbb2ccb0385c8b666204d6b8eb3a
rust: types: make doctests compilable/testable

Rust documentation tests are going to be build/run-tested
with the KUnit integration added in a future patch, thus
update them to make them compilable/testable so that we
may start enforcing it.

Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Björn Roy Baron <bjorn3_gh@protonmail.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
rust/kernel/types.rs