Skip to content

E0395 needs to be updated to new format #35693

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 15, 2016 · 1 comment
Closed

E0395 needs to be updated to new format #35693

sophiajt opened this issue Aug 15, 2016 · 1 comment

Comments

@sophiajt
Copy link
Contributor

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

E0395 needs a span_label, updating it from:

error[E0395]: raw pointers cannot be compared in statics
  --> src/test/compile-fail/E0395.rs:14:22
   |
14 | static BAZ: bool = { (&FOO as *const i32) == (&BAR as *const i32) }; //~ ERROR E0395
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

To:

error[E0395]: raw pointers cannot be compared in statics
  --> src/test/compile-fail/E0395.rs:14:22
   |
14 | static BAZ: bool = { (&FOO as *const i32) == (&BAR as *const i32) }; //~ ERROR E0395
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comparing raw pointers in static
@clementmiao
Copy link
Contributor

I can take this

steveklabnik added a commit to steveklabnik/rust that referenced this issue Aug 18, 2016
… r=jonathandturner

updated E0395 to new error format

Updated E0395 to new error format.
Part of rust-lang#35233
Fixes rust-lang#35693

Thanks again for letting me help!

r? @jonathandturner
sophiajt pushed a commit to sophiajt/rust that referenced this issue Aug 19, 2016
… r=jonathandturner

updated E0395 to new error format

Updated E0395 to new error format.
Part of rust-lang#35233
Fixes rust-lang#35693

Thanks again for letting me help!

r? @jonathandturner
sophiajt pushed a commit to sophiajt/rust that referenced this issue Aug 19, 2016
… r=jonathandturner

updated E0395 to new error format

Updated E0395 to new error format.
Part of rust-lang#35233
Fixes rust-lang#35693

Thanks again for letting me help!

r? @jonathandturner
sophiajt pushed a commit to sophiajt/rust that referenced this issue Aug 20, 2016
… r=jonathandturner

updated E0395 to new error format

Updated E0395 to new error format.
Part of rust-lang#35233
Fixes rust-lang#35693

Thanks again for letting me help!

r? @jonathandturner
sophiajt pushed a commit to sophiajt/rust that referenced this issue Aug 20, 2016
… r=jonathandturner

updated E0395 to new error format

Updated E0395 to new error format.
Part of rust-lang#35233
Fixes rust-lang#35693

Thanks again for letting me help!

r? @jonathandturner
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants