Skip to content

Commit

Permalink
Reactivate unused attribute check for @int (#6802)
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt authored Jun 1, 2024
1 parent 2d645c7 commit aadc50f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- Fix unhandled cases for exotic idents (allow to use exotic PascalCased identifiers for types). https://github.com/rescript-lang/rescript-compiler/pull/6777
- PPX v4: mark props type in externals as `@live` to avoid dead code warnings for prop fields in the editor tooling. https://github.com/rescript-lang/rescript-compiler/pull/6796
- Fix unused attribute check for `@as`. https://github.com/rescript-lang/rescript-compiler/pull/6795
- Reactivate unused attribute check for `@int`. https://github.com/rescript-lang/rescript-compiler/pull/6802

#### :house: Internal

Expand Down
5 changes: 2 additions & 3 deletions jscomp/frontend/bs_ast_invariant.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
*)
let is_bs_attribute txt =
match txt with
(* TODO #6636: "int" *)
| "as" | "bs" | "config" | "ignore" | "optional" | "string" | "uncurry"
| "unwrap" ->
| "as" | "bs" | "config" | "ignore" | "int" | "optional" | "string"
| "uncurry" | "unwrap" ->
true
| _ -> false

Expand Down

0 comments on commit aadc50f

Please sign in to comment.