-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Ignore non-const ctor expressions in or_fn_call #4018
Conversation
The fully general solution is to use a visitor and make sure that the Mind me filing a separate bug for this case so we can land this? |
@bors r+ |
📌 Commit 9a92e26 has been approved by |
Ignore non-const ctor expressions in or_fn_call Fixes #1338 Should have been fixed by #919, however that focuses on const ctor expressions only, and `.or(Some(local))` isn't const. This also automatically ignores things like `.or(Some(local.clone())` which we don't actually want to do; I need to figure out what to do here. changelog: Fixed false positive in [`or_fn_call`] pertaining to enum variant constructors r? @oli-obk @phansch
💔 Test failed - checks-travis |
r=me with rustfmt applied |
9a92e26
to
b03cf3f
Compare
@bors r=oli-obk ah, no wonder it wasn't getting formatted earlier, i'd forgotten |
📌 Commit b03cf3f has been approved by |
Ignore non-const ctor expressions in or_fn_call Fixes #1338 Should have been fixed by #919, however that focuses on const ctor expressions only, and `.or(Some(local))` isn't const. This also automatically ignores things like `.or(Some(local.clone())` which we don't actually want to do; I need to figure out what to do here. changelog: Fixed false positive in [`or_fn_call`] pertaining to enum variant constructors r? @oli-obk @phansch
💔 Test failed - status-appveyor |
needs rustup |
@bors retry |
Ignore non-const ctor expressions in or_fn_call Fixes #1338 Should have been fixed by #919, however that focuses on const ctor expressions only, and `.or(Some(local))` isn't const. This also automatically ignores things like `.or(Some(local.clone())` which we don't actually want to do; I need to figure out what to do here. changelog: Fixed false positive in [`or_fn_call`] pertaining to enum variant constructors r? @oli-obk @phansch
The rust queue has a rollup waiting so might as well squeeze this in before I land the submodule update |
☀️ Test successful - checks-travis, status-appveyor |
Fixes #1338
Should have been fixed by #919, however that focuses on const ctor expressions only, and
.or(Some(local))
isn't const.This also automatically ignores things like
.or(Some(local.clone())
which we don't actually want to do; I need to figure out what to do here.changelog: Fixed false positive in [
or_fn_call
] pertaining to enum variant constructorsr? @oli-obk @phansch