Skip to content

E0260 needs to be updated to new format #35515

Closed
@sophiajt

Description

@sophiajt
Contributor

From: src/test/compile-fail/E0260.rs

E0260 needs a span_label, updating it from:

error[E0260]: an extern crate named `collections` has already been imported in this module
  --> src/test/compile-fail/E0260.rs:13:1
   |
11 | extern crate collections;
   | ------------------------- previous import of `collections` here
12 | 
13 | mod collections { //~ ERROR E0260
   | ^

To:

error[E0260]: an extern crate named `collections` has already been imported in this module
  --> src/test/compile-fail/E0260.rs:13:1
   |
11 | extern crate collections;
   | ------------------------- previous import of `collections` here
12 | 
13 | mod collections { //~ ERROR E0260
   | ^ `collections` already imported

Bonus: Underline the name of the conflicting definition, if possible:

error[E0260]: an extern crate named `collections` has already been imported in this module
  --> src/test/compile-fail/E0260.rs:13:1
   |
11 | extern crate collections;
   | ------------------------- previous import of `collections` here
12 | 
13 | mod collections { //~ ERROR E0260
   |     ^^^^^^^^^^^ already imported

Activity

creativcoder

creativcoder commented on Aug 9, 2016

@creativcoder
Contributor

I'd like to work on this.

sophiajt

sophiajt commented on Aug 9, 2016

@sophiajt
ContributorAuthor

@creativcoder - looks like @EugeneGonzalez claimed this one, but feel free to look at the list as there are some open ones no one has claimed

creativcoder

creativcoder commented on Aug 9, 2016

@creativcoder
Contributor

Sure. I'll go have a look.

sophiajt

sophiajt commented on Aug 24, 2016

@sophiajt
ContributorAuthor

@creativcoder - I'm releasing this one so someone else can volunteer since it's gone 15 days without a fix, but there are other error codes you can sign up for if you want to fix more.

added a commit that references this issue on Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sophiajt@bstrie@creativcoder

        Issue actions

          E0260 needs to be updated to new format · Issue #35515 · rust-lang/rust