These are chat archives for rust-lang/rust
lazy_static. It looks like my toolchain has two lazy_static rlibs. How do I fix this?
cargo rustc -- -Z unstable-options --pretty expanded
lazy_staticcrate. IIUC, normally
cargoprovides special arguments to
rustcto tell it where should the crates come from. You don't pass it, so
rustctries a fallback and fails due to multiple candidates it cannot choose between.
cargo build --verboseto see the full command line
Rust 1.25 stable was released on Fri Mar 30 2018.
Rust 1.26 stable will be released on Fri May 11 2018.
Rust 1.27 stable will be released on Fri Jun 22 2018.
quote!refers to a variable called
var, so you probably need to introduce a variable for it.
trait Trait: Req?
&T, you cannot directly call that impl if you have a
&mut T, while it safely coerce to
i try to call module like this
in main.rs, it works, but not in schema.rs
main.rs schema/mod.rs schema/module_name.rs
// main.rs mod schema; // refers to schema/mod.rs // schema/mod.rs mod submodule; // refers to schema/submodule.rs use schema::submodule::S as So; // note absolute path in `use` const MY_S: submodule::S = So; // schema/submodule.rs pub(crate) struct S;