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 #16751

Merged
merged 2 commits into from
Feb 23, 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

* Add unit tests for interp strings with string expr

Sanity check that lowering to concat does not break these simple cases

* Add IL test for lowering to concat

* Add optimization in CheckExpressions

Initial attempt with many TODOs, also not sure whether it should be done
in checking, but it seems that later we would have to again parse the
string (since CheckExpressions is going from AST version of an
interpolated string to a sprintf call basically)

* Do not optimize when format specifiers are there

Cannot really optimize this way if width and other flags are specified.
Typed interpolated expressions should be possible to support, but
skipping them for now (TODO).

* Adjust expected length of codegen

* Filter out empty string parts

E.g. $"{x}{y}" has 5 string parts, including 3 empty strings

* Detect format specifiers better

There were false positives before

* Refactor, improve regex

* Unrelated indentation fix in parser

* Use language feature flag

* FSComp.txt auto-update

* Add release notes

* Add langversion flag to some unit tests

* Fix typo in src/Compiler/FSComp.txt

Co-authored-by: Petr <psfinaki@users.noreply.github.com>

* Update .xlf and undo change to CheckFormatStrings

* Add a test, undo change in CheckFormatString

* Refactor based on review suggestions

* Add more IL tests

* Add comments lost in refactoring

* Automated command ran: fantomas

  Co-authored-by: psfinaki <5451366+psfinaki@users.noreply.github.com>

---------

Co-authored-by: Adam Boniecki <abonie@users.noreply.github.com>
Co-authored-by: Petr <psfinaki@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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 (#16751) found, please consider adding it
LanguageFeatures.fsi docs/release-notes/.Language/preview.md No current pull request URL (#16751) found, please consider adding it

@abonie
Copy link
Member

abonie commented Feb 23, 2024

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@KevinRansom KevinRansom merged commit cdbac6c into release/dev17.10 Feb 23, 2024
29 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