Skip to content
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

Merge main to release/dev17.10 #16921

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

dotnet-bot
Copy link
Contributor

This is an automatically generated pull request from main into release/dev17.10.

Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯

Troubleshooting conflicts

Identify authors of changes which introduced merge conflicts

Scroll to the bottom, then for each file containing conflicts copy its path into the following searches:

Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts.

Resolve merge conflicts using your local repo

Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub.

git fetch --all
git checkout -t upstream/merges/main-to-release/dev17.10
git reset --hard upstream/release/dev17.10
git merge upstream/main
# Fix merge conflicts
git commit
git push upstream merges/main-to-release/dev17.10 --force

* Fix a few more paren corner cases

* Match-like exprs in `if` exprs, `while` exprs, and `for` exprs. Also
  `let` exprs.

* Nested, dangling `as` patterns.

* Outlaw `match` exprs (where the first `|` is leftward of the `m` in
  `match)

* Single-line comments (`//`, `///`). Multiline comments (`(*…*)`)
  would be… rather more difficult to handle.

* Double-parenthesized tuples in method applications, since we can't
  tell purely syntactically whether the tuple might be the first
  parameter of a method whose next parameter is an implied outref
  parameter:
	  `x.TryGetValue ((y, z))`
	  i.e.,
	  `x.TryGetValue ((y, z), &value)`

* Multiline tuple patterns in `let`-bindings. These need parens if the
  bound expression starts on the same column.

* Handle typed pats in getters & setters

* Double parens oddities

* Sometimes we can't tell just by looking at the untyped AST whether we
  need parens, since their necessity may be dictated by type information
  located elsewhere. Compare, e.g., #16254,
  which probably has a similar underlying cause.

* Keep parens for parenzed app preceded by prefix op

* Keep parens around tuple in interp string

* More nested match fun

* No space when expr would reparse as prefix op

* No space when expr would reparse as prefix op

* No space when expr would reparse as prefix op

* Update release notes

* Remove unfinished multiline comment stuff

* Keep parens around dot-get that would be adjacent

* E.g., removing parens in place from

  ```fsharp
  Debug.Assert((xT.DeclaringType :?> ProvidedTypeDefinition).BelongsToTargetModel)
  ```

  would result in the the argument to `Assert` becoming
  `(xT.DeclaringType :?> ProvidedTypeDefinition)`. The
  `.BelongsToTargetModel` would then be parsed as a get on the return
  value of _that_ call.

* Fantomas
@dotnet-bot dotnet-bot force-pushed the merges/main-to-release/dev17.10 branch from ac1e140 to c7fcbf6 Compare March 21, 2024 18:05
@dotnet-bot dotnet-bot requested a review from a team as a code owner March 21, 2024 18:05
Copy link
Contributor

❗ Release notes required


✅ Found changes and release notes in following paths:

Warning

No PR link found in some release notes, please consider adding it.

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/8.0.300.md No current pull request URL (#16921) found, please consider adding it
vsintegration/src docs/release-notes/.VisualStudio/17.10.md No current pull request URL (#16921) found, please consider adding it

@KevinRansom KevinRansom merged commit 891a53a into release/dev17.10 Mar 21, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants