Actions: facebook/errpy
Actions
Showing runs from all workflows
86 workflow runs
86 workflow runs
ast
readouts for readability
Reviewed By: jasontatton
Differential Revision: D47307389
fbshipit-source-id: efee4ab0c7592815a82c3b9f1b31e5d1d79af71f
cargo vendor and commit
#49:
Commit 9675d9d
pushed
by
facebook-github-bot
third-party-rust-verification
. The schemafy_core
crate contains a file that uses carriage returns which are not followed by newlines 🤮. When that file fails to parse, Reindeer falls back to using non-precise srcs, which produced the following difference to the generated output.
```
diff --git a/third-party/rust/BUCK b/third-party/rust/BUCK
...
cargo vendor and commit
#48:
Commit 658aeb5
pushed
by
facebook-github-bot
vendor
and generated_file_header
fields from reindeer.toml
Summary:
- vendor
is unneeded since {D47317816}
- generated_file_header
is unneeded since {D47317815}
Reviewed By: JakobDegen
Differential Revision: D47318704
fbshipit-source-id: e94ab88e032efe7d9bba73ad9ecb28d07e8f0009
cargo vendor and commit
#47:
Commit 9b33e30
pushed
by
facebook-github-bot
c"..."
CStr literals.
Reviewed By: shayne-fletcher
Differential Revision: D47316927
fbshipit-source-id: ac0e514ca89dad282e64decd01d3a94b3bff8490
cargo vendor and commit
#45:
Commit a942cdc
pushed
by
facebook-github-bot
_
clause which has no effect, we change this to a let if
. This seems cleaner
Differential Revision: D47122495
fbshipit-source-id: 2fe2048d9b43e3c7bd41289b2de8c30ea28e54ee
cargo vendor and commit
#44:
Commit d1c5f33
pushed
by
facebook-github-bot
case_key_value_pattern
to permit the following pattern for the mapping variant of case pattern:
matxh x:
case {a.b: c}:
action()
With this fix in place we can pass all of the cases expressed for the match5.py
test suite adapted from pyrite: https://github.com/microsoft/pyright/tree/main/packages/pyright-internal/src/tests/samples
We also improve the tree-sitter-python test suite.
Lots of generated...
cargo vendor and commit
#42:
Commit 65bedcd
pushed
by
facebook-github-bot
comment
nodes at any valid point in it's output CST tree. This makes life hard for cst_to_ast.rs
as in theory we would need to handle comment nodes at any point where we extract/iterate over a child node. So we filter out comment nodes.
This code isn't perfect here though and here we fix a bug concerning comments inside strings which exist after...
cargo vendor and commit
#40:
Commit bf09da0
pushed
by
facebook-github-bot
LIST_SPLAT_PATTERN
is not a node type encounterable for an expression
according to the parser grammar definition. So we can remove it from here.
Reviewed By: grievejia
Differential Revision: D46657580
fbshipit-source-id: aa65dec10b93f4adc25e92e674ec7f67d0dad72b
cargo vendor and commit
#39:
Commit 73c8323
pushed
by
facebook-github-bot
handle_format_string_interpolation_node_inplace
we were incorrectly offsetting unicode characters within format strings because we were not factoring in the fact that different unicode characters can consume a variable number of bytes. See: https://en.wikipedia.org/wiki/UTF-8#Encoding
We improve the tests a little bit to cater for cases where we have unicode characters which take up != 3
bytes and also...
cargo vendor and commit
#38:
Commit 017e18e
pushed
by
facebook-github-bot
xx = f"""\x40
{another_variable}
"""
We offset the AST start_col
and end_col
by the space consumed by the unicode character, but previously we were attempting to apply this offset beyond the row upon which the unicode character is defined.
Reviewed By: stroxler
Differential Revision: D46557893
fbshipit-source-id: c906d1c12ec6f1e6264fc418bc79335a37d1c061
cargo vendor and commit
#37:
Commit e947d30
pushed
by
facebook-github-bot
Cargo.toml
was not generated correctly to support compilation of the C dependencies of the temporarily vendored in implementation of tree-sitter-python
. This tweak to the TARGETS
config fixes this problem, autocargo generates the Cargo.toml
and now dune test
runs ok.
Differential Revision: D46380033
fbshipit-source-id: 43e1109acd5860b94febfebf8ec49099cbaec113
cargo vendor and commit
#36:
Commit 729fe7b
pushed
by
facebook-github-bot
PyreErrpyParser
.
Reviewed By: jasontatton
Differential Revision: D46326732
fbshipit-source-id: 8c604c7f4d5525c09005f184f1d472a83d7b5834
cargo vendor and commit
#34:
Commit 850c4b7
pushed
by
facebook-github-bot
toml
](https://docs.rs/toml/0.7.3/toml/) crate from its current 0.5.8
(forked) version of ~2.5 years back to the latest 0.7.3
version. The upgrade is done over 2 diffs where the 1st one (this diff) does a rename of 0.5.8
to fbsource//third-party/rust:toml-5
and import of 0.7.3
as fbsource//third-party/rust:toml
and the 2nd one (D45896591) attempts to upgrade as many `TAR...
cargo vendor and commit
#32:
Commit 9f7c0e9
pushed
by
facebook-github-bot
format_vec_pattern
was getting a bit convoluted. Here we refactor this to a similar behaving function format_vec_pattern_for_or
. Results in some code duplication but it's easier to reason about so probably ok overall.
Reviewed By: grievejia
Differential Revision: D45928096
fbshipit-source-id: cf24c94d131971f005582c3b7574b72576dea429
cargo vendor and commit
#31:
Commit 85518d9
pushed
by
facebook-github-bot
match xx:
case 3 | -3:
pass
case 3.0 | -3.0:
pass
Added a new test case for this instance and refactored out the case_literal_pattern
method from the body of case_closed_pattern
- which was also missing a proper documentation string.
Note here that we had to tweak the grammar specification a bit, so there is some derived code i...
cargo vendor and commit
#29:
Commit 34924c4
pushed
by
facebook-github-bot
match
integration work I found that the test_sandbox_flat_ast_and_pretty
sandbox test tool doesn't perform the pretty print. This diff fixes that problem and adds another test which can be used to do a flat ast print without pretty printing. Now we cover all 4 variants (all possible states of two bits :) )
Reviewed By: grievejia
Differential Revision: D45571016
fbshipit-source-id: 420d4aa464c5e4845b4c4ede123c1ff7131f939b
cargo vendor and commit
#27:
Commit 6d596a7
pushed
by
facebook-github-bot
common/rust/cargo_from_buck/bin/autocargo
Reviewed By: zertosh
Differential Revision: D45487289
fbshipit-source-id: d4a5f0f2ee4d10e8ee1c15ac34e7166945cd6aed
cargo vendor and commit
#26:
Commit c2a6045
pushed
by
facebook-github-bot
AsRef
deduction.
See: https://github.com/BurntSushi/bstr/issues/149
git-config
is affected but the patch fixing this is only available in the renamed crate gix-config
.
This causes a time
to be upgraded as well. However, in time
0.3.18 the crate removed the ability to use unsound_local_offset
to opt out soundness check we rely on. Th...
cargo vendor and commit
#25:
Commit fb50bfb
pushed
by
facebook-github-bot