Conversation
rescript
@rescript/darwin-arm64
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8f4f487f3f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 165476741a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a937c43f73
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c4f4a87c2d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
| | {vb_pat = pat; vb_expr = expr; vb_attributes = attr; vb_loc} :: rem -> | ||
| let lam = transl_exp expr in | ||
| let lam = | ||
| Builtin_attributes.warning_scope ~ppwarning:false attr (fun () -> |
There was a problem hiding this comment.
What does this do? I'd never heard of @ppwarning: is it used anywhere?
There was a problem hiding this comment.
@ppwarning emits its string payload as a compiler warning.
Builtin_attributes.warning_scope processes warning-related attributes in a scoped way (@warning, @warnerror, and @ppwarning). Passing ~ppwarning:false keeps the warning/warnerror scoping behavior but suppresses emitting ppwarning messages during this pass, avoiding duplicate warnings when the same attributes have already been processed earlier.
Summary
Fixes #8160, where
@warning("-102")did not suppress polymorphic comparison warnings.Changes
Bs_polymorphic_comparison) emission from JS primitive compilation into lambda translation, where warning scopes are available.@warning("-102")on bindings and expressions to suppress polymorphic comparison warnings.==/!=comparisons againstnullorundefined.@ppwarningoutput while applying warning scopes during translation.super_errorsfixture covering suppression,@ppwarning, null comparison, and an unsuppressed warning.Testing
tests/build_tests/super_errors/fixtures/warning102.restests/build_tests/super_errors/expected/warning102.res.expected