We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
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)
The text was updated successfully, but these errors were encountered:
There's most like some code that is still assuming that privacy modifiers are a single token.
Sorry, something went wrong.
Rollup merge of rust-lang#35491 - sanxiyn:pub-restricted-span, r=niko…
6e59f49
…matsakis Correct span for pub_restricted field Fix rust-lang#35435.
c13fe9b
9f87b1f
c35d8db
No branches or pull requests
Warnings on pub_restricted fields produce odd spans including the close-paren:
src/lib.rs
src/foo.rs
cargo build
rustc --version
The text was updated successfully, but these errors were encountered: