-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
Warnings on pub_restricted fields produce odd spans including the close-paren:
src/lib.rs
#![feature(pub_restricted)]
pub mod foo;src/foo.rs
pub struct Foo {
pub(super) bar: u8,
}cargo build
warning: struct field is never used: `bar`, #[warn(dead_code)] on by default
--> src/foo.rs:2:14
|
2 | pub(super) bar: u8,
| ^^^^^^^^^
rustc --version
rustc 1.12.0-nightly (b30eff7ba 2016-08-05)
Havvy and Aatch
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints