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 upremove subtyping relationship for safe/unsafe fns and replace with coercion #23449
Comments
This comment has been minimized.
This comment has been minimized.
|
triage: P-backcompat-lang (1.0 beta) |
rust-highfive
added
the
P-backcompat-lang
label
Mar 17, 2015
rust-highfive
added this to the 1.0 beta milestone
Mar 17, 2015
This comment has been minimized.
This comment has been minimized.
|
This is not super important, I think we could live with it staying the way it is. But I've got a branch already that seems to be mostly building. |
nikomatsakis
self-assigned this
Mar 17, 2015
nikomatsakis
referenced this issue
Mar 17, 2015
Merged
Move fn safety out of the subtyping relationship and into coercions #23452
bors
added a commit
that referenced
this issue
Mar 18, 2015
bors
closed this
in
#23452
Mar 18, 2015
kennytm
referenced this issue
Jan 31, 2018
Open
RFC: Overconstraining and omitting `unsafe` in impls of `unsafe` trait methods #2316
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nikomatsakis commentedMar 17, 2015
Currently,
fnis a subtype ofunsafe fn. This should be a coercion relationship, pursuant to our strategy of limiting subtyping to region relationships. This also implies that one cannot implement anunsafetrait method with a safe fn, which is useful for solving the "trusted iterator length" problem.