Skip to content

Commit 12521c9

Browse files
authored
Merge pull request #38 from pftbest/test
Don't include lang_items when in test mode.
2 parents b968503 + 4fecabe commit 12521c9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cortex-m-rt/src/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
//!
220220
//! Allocating the call stack on a different RAM region.
221221
//!
222-
//! ```
222+
//! ```,ignore
223223
//! MEMORY
224224
//! {
225225
//! /* call stack will go here */
@@ -247,7 +247,7 @@
247247
//!
248248
//! Locate the `.text` section 1024 bytes after the start of the FLASH region.
249249
//!
250-
//! ```
250+
//! ```,ignore
251251
//! _stext = ORIGIN(FLASH) + 0x400;
252252
//! ```
253253
//!
@@ -260,7 +260,7 @@
260260
//!
261261
//! #### Example
262262
//!
263-
//! ```
263+
//! ```,ignore
264264
//! extern crate some_allocator;
265265
//!
266266
//! // Size of the heap in bytes
@@ -295,6 +295,7 @@ extern crate cortex_m;
295295
extern crate compiler_builtins;
296296
extern crate r0;
297297

298+
#[cfg(not(test))]
298299
mod lang_items;
299300

300301
#[cfg(target_arch = "arm")]

0 commit comments

Comments
 (0)