Watch out for modules privacy when proposing traits to associate with an item #95080
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-visibility
Area: Visibility / privacy
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Working on suricata OISF/suricata#7150
The current output is:
This proposal looks interesting but when It tried it, I was disappointed :
error[E0603]: module `util` is private --> src/detect.rs:41:51 | 41 | fn detect_parse_uint_start_equal<T: lexical_core::util::num::Integer>(i: &str) -> IResult<&str, DetectUintData<T>> { | ^^^^ private module | note: the module `util` is defined here --> /Users/catena/.cargo/registry/src/github.jparrowsec.cn-1ecc6299db9ec823/lexical-core-0.7.6/src/lib.rs:189:1
"the following traits define an item
MAX
, you could restrict the type parameter, but it is private so you can't"?The text was updated successfully, but these errors were encountered: