Skip to content

Add E0092, E0093, E0094, E0101, E0117, E0119, E0195, E0207 and E0211 error explanation #26651

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 9 commits into from
Jul 1, 2015

Conversation

GuillaumeGomez
Copy link
Member

struct Foo;

impl Trait for Foo {
fn t<'a,'b>(x: &'a str, y: &'b str) { // error: lifetime parameters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe the comment could go to the next line (or get deindented on the second line) instead of wrapping and spanning 4 whole lines?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw it like this in other error explanations. So I don't mind. I'll wait for other opinions before changing it, we'll see what people say.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer having it on the next line

@GuillaumeGomez GuillaumeGomez changed the title Add E0195 error explanation Add E0093, E0094, E0195 and E0211 error explanation Jun 30, 2015
@GuillaumeGomez GuillaumeGomez changed the title Add E0093, E0094, E0195 and E0211 error explanation Add E0092, E0093, E0094, E0195 and E0211 error explanation Jun 30, 2015
@GuillaumeGomez GuillaumeGomez changed the title Add E0092, E0093, E0094, E0195 and E0211 error explanation Add E0092, E0093, E0094, E0101, E0195 and E0211 error explanation Jun 30, 2015
@@ -1022,6 +1022,119 @@ type Foo<A> = Box<A>; // ok!
```
"##,

E0092: r##"
You tried to call an undefined atomic operation function.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"tried to declare"

@GuillaumeGomez
Copy link
Member Author

@Manishearth: Updated! Do you see anything else ?

}
```

The 'b lifetime constraints for `t` implementation does not match the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Backticks around 'b
  • "The lifetime constraint 'b for the implementation of t() does not match the trait declaration"
  • replacing t with method might be better

@Manishearth
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 30, 2015

📌 Commit 5aeecd2 has been approved by Manishearth

@Manishearth
Copy link
Member

@bors r-

@Manishearth
Copy link
Member

Still missing #26651 (diff)

@GuillaumeGomez GuillaumeGomez changed the title Add E0092, E0093, E0094, E0101, E0195 and E0211 error explanation Add E0092, E0093, E0094, E0101, E0121, E0195 and E0211 error explanation Jun 30, 2015
@GuillaumeGomez GuillaumeGomez changed the title Add E0092, E0093, E0094, E0101, E0121, E0195 and E0211 error explanation Add E0092, E0093, E0094, E0101, E0117, E0195 and E0211 error explanation Jun 30, 2015
@GuillaumeGomez GuillaumeGomez changed the title Add E0092, E0093, E0094, E0101, E0117, E0195 and E0211 error explanation Add E0092, E0093, E0094, E0101, E0117, E0195, E0207 and E0211 error explanation Jun 30, 2015
@GuillaumeGomez GuillaumeGomez changed the title Add E0092, E0093, E0094, E0101, E0117, E0195, E0207 and E0211 error explanation Add E0092, E0093, E0094, E0101, E0117, E0119, E0195, E0207 and E0211 error explanation Jun 30, 2015
fn foo(); // error: unrecognized intrinsic function: `foo`
}

fn main() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need this function to exist in order to reproduce the error?

@GuillaumeGomez
Copy link
Member Author

Anything else to fix/change ?

@GuillaumeGomez
Copy link
Member Author

Squashed.

@Manishearth
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 30, 2015

📌 Commit be38926 has been approved by Manishearth

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Jun 30, 2015
bors added a commit that referenced this pull request Jun 30, 2015
@bors bors merged commit be38926 into rust-lang:master Jul 1, 2015
@GuillaumeGomez GuillaumeGomez deleted the patch-2 branch July 1, 2015 11:07
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.

4 participants