-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
A crate that uses the core library gets a mysterious error message with a dummy span.
#[link(name = "rustmeta",
vers = "0.2",
uuid = "f19085c3-dd45-467d-b76b-cb07e5ecd13c")];
#[crate_type = "lib"];
use core(vers = "0.2");
use std(vers = "0.2");
use rustsyntax(vers = "0.2");
import core::*;
import syntax = rustsyntax;
../src/librustmeta/rustmeta.rc:1:0: 1:0 error: duplicate definition of module core
../src/librustmeta/rustmeta.rc:1 #[link(name = "rustmeta",
We know this happened because of the injected core library, so we should say so.
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.