Skip to content

[Sema] SR-9851 - Add parens when needed for nil coalescing fixits #22802

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

Conversation

xcadaverx
Copy link

https://bugs.swift.org/browse/SR-9851

This is a fix for parens not being added on certain nil coalescing fix-its due to a root expression not being passed down to exprNeedsParensOutsideFollowingOperator.

Resolves SR-9851.

@xedin xedin self-requested a review February 22, 2019 05:14
@xedin
Copy link
Contributor

xedin commented Feb 22, 2019

Thanks, @xcadaverx! I will take a look later tonight or tomorrow!

@beccadax
Copy link
Contributor

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 1d88c47

@xedin
Copy link
Contributor

xedin commented Feb 22, 2019

Looks like mac failures are unrelated to these changes:

01:58:27 2019-02-21 23:58:24.173 xcodebuild[26422:3697164]  DVTDownloadable: Failed to get authorization with error Error Domain=DVTDownloadableErrors Code=3 "The authorization was denied since no user interaction was possible." UserInfo={AuthorizationErrorCode=-60007, NSLocalizedDescription=The authorization was denied since no user interaction was possible.}

@xedin
Copy link
Contributor

xedin commented Feb 22, 2019

@swift-ci please smoke test macOS platform

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you!

@xedin
Copy link
Contributor

xedin commented Feb 22, 2019

@swift-ci please test macOS platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 1d88c47

@xcadaverx
Copy link
Author

Still failing because of this:

06:29:09 2019-02-22 04:29:07.688 xcodebuild[93083:4290577]  DVTDownloadable: Failed to get authorization with error Error Domain=DVTDownloadableErrors Code=3 "The authorization was denied since no user interaction was possible." UserInfo={AuthorizationErrorCode=-60007, NSLocalizedDescription=The authorization was denied since no user interaction was possible.}
06:29:09 xcodebuild: error: The authorization was denied since no user interaction was possible.

Did I break that somehow? :)

@aschwaighofer
Copy link
Contributor

@shahmishal This is the same error I am seeing on my PR #22712
When running a full test.

Something seems to be wrong on the bot?

@xedin
Copy link
Contributor

xedin commented Feb 22, 2019

I think it's okay to merge, I was just hoping that it's only reproducible on one machine.

@xedin xedin merged commit 8e5d5ed into swiftlang:master Feb 22, 2019
@xedin
Copy link
Contributor

xedin commented Feb 22, 2019

@xcadaverx Thanks again and please don't forget to resolve JIRA!

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.

6 participants