Skip to content

Commit a796b3f

Browse files
committed
rust: kernel: remove compile_fail TODOs
This is part of the effort to minimize the differences of the `rust` branch with respect to mainline in order to eventually drop it. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent b7b67dd commit a796b3f

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

rust/kernel/build_assert.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ macro_rules! build_error {
4343
/// These examples show that different types of [`assert!`] will trigger errors
4444
/// at different stage of compilation. It is preferred to err as early as
4545
/// possible, so [`static_assert!`] should be used whenever possible.
46-
// TODO: Could be `compile_fail` when supported.
4746
/// ```ignore
4847
/// fn foo() {
4948
/// static_assert!(1 > 1); // Compile-time error

rust/kernel/std_vendor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
///
102102
/// The `dbg!(..)` macro moves the input:
103103
///
104-
// TODO: Could be `compile_fail` when supported.
105104
/// ```ignore
106105
/// /// A wrapper around `usize` which importantly is not Copyable.
107106
/// #[derive(Debug)]

0 commit comments

Comments
 (0)