Skip to content

Conversation

@tnielens
Copy link
Contributor

@tnielens tnielens commented Aug 21, 2017

The use_self lint (issue #1674) causes false positives on "lifetimed" structures. This excludes them from linting for now. See PR #1965.

Copy link
Contributor

@oli-obk oli-obk left a comment

Choose a reason for hiding this comment

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

You need to rerun cargo test and tests/ui/update-all-references.sh

path.segments
.last()
.expect("segments should be composed of at least 1 element")
.unwrap()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you downgrade the message?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added another expect() call with the same message. I thought the message doesn't provide additional debug information, it repeats what the code is trying. So I removed them. Should I put them back?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should I put them back?

Yep. Dogfood would have complained anyway ;)

I added another expect() call with the same message. I thought the message doesn't provide additional debug information,

You can always improve on the message ;)

@oli-obk oli-obk merged commit 7715f00 into rust-lang:master Aug 23, 2017
@oli-obk
Copy link
Contributor

oli-obk commented Aug 23, 2017

Thanks for the quick fix!

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