Skip to content

Extend rust reference with section about subtyping and type coercions#25900

Merged
bors merged 2 commits into
rust-lang:masterfrom
lorenzb:more_about_types
Jun 4, 2015
Merged

Extend rust reference with section about subtyping and type coercions#25900
bors merged 2 commits into
rust-lang:masterfrom
lorenzb:more_about_types

Conversation

@lorenzb

@lorenzb lorenzb commented May 30, 2015

Copy link
Copy Markdown
Contributor

My main sources of information are RFC401, the rust IRC channel, and a bunch of experiments to figure out what rustc currently supports.
Note that the RFC calls for some coercion behaviour that is not implemented yet (see #18469).
The documentation in this PR mostly covers current behaviour of rust and doesn't document the future behaviour. I haven't written about receiver expression coercion.

I would be happy to rewrite/adapt the PR according to feedback.

r? @steveklabnik

@rust-highfive

Copy link
Copy Markdown
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@steveklabnik

Copy link
Copy Markdown
Contributor

Thanks @lorenzb ! This looks fine to me, but I'd like @nikomatsakis to check it out too.

@steveklabnik

Copy link
Copy Markdown
Contributor

r? @nikomatsakis

@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors rollup r+

Seems good, thanks.

@bors

bors commented Jun 3, 2015

Copy link
Copy Markdown
Collaborator

📌 Commit babb268 has been approved by nikomatsakis

Manishearth added a commit to Manishearth/rust that referenced this pull request Jun 4, 2015
…sakis

My main sources of information are [RFC401](https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md), the rust IRC channel, and a bunch of experiments to figure out what `rustc` currently supports.
Note that the RFC calls for some coercion behaviour that is not implemented yet (see rust-lang#18469).
The documentation in this PR mostly covers current behaviour of rust and doesn't document the future behaviour. I haven't written about receiver expression coercion.

I would be happy to rewrite/adapt the PR according to feedback.

r? @steveklabnik
@bors

bors commented Jun 4, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit babb268 with merge 515c386...

@bors

bors commented Jun 4, 2015

Copy link
Copy Markdown
Collaborator

⛄ The build was interrupted to prioritize another pull request.

@bors

bors commented Jun 4, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit babb268 with merge b535c56...

Manishearth added a commit to Manishearth/rust that referenced this pull request Jun 4, 2015
@Manishearth

Copy link
Copy Markdown
Member

Needs fd3b6ca

@bors

bors commented Jun 4, 2015

Copy link
Copy Markdown
Collaborator

⛄ The build was interrupted to prioritize another pull request.

@bors

bors commented Jun 4, 2015

Copy link
Copy Markdown
Collaborator

⌛ Testing commit babb268 with merge 8b01f01...

@bors

bors commented Jun 4, 2015

Copy link
Copy Markdown
Collaborator

💔 Test failed - auto-win-gnu-64-nopt-t

@alexcrichton

Copy link
Copy Markdown
Member

@bors: retry

On Wed, Jun 3, 2015 at 11:08 PM, bors notifications@github.com wrote:

[image: 💔] Test failed - auto-win-gnu-64-nopt-t
http://buildbot.rust-lang.org/builders/auto-win-gnu-64-nopt-t/builds/194


Reply to this email directly or view it on GitHub
#25900 (comment).

bors added a commit that referenced this pull request Jun 4, 2015
@bors bors merged commit babb268 into rust-lang:master Jun 4, 2015
dlrobertson pushed a commit to dlrobertson/rust that referenced this pull request Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants