Skip to content

Commit 1f31c71

Browse files
committed
rust: remove pr_cont from prelude
`pr_cont` is a discouraged feature. While we still support it in print.rs, remove it from the prelude so it's less likely to get used. Signed-off-by: Gary Guo <gary@garyguo.net>
1 parent 7fde08b commit 1f31c71

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rust/kernel/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub use super::build_assert;
1717

1818
pub use module::{module, module_misc_device};
1919

20-
pub use super::{pr_alert, pr_cont, pr_crit, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
20+
pub use super::{pr_alert, pr_crit, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
2121

2222
pub use super::static_assert;
2323

samples/rust/rust_print.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#![no_std]
66
#![feature(allocator_api, global_asm)]
77

8+
use kernel::pr_cont;
89
use kernel::prelude::*;
910

1011
module! {

0 commit comments

Comments
 (0)