Skip to content
This repository was archived by the owner on Jul 6, 2019. It is now read-only.
This repository was archived by the owner on Jul 6, 2019. It is now read-only.

queue code doesn't compile #306

Open
@awelkie

Description

@awelkie

After taking out the #[cfg(cfg_multitasking)] in src/util/mod.rs, queue.rs fails to compile.

➤ cargo test --lib
   Compiling zinc v0.1.0 (file:///home/allen/repos/zinc)
src/util/queue.rs:9:5: 9:21 error: unresolved import `core::ty::Unsafe`. Could not find `ty` in `core`
src/util/queue.rs:9 use core::ty::Unsafe;
                        ^~~~~~~~~~~~~~~~
src/util/queue.rs:12:5: 12:22 error: unresolved import `core::ptr::RawPtr`. There is no `RawPtr` in `core::ptr`
src/util/queue.rs:12 use core::ptr::RawPtr;
                         ^~~~~~~~~~~~~~~~~
src/util/queue.rs:15:5: 15:40 error: unresolved import `hal::cortex_m3::sched::NoInterrupts`. Could not find `sched` in `hal::cortex_m3`
src/util/queue.rs:15 use hal::cortex_m3::sched::NoInterrupts;
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 3 previous errors
Could not compile `zinc`.

It just looks like code rot Is there any reason to keep that cfg around?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions