Skip to content

Compilation fails with rustc 1.60.0-nightly (ee5d8d37b 2022-01-17) #59

@deeprobin

Description

@deeprobin
$ cargo run --release
   Compiling uart_16550 v0.2.18
   Compiling pic8259 v0.10.2
   Compiling linked_list_allocator v0.9.1
error[E0015]: calls in constant functions are limited to constant functions, tuple structs and tuple variants
   --> C:\Users\robin\.cargo\registry\src\github.com-1ecc6299db9ec823\linked_list_allocator-0.9.1\src\lib.rs:224:20
    |
224 |         LockedHeap(Spinlock::new(Heap::empty()))
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0015`.
error: could not compile `linked_list_allocator` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions