Skip to content

Rustup to https://github.com/rust-lang/rust/pull/65426 #4672

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

Closed
wants to merge 1 commit into from

Conversation

phansch
Copy link
Member

@phansch phansch commented Oct 15, 2019

changelog: none

@tesuji
Copy link
Contributor

tesuji commented Oct 15, 2019

r? @Manishearth

@@ -255,7 +256,7 @@ fn simplify_not(cx: &LateContext<'_, '_>, expr: &Expr) -> Option<String> {
.iter()
.cloned()
.flat_map(|(a, b)| vec![(a, b), (b, a)])
.find(|&(a, _)| a == path.ident.name.as_str())
.find(|&(a, _)| Symbol::intern(a) == path.ident.name)
Copy link
Contributor

Choose a reason for hiding this comment

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

What about using sym! macro?

@Manishearth
Copy link
Member

I'd rather not dynamically intern symbols. Perhaps we should use the sym macro for must_use and use a cast like in #4673 for the other one?

@Manishearth
Copy link
Member

We can also land #4673 for now and improve it later

@phansch
Copy link
Member Author

phansch commented Oct 15, 2019

Let's land #4673 for now 👍

@phansch phansch closed this Oct 15, 2019
@phansch phansch deleted the clippyup branch October 15, 2019 19:59
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.

3 participants