rust-osdev / linked-list-allocator

Apache License 2.0
219 stars 53 forks source link

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

Closed deeprobin closed 2 years ago

deeprobin commented 2 years ago
$ 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
phil-opp commented 2 years ago

The mentioned nightly is quite old. Have you tried with a more recent one?

The CI builds work fine on the more recent nightlies, so I think we can close this. Please let me know if you're still having issues!