Hi there! Lately I got an idea of extending libcore a little. First of all, I cloned rust/library/core. Then, I set the path in my Cargo.toml. Finally, I put
#![no_std]
#![no_core]
extern crate custom_core as core;
use core::prelude::*;
to my main.rs and… compiler told me that things defined in custom_core are already defined in the core…
I got the error while compiling custom_core, not the crate with main.rs.
What am I doing wrong? Must I specify -Z build-std or something?
You mean you made custom_core depend on libstd? That won't work as libstd pulls in the original libcore. It has to as custom_core isn't compiled yet when libstd is compiled.
I’m not as stupid as you think (or maybe I am). I imported println from libstd in my crate that depends on custom_core. Custom core isn’t really custom