Skip to content

Regression: a module named std has already been imported in this module [E0252] #30089

Closed
@briansmith

Description

@briansmith

See https://travis-ci.org/briansmith/ring/jobs/91080822

Relevant build output:

src/file_test.rs:17:5: 17:8 error: a module named `std` has already been imported in this module [E0252]
src/file_test.rs:17 use std;
                        ^~~
src/file_test.rs:17:5: 17:8 help: run `rustc --explain E0252` to see a detailed explanation
src/file_test.rs:16:1: 16:14 note: previous import of `std` here
src/file_test.rs:16 use super::*;

This code built fine on Nightly last week. It still build correctly on Beta and Release; see https://travis-ci.org/briansmith/ring/builds/91080819.

The code in question is:

use rustc_serialize::hex::FromHex;
use super::*;
use std;
use std::io::BufRead;

You can try it by cloning https://github.com/briansmith/ring, revision ee3ff646962e4a4933eaabb50c76f196521fd592.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions