Skip to content

E0259 needs to be updated to new format #35514

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
sophiajt opened this issue Aug 8, 2016 · 0 comments
Closed

E0259 needs to be updated to new format #35514

sophiajt opened this issue Aug 8, 2016 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@sophiajt
Copy link
Contributor

sophiajt commented Aug 8, 2016

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

E0259 needs a span_label, updating it from:

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

To:

error[E0259]: an extern crate named `collections` has already been imported in this module
  --> src/test/compile-fail/E0259.rs:12:1
   |
11 | extern crate collections;
   | ------------------------- previous import of `collections` here
12 | extern crate libc as collections; //~ ERROR E0259
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ already imported
@bstrie bstrie added the A-diagnostics Area: Messages for errors, warnings, and lints label Aug 24, 2016
sophiajt pushed a commit to sophiajt/rust that referenced this issue Aug 31, 2016
…urner

Change E0259 to the new error format

Fixes rust-lang#35514 as part of rust-lang#35233.

Sorry about creating a new PR I was having a lot of troubles squashing the commit because I didn't properly branch the new feature.

r? @GuillaumeGomez
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

2 participants