Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: alloc: Add doctest for
ArrayLayout
Added a rustdoc example and Kunit test to the `ArrayLayout` struct's `ArrayLayout::new()` function. Kunit tests ran using `./tools/testing/kunit/kunit.py run \ --make_options LLVM=1 \ --kconfig_add CONFIG_RUST=y` passed. Generated documentation looked as expected. Signed-off-by: Jimmy Ostler <jtostler1@gmail.com> Suggested-by: Boqun Feng <boqun.feng@gmail.com> Link: Rust-for-Linux#1131
- Loading branch information