-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Description
Broken in a recent nightly. Reproducer (playground):
extern crate futures as core;
fn bar() {
let _ = format!("{}", 42);
}
Gives the following:
error[E0433]: failed to resolve: could not find `format_args` in `core`
--> src/lib.rs:4:13
|
4 | let _ = format!("{}", 42);
| ^^^^^^^^^^^^^^^^^ could not find `format_args` in `core`
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
I've also observed this if a crate is named core
and gets used without any extern crate
items.
modules named core
do not trigger this, only crates.
Seen in the wild: gfx-rs/gfx#2964
Activity
[-]`extern crate foo as core` breaks format macros[/-][+]`extern crate foo as core` breaks resolution in macros[/+]petrochenkov commentedon Sep 10, 2019
Duplicate of #63687, fixed in #64060.