这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ccasin
Copy link

@ccasin ccasin commented Oct 20, 2022

Rebasing JS changes onto upstream ocamlformat

gpetiot and others added 30 commits February 21, 2022 10:01
gpetiot and others added 29 commits October 5, 2022 10:20
Note for future rebasing:
- `dune b @test/passing/runtest` expected to fail due to missing
  `[@ocaml.curry]`s
- `make test` expected to fail loudly.
Note for future rebasing:
- `dune b @test/passing/runtest` expected to fail due to missing
  error on `local.ml`.  When I run explicitly on that file, like:
    $ ./_build/default/bin/ocamlformat/main.exe test/passing/tests/local.ml
  I get a "BUG: generating invalid ocaml syntax." error.
- `make test` expected to fail loudly.
Note for future rebasing:
- `dune b @test/passing/runtest` expected to fail due to `local_` being
  printed as attrs and extensions in `local.ml`
- `make test` expected to fail loudly.
Note for future rebasing:
- `dune b @test/passing/runtest` expected to fail due to `local_`
  being printed as an extension.
- `make test` expected to fail loudly.
Note for future rebasing:
- `dune b @test/passing/runtest` PASSES
- `make test` PASSES (which I achieved by running `dune fmt` to
  restyle the files within ocamlformat itself, and `make
  promote-regtests` to deal with one of the patch file things.  To be
  careful, I only wanted to run those once the `dune b ...` command
  succeeded).
Autogenerated attributes are now 'extension.foo' instead of 'ocaml.foo'
Signed-off-by: Cameron Wong <cwong@janestreet.com>
* Initial support for the include_functor extension
* Add test for include functor

Signed-off-by: Chris Casinghino <ccasinghino@janestreet.com>
)

A bug in the previous patch for locals causes ocamlformat to incorrectly
format local arguments which are punned with a label and have a type signature:

    fun ~(local_ x : t) -> ...

by putting an extra invalid pair of parens around (x : t). This patch removes
the parens.

Signed-off-by: Stephen Dolan <sdolan@janestreet.com>
…] (oxcaml#6)

Signed-off-by: Stephen Dolan <sdolan@janestreet.com>
@ccasin ccasin closed this Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.