-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
A-lintArea: New lintsArea: New lintsE-hardCall for participation: This a hard problem and requires more experience or effort to work onCall for participation: This a hard problem and requires more experience or effort to work onL-correctnessLint: Belongs in the correctness lint groupLint: Belongs in the correctness lint groupL-unnecessaryLint: Warn about unnecessary codeLint: Warn about unnecessary codeT-middleType: Probably requires verifiying typesType: Probably requires verifiying types
Description
struct A<T: Trait>(Box<T>);
should lint that one should write T: Trait + ?Sized
.
Motivation: http://stackoverflow.com/questions/40846232/rust-compiler-does-not-see-structure-as-sized
To reduce false positives, this should only lint if the impl X for A
and impl A
, will continue working if they are also changed.
pcpthm
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsE-hardCall for participation: This a hard problem and requires more experience or effort to work onCall for participation: This a hard problem and requires more experience or effort to work onL-correctnessLint: Belongs in the correctness lint groupLint: Belongs in the correctness lint groupL-unnecessaryLint: Warn about unnecessary codeLint: Warn about unnecessary codeT-middleType: Probably requires verifiying typesType: Probably requires verifiying types