Skip to content

[CSDiagnostics] Don't mention special names in requirement diagnostics #19447

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Sep 21, 2018

Instead of initializer 'init' of ... diagnostic should only
mention kind e.g. initializer of ... of the declaration
with a special name.

Instead of `initializer 'init' of ...` diagnostic should only
mention kind e.g. `initializer of ...` of the declaration
with a special name.
@xedin xedin requested a review from rudkx September 21, 2018 07:39
@xedin
Copy link
Contributor Author

xedin commented Sep 21, 2018

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Sep 21, 2018

I think it doesn't really make sense to mention special names because note is going to point to the right place anyway...

@xedin xedin merged commit 6dc4591 into swiftlang:master Sep 21, 2018
@jrose-apple
Copy link
Contributor

No, the names are there so that you can see the parameter names. Please revert.

@xedin
Copy link
Contributor Author

xedin commented Sep 21, 2018

Alright, fair enough

@xedin
Copy link
Contributor Author

xedin commented Sep 21, 2018

As mentioned in the linked PR, I'd change the condition to skip names only if they are special and there are no labels.

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