-
Notifications
You must be signed in to change notification settings - Fork 13.3k
TypeContents code is inscrutable #10157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
…rser bits than the current ones, which were very fine-grained. Also, cleanly distinguish when properties must be found in *owned* types vs *reachable* types. Fixes rust-lang#10157
@nikomatsakis: I'm curious about what the functional difference will be between owned and reachable properties. There are types like |
@thestinger I don't quite know what you mean by "functional difference". In any case, I actually drew 3 distinctions: things that are interior to the type, things that are owned by the type, and things that are reachable. For many purposes (e.g. builtin bounds like Send or Freeze), reachable is generally all that matters. But for others, e.g. move-by-default, ownership is what is important. In some cases, like |
Ah, that makes sense. |
Yes unfortunately there is still some obscure error I've yet to track |
…tents-refactor, r=pcwalton See rust-lang#10157. This compiles now. Fixes rust-lang#10278. Fixed xfail for nbody shootout benchmark by correcting command line parse. Cleaned up unneeded imports and type changes to resolve compiler warnings.
I can say that because I wrote it. Anyway, I have a refactoring I think is cleaner -- it does a better job of distinguishing owned from reachable properties and so forth. Coming soon to a PR near you.
The text was updated successfully, but these errors were encountered: