forked from coconut-svsm/svsm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
svsm: do not depend on nightly const_mut_refs feature
Luckily, mutable references depending on this feature can be converted to immutable references or be removed alltogether. The mutable pointer to a ConsoleWriter in Console can be const because ConsoleWriter::put_byte() takes &self. On the other hand, ImmutAfterInitRef::new_from_cell() requires using a raw pointer in a const context, which will not work without the feature. Since it is not in use, remove the method. Signed-off-by: Carlos López <carlos.lopez@suse.com>
- Loading branch information
Showing
5 changed files
with
6 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
|
||
#![no_std] | ||
#![no_main] | ||
#![feature(const_mut_refs)] | ||
pub mod svsm_paging; | ||
|
||
extern crate alloc; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters