v0.2.5
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
//!
|
||||
//! #[lang = "panic_fmt"]
|
||||
//! #[no_mangle]
|
||||
//! unsafe extern "C" fn rust_begin_unwind(
|
||||
//! pub unsafe extern "C" fn rust_begin_unwind(
|
||||
//! args: core::fmt::Arguments,
|
||||
//! file: &'static str,
|
||||
//! line: u32,
|
||||
@@ -42,7 +42,7 @@
|
||||
//! .and_then(|_| {
|
||||
//! stdout
|
||||
//! .write_fmt(args)
|
||||
//! .and_then(|_| writeln!(stdout, "', {}:{}", file, line))
|
||||
//! .and_then(|_| writeln!(stdout, "', {}:{}:{}", file, line, col))
|
||||
//! })
|
||||
//! .ok();
|
||||
//! }
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
//! #![feature(used)]
|
||||
//! #![feature(global_allocator)]
|
||||
//! #![no_std]
|
||||
//! #[allow(deprecated)]
|
||||
//!
|
||||
//! // This is the allocator crate; you can use a different one
|
||||
//! extern crate alloc_cortex_m;
|
||||
@@ -58,7 +57,7 @@
|
||||
//! fn main() {
|
||||
//! // Initialize the allocator
|
||||
//! let start = unsafe { &mut _sheap as *mut u32 as usize };
|
||||
//! let end = unsafe { &mut _sheap as *mut u32 as usize };
|
||||
//! let end = unsafe { &mut _eheap as *mut u32 as usize };
|
||||
//! unsafe { ALLOCATOR.init(start, end - start) }
|
||||
//!
|
||||
//! // Growable array allocated on the heap
|
||||
|
||||
Reference in New Issue
Block a user