Skip to content

Duplicate crate errors with #[phase(syntax)] #14330

Closed
@alexcrichton

Description

@alexcrichton
#![feature(phase)]

#[phase(syntax, link)] extern crate std;
warning: using multiple versions of crate `std`
foo.rs:1:1: 1:1 note: used here
foo.rs:1 #![feature(phase)]
         ^
note: crate_id: std#0.11.0-pre
foo.rs:3:24: 3:41 note: used here
foo.rs:3 #[phase(syntax, link)] extern crate std;
                                ^~~~~~~~~~~~~~~~~
note: crate_id: std#0.11.0-pre
error: duplicate entry for `malloc`
error: duplicate entry for `free`
error: duplicate entry for `strdup_uniq`
error: duplicate entry for `eh_personality`
error: duplicate entry for `managed_heap`
error: duplicate entry for `gc`
error: aborting due to 6 previous errors

This should link in the same version of libstd, not two separate versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions