forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 30
Resolve conflicts with release/5.3 #1348
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update release/5.3 branch for Xcode 12 beta
… closure After trailing closure, we perform "Labeled trailing closure" completion and fall back to other completion depending on the position. If the completion happens at a newline position, it used to fallback to global expression completion, but in type context, we should do override completion instead. Also, we didn't use to propagate 'hasCodeCompletion()' status properly. rdar://problem/64650782 (cherry picked from commit f50b666)
Fixes <rdar://problem/64180813>.
Fixes <rdar://problem/64222181>.
Fixes <rdar://problem/60468458>.
Fixes <rdar://problem/55287757>.
…signatures" This reverts commit 08abc0d.
…th no param list or body.
Code completion always want to see implicit 'oldValue' with the correct type. Return 'false' from 'SimpleDidSetRequest' in code completion mode. rdar://problem/64699286 (cherry picked from commit 21b9fc3)
…ar64699286 [5.3][CodeCompletion] Assume non-'isSimpleDidSet' in code completion
…ar64650782 [5.3][CodeCompletion] Fallback to nominal member completion after trailing closure
…r-incomplete-func-decl-5.3 [5.3][SourceKit/Indentation] Fix over-indent after function declaration with no param list or body.
When a function body has had a function builder applied to it, make sure that we run all of the syntactic diagnostics for expressions and statements within the body. Fixes rdar://problem/64493626.
[5.3] Minor doc fixes
[5.3] test: xfail Driver/SourceRanges/range-lifecycle.swift
…-5.3 Revert "[Sema] Fix leak of implementation-only imported types in SPI signatures"
TypeContextInfo and ConformingMethodList rdar://problem/64782333 (cherry picked from commit bbec1eb)
…nting relative to their first line. doStuffWithList([ firstItem .map { $0 } // This line should be indented further. .append(\.foo), // And so should this one. secondItem ]) Resolves rdar://problem/64834040
…yntactic-diags-5.3 [5.3] [Function builders] Run syntactic diagnostics for function bodies.
…pr-indentation-fix-5.3 [5.3][SourceKit/CodeFormat] Fix multi-line array literal elements not indenting relative to their first line.
'TypeContextInfo' and 'ConformingMethodList' (cherry picked from commit 8307c6a)
…ndle compiler synthesized decls We weren't printing memberwise inits, shorthand arguments (e.g. $0, $1), and other implicit decls, so cursor info would give empty annotated decl and fully annotated decl fields for them. Resolves rdar://problem/58929991
BuilderClosureVisitor::visitPatternBindingDecl
decl inside of a function builder.
…-shorthand-arguments-5.3 [5.3][SourceKit/CursorInfo] Still print implicit decls in cursorinfo to handle compiler synthesized decls
for 'ConformingMethodList' and 'TypeContextInfo' (cherry picked from commit 33336df)
…sgen-failure [5.3][Function Builders] Fix a function builder crash due to constraint generation failures
test: xfail Driver/loaded_module_trace_swiftinterface.swift
…mpletionlikereq-rdar64782333 [5.3][SourceKit] Enable ASTContext caching in other completion-like requests
Currently `generateInitPatternConstraints` assumes that all patterns have types but it's not the case for patterns that e.g. reference unknown types or have other structural issues. Let's fail `generateInitPatternConstraints` if constraint generation fails. Resolves: rdar://problem/64157451 (cherry picked from commit caab4f4)
[5.3][CSGen] Handle incorrect patterns (e.g. referencing unknown types)
As a workaround for the issue where code completion fails to suggest member completions for function builder closure parameters. Added ConstraintSystem flag to force apply a solution even if there are multiple viable solutions. rdar://problem/64079439
…rtChild. (swiftlang#32597) rdar://problem/64066210
…2641) CopyForwarding attempts to enforce "normal" SIL address patterns using asserts. This isn't a good strategy because it results in strange crash diagnostics in release builds. Eventually, we should replace this logic with a SIL address lifetime utility based on OSSA form and enforced in the verifier. Loosen one of these restrictions where we assume that a value initialized with "copy_addr [initialization]" will be properly destroyed. This assumption is violated when lowering .int_fma_FPIEEE32, which knows that the type is trivial, so avoids deinitialization. The original SIL looks like this: copy_addr %src to [initialization] %dest : $*Float %fma = builtin "int_fma_FPIEEE32"(% : $Builtin.FPIEEE32, % : $Builtin.FPIEEE32, % : $Builtin.FPIEEE32) : $Builtin.FPIEEE32 %result = struct $Float (%fma : $Builtin.FPIEEE32) store %result to %dest : $*Float Fixes rdar://64671864.
…rceapply-rdar64079439 [5.3][CodeCompletion] Force apply a viable solution even if ambiguous
The effective access of an overridden declaration is subject to escalation by -enable-testing. When this is flag is enabled, an interface containing an internal-overriding-public declaration will still print `override`. This is because the effective access of the base of the override is formally internal but effectively public. Instead, use the formal access scope of the overridden declaration to compute its access relative to the override. While I'm here, catch the case where the base declaration is `@usableFromInline` and therefore *will* be printed in the interface. We treat these declarations as effectively public for the purpose of printing `override`. Resolves rdar://64969741
…tlang#32647) This replaces the `count` comparison precondition with a limited index offset, which converts the method from O(n) to O(k).
…ftlang#31979) * Fix NULL deref for invalid mangled input (swiftlang#31878) The `Qo` operator expects to consume a type name and a list (terminated with a `y` empty list marker) from the stack. After popping the list, it doesn't check whether the stack is empty, so `$syQo` crashes (it pops down to the `y` then tries to pop again). This PR just adds the obvious check to guard against this. Resolves rdar://63128307 * Back out a bad merge
[5.3] Use Formal Access To Compute Override Elision Check
…3-merge # Conflicts: # test/stdlib/simd.swift.gyb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.