Skip to content

[Diagnostics] Centralize requirement failure impact assessment #27390

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
merged 1 commit into from
Sep 28, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Sep 26, 2019

Conformance requirements get their fixes attached directly where
other requirements have to use (for now) repairFailure mechanism.

Regardless of how fixes get recorded there should be a single
way to assess impact of a particular requirement failure.

The rules are:

  • If this is a requirement associated with an operator, impact
    is based on use of the type which failed the requirement;

  • If this requirement is from conditional extension,
    it is considered a very high impact because failing such
    requirement makes referenced member de facto invisible.

Resolves: rdar://problem/55593998
Resolves: SR-11491

Conformance requirements get their fixes attached directly where
other requirements have to use (for now) `repairFailure` mechanism.

Regardless of _how_ fixes get recorded there should be a single
way to assess impact of a particular requirement failure.

The rules are:

- If this is a requirement associated with an operator, impact
  is based on use of the type which failed the requirement;

- If this requirement is from conditional extension,
  it is considered a very high impact because failing such
  requirement makes referenced member de facto invisible.

Resolves: rdar://problem/55593998
Resolves: [SR-11491](https://bugs.swift.org/browse/SR-11491)
@xedin xedin requested review from DougGregor and hborla September 26, 2019 22:27
@xedin
Copy link
Contributor Author

xedin commented Sep 26, 2019

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Sep 28, 2019

@swift-ci please smoke test

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