Skip to content

Small crasher fixes #11265

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 5 commits into from
Aug 6, 2017
Merged

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Jul 31, 2017

We had a bunch of internal radars with test cases generated by an unreleased stdlib fuzzer. Most of the original problems have since been fixed, but while verifying I found a few minor crashers. Some of the fixes don't have test cases because they're only possible to trigger in edge case diagnostics from stdlibs that are missing certain common declarations, such as Int.

@slavapestov slavapestov force-pushed the small-crasher-fixes branch from 6888769 to 3a9f55b Compare August 2, 2017 04:59
If the DeclContext's Self type-in-context is an ErrorType,
we should still resolve generic parameters to interface types.
@slavapestov slavapestov force-pushed the small-crasher-fixes branch from 3a9f55b to bdaf226 Compare August 6, 2017 07:25
I don't have reduced test cases. The original test cases
were a series of frontend invocations in -parse-stdlib
mode.

While the original bugs seem to have been fixed, while
verifying I found a few places where we weren't checking
for null decls property in the ASTContext.

Probably not too useful to check this in, but I don't see it
causing any harm, either.
Recently TupleTypeElt was changed to add an inout bit. It is no
longer valid to construct tuple types whose elements have InOutType,
and instead the flag on the element must be set instead.

Update diagnoseImplicitSelfErrors() for the new convention.

Fixes the only remaining crash in the test case from <rdar://19569255>,
but the original issue were fixed long ago.
Again, no test case -- this was an old radar with a
-parse-stdlib example, and I'm just making this change
to verify that the original crash was fixed.
@slavapestov slavapestov force-pushed the small-crasher-fixes branch from bdaf226 to cb3dcbe Compare August 6, 2017 07:43
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit afd6858 into swiftlang:master Aug 6, 2017
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.

1 participant