Skip to content

Moar trait object verbiage. #188

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

Merged
merged 1 commit into from
Jan 2, 2018
Merged

Conversation

Havvy
Copy link
Contributor

@Havvy Havvy commented Jan 2, 2018

  1. While it's "obvious", it should be stated that trait objects actually
    implement the traits they are for.

  2. Added lifetime bounds to the syntactical description and aliasing
    rules of trait objects. I'm not sure if the aliasing part is correct.

  3. Added a big fat warning to the method call expression about trait
    objects having an inherent impl define a method with the same name
    as one of the methods the trait object has from the trait. I
    think that trait objects following different rules than other types
    should be changed.

1. While it's "obvious", it should be stated that trait objects actually
   implement the traits they are for.

2. Added lifetime bounds to the syntactical description and aliasing
   rules of trait objects. I'm not sure if the aliasing part is correct.

3. Added a big fat warning to the method call expression about trait
   objects having an inherent impl define a method with the same name
   as one of the methods the trait object has from the trait. I
   think that trait objects following different rules than other types
   should be changed.
@steveklabnik steveklabnik merged commit 422cbb0 into rust-lang:master Jan 2, 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.

2 participants