Skip to content

Commit

Permalink
Merge pull request torvalds#636 from ojeda/fmt-features
Browse files Browse the repository at this point in the history
rust: kernel: use `feature` individually
  • Loading branch information
ojeda authored Jan 20, 2022
2 parents 499f1a0 + 864d8af commit 90965d5
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions rust/kernel/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,22 @@
//! do so first instead of bypassing this crate.

#![no_std]
#![feature(
allocator_api,
associated_type_defaults,
concat_idents,
const_fn_trait_bound,
const_mut_refs,
const_ptr_offset_from,
const_refs_to_cell,
const_trait_impl,
doc_cfg,
generic_associated_types,
maybe_uninit_extra,
ptr_metadata,
receiver_trait,
coerce_unsized,
dispatch_from_dyn,
unsize
)]
#![feature(allocator_api)]
#![feature(associated_type_defaults)]
#![feature(concat_idents)]
#![feature(const_fn_trait_bound)]
#![feature(const_mut_refs)]
#![feature(const_ptr_offset_from)]
#![feature(const_refs_to_cell)]
#![feature(const_trait_impl)]
#![feature(doc_cfg)]
#![feature(generic_associated_types)]
#![feature(maybe_uninit_extra)]
#![feature(ptr_metadata)]
#![feature(receiver_trait)]
#![feature(coerce_unsized)]
#![feature(dispatch_from_dyn)]
#![feature(unsize)]

// Ensure conditional compilation based on the kernel configuration works;
// otherwise we may silently break things like initcall handling.
Expand Down

0 comments on commit 90965d5

Please sign in to comment.