Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upExactSizeIterator should be an unsafe trait #958
Comments
This comment has been minimized.
This comment has been minimized.
|
FWIW, |
nikomatsakis
referenced this issue
Apr 9, 2015
Closed
Unsafe, optimization-oriented traits for precise sizes, orderings, and so forth #1051
This comment has been minimized.
This comment has been minimized.
|
Closing in favor of the more general #1051. |
nikomatsakis
closed this
Apr 9, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
theemathas commentedMar 10, 2015
I think that
ExactSizeIteratorshould be anunsafetrait, so that its invariant can be relied upon byunsafecode.See also #956 and http://internals.rust-lang.org/t/the-trusted-iterator-length-problem/1302