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
We currently accept nonsensical extern specs on trait implementations like this one
use flux_rs::*;#[extern_spec(std::ops)]impl<A:Step>IteratorforRange<usize>{}
Given the way we expand the macro, A won't be reported as non-constrained, and Range<usize> passes further validations because it is less generic than the extern implementation so it still implements Iterator. We should check that the self-type of extern specs for trait implementations matches the external definition.
The text was updated successfully, but these errors were encountered:
We currently accept nonsensical extern specs on trait implementations like this one
Given the way we expand the macro,
A
won't be reported as non-constrained, andRange<usize>
passes further validations because it is less generic than the extern implementation so it still implementsIterator
. We should check that the self-type of extern specs for trait implementations matches the external definition.The text was updated successfully, but these errors were encountered: