You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
llogiq opened this issue
Aug 23, 2015
· 3 comments
Labels
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-ASTType: Requires working with the ASTT-middleType: Probably requires verifiying types
Since there is a blanket impl of Into<T> for all types U with an impl From<Target=T>, it's usually better to implement From where the orphan rule allows it.
The text was updated successfully, but these errors were encountered:
llogiq
added
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
T-AST
Type: Requires working with the AST
T-middle
Type: Probably requires verifiying types
A-lint
Area: New lints
labels
Aug 23, 2015
The orphan_check_trait_ref(..) could possibly be used, but we'd have to supply a self-generated TraitRef. Another option is to basically clone its code and change the arguments to something we can control.
Currently I'm in favor of the second method, because it doesn't tie us too much into rustc internals.
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-ASTType: Requires working with the ASTT-middleType: Probably requires verifiying types
Since there is a blanket impl of
Into<T>
for all types U with animpl From<Target=T>
, it's usually better to implementFrom
where the orphan rule allows it.The text was updated successfully, but these errors were encountered: