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

FS1118 on inlined function in private module from SDK 8.0.300 #17161 #17168

Merged
merged 2 commits into from
May 20, 2024

Conversation

KevinRansom
Copy link
Member

@KevinRansom KevinRansom commented May 17, 2024

Fixes: #17161

  • Add test cases
  • Fix it

This is a regression it should go into 8.0.300
/cc @vzarytovskii , @baronfel

@KevinRansom KevinRansom requested a review from a team as a code owner May 17, 2024 04:37
@KevinRansom KevinRansom marked this pull request as draft May 17, 2024 04:37
Copy link
Contributor

github-actions bot commented May 17, 2024

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@KevinRansom KevinRansom added the NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes label May 17, 2024
@KevinRansom KevinRansom marked this pull request as ready for review May 17, 2024 06:59
@KevinRansom KevinRansom changed the title Investigate FS1118 on inlined function in private module from SDK 8.0.300 #17161 May 17, 2024
@KevinRansom KevinRansom added NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes and removed NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes labels May 17, 2024
@loop-evgeny
Copy link

Thanks for the quick fix! Does this also fix the warning for class members?

@vzarytovskii
Copy link
Member

/backport to release/dev17.10

Copy link
Contributor

Started backporting to release/dev17.10: https://github.com/dotnet/fsharp/actions/runs/9130940180

Copy link
Contributor

@vzarytovskii backporting to release/dev17.10 failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: temp
Using index info to reconstruct a base tree...
M	src/Compiler/Optimize/Optimizer.fs
M	tests/AheadOfTime/Trimming/check.ps1
Falling back to patching base and 3-way merge...
Auto-merging tests/AheadOfTime/Trimming/check.ps1
CONFLICT (content): Merge conflict in tests/AheadOfTime/Trimming/check.ps1
Auto-merging src/Compiler/Optimize/Optimizer.fs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 temp
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

@dotnet dotnet deleted a comment from github-actions bot May 17, 2024
@KevinRansom
Copy link
Member Author

@loop-evgeny, Sorry not to get back to you, it was 1:00 am last night when I propped this PR. I believe this will take care of the class issues too, I will add test cases for it and also verify #17161.

@KevinRansom KevinRansom marked this pull request as draft May 17, 2024 18:47
@KevinRansom KevinRansom enabled auto-merge (squash) May 20, 2024 17:33
@KevinRansom KevinRansom merged commit 9d05359 into dotnet:main May 20, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

FS1118 on inlined function in private module from SDK 8.0.300
4 participants