-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Regression in arainko/ducktape: -Wunused:all false-positive in quotes #18409
Comments
@szymon-rd I think you've worked recently on some regression related to -Wunused, is it possibly the same issue? |
Hard to say right now - it's a bit of a different story with quotes. I will look into it. |
The cause of this comes from an optimization in how we type quote splices in https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/typer/QuotesAndSplices.scala#L263-L266. @szymon-rd I should take this over. Removing that case fixes the issue, but I need to see if there are other consequences. |
These trees where removed as part of an optimization. However, they should be kept around to allow for better error messages and IDE navigation. The type of the ascription in pickled in the TASTy file but is elided in the pickled quote pattern (same optimization already done later). Fixes scala#18409
These trees where removed as part of an optimization. However, they should be kept around to allow for better error messages and IDE navigation. The type of the ascription in pickled in the TASTy file but is elided in the pickled quote pattern (same optimization already done later). Fixes scala#18409
These trees where removed as part of an optimization. However, they should be kept around to allow for better error messages and IDE navigation. The type of the ascription in pickled in the TASTy file but is elided in the pickled quote pattern (same optimization already done later). Fixes scala#18409
These trees where removed as part of an optimization. However, they should be kept around to allow for better error messages and IDE navigation. The type of the ascription in pickled in the TASTy file but is elided in the pickled quote pattern (same optimization already done later). Fixes scala#18409
These trees where removed as part of an optimization. However, they should be kept around to allow for better error messages and IDE navigation. The type of the ascription in pickled in the TASTy file but is elided in the pickled quote pattern (same optimization already done later). Fixes #18409
Compiler version
3.3.1-RC5
3.4.0-RC1-bin-20230815-ca6a80e-NIGHTLY
Works in 3.3.0 -version` instead).
Bisect points to b7a7227
Minimized code
Output
Expectation
Should not mark this import as unused
The text was updated successfully, but these errors were encountered: