[INFO] fetching crate rust-sitter-macro 0.4.3...
[INFO] testing rust-sitter-macro-0.4.3 against nightly-2024-10-28 for randomize-layout
[INFO] extracting crate rust-sitter-macro 0.4.3 into /workspace/builds/worker-3-tc1/source
[INFO] validating manifest of crates.io crate rust-sitter-macro 0.4.3 on toolchain nightly-2024-10-28
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate rust-sitter-macro 0.4.3
[INFO] finished tweaking crates.io crate rust-sitter-macro 0.4.3
[INFO] tweaked toml for crates.io crate rust-sitter-macro 0.4.3 written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 31 packages to latest compatible versions
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded console v0.15.8
[INFO] [stderr]   Downloaded similar v2.6.0
[INFO] [stderr]   Downloaded encode_unicode v0.3.6
[INFO] [stderr]   Downloaded linked-hash-map v0.5.6
[INFO] [stderr]   Downloaded rust-sitter-common v0.4.3
[INFO] [stderr]   Downloaded insta v1.41.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 39938251606c41223d8a9e027f921536ee45f946273b6f2cb963b2e88e815b03
[INFO] running `Command { std: "docker" "start" "-a" "39938251606c41223d8a9e027f921536ee45f946273b6f2cb963b2e88e815b03", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "39938251606c41223d8a9e027f921536ee45f946273b6f2cb963b2e88e815b03", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "39938251606c41223d8a9e027f921536ee45f946273b6f2cb963b2e88e815b03", kill_on_drop: false }`
[INFO] [stdout] 39938251606c41223d8a9e027f921536ee45f946273b6f2cb963b2e88e815b03
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2962363ab2abae441b1cd8df06699bd0b482b781b057d1c3015c6c163f071c06
[INFO] running `Command { std: "docker" "start" "-a" "2962363ab2abae441b1cd8df06699bd0b482b781b057d1c3015c6c163f071c06", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v2.0.86
[INFO] [stderr]    Compiling rust-sitter-common v0.4.3
[INFO] [stderr]    Compiling rust-sitter-macro v0.4.3 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.09s
[INFO] running `Command { std: "docker" "inspect" "2962363ab2abae441b1cd8df06699bd0b482b781b057d1c3015c6c163f071c06", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2962363ab2abae441b1cd8df06699bd0b482b781b057d1c3015c6c163f071c06", kill_on_drop: false }`
[INFO] [stdout] 2962363ab2abae441b1cd8df06699bd0b482b781b057d1c3015c6c163f071c06
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 69efe1780897f39914dce6f8214f4013985958a986150c45a3b03da84235dbce
[INFO] running `Command { std: "docker" "start" "-a" "69efe1780897f39914dce6f8214f4013985958a986150c45a3b03da84235dbce", kill_on_drop: false }`
[INFO] [stderr]    Compiling rustix v0.38.38
[INFO] [stderr]    Compiling linux-raw-sys v0.4.14
[INFO] [stderr]    Compiling lazy_static v1.5.0
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling fastrand v2.1.1
[INFO] [stderr]    Compiling once_cell v1.20.2
[INFO] [stderr]    Compiling similar v2.6.0
[INFO] [stderr]    Compiling linked-hash-map v0.5.6
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling libc v0.2.161
[INFO] [stderr]    Compiling rust-sitter-macro v0.4.3 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling console v0.15.8
[INFO] [stderr]    Compiling insta v1.41.1
[INFO] [stderr]    Compiling tempfile v3.13.0
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.30s
[INFO] running `Command { std: "docker" "inspect" "69efe1780897f39914dce6f8214f4013985958a986150c45a3b03da84235dbce", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "69efe1780897f39914dce6f8214f4013985958a986150c45a3b03da84235dbce", kill_on_drop: false }`
[INFO] [stdout] 69efe1780897f39914dce6f8214f4013985958a986150c45a3b03da84235dbce
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] d6d2c47b04887b3df4bf640b2865d53295780b96c6270e3c809d0587cd26543c
[INFO] running `Command { std: "docker" "start" "-a" "d6d2c47b04887b3df4bf640b2865d53295780b96c6270e3c809d0587cd26543c", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_sitter_macro-3446c9fa88d20e22)
[INFO] [stdout] 
[INFO] [stdout] running 10 tests
[INFO] [stderr] error: error: 'rustfmt' is not installed for the toolchain 'nightly-2024-10-28-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] 'rustfmt' is not installed for the toolchain 'nightly-2024-10-28-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: error: 'rustfmt' is not installed for the toolchain 'nightly-2024-10-28-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] 'rustfmt' is not installed for the toolchain 'nightly-2024-10-28-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'nightly-2024-10-28-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'nightly-2024-10-28-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'nightly-2024-10-28-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'nightly-2024-10-28-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'nightly-2024-10-28-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stderr] error: 'rustfmt' is not installed for the toolchain 'nightly-2024-10-28-x86_64-unknown-linux-gnu'.
[INFO] [stderr] To install, run `rustup component add --toolchain nightly-2024-10-28-x86_64-unknown-linux-gnu rustfmt`
[INFO] [stdout] test tests::enum_prec_left ... FAILED
[INFO] [stdout] test tests::enum_recursive ... FAILED
[INFO] [stdout] test tests::struct_extra ... FAILED
[INFO] [stdout] test tests::enum_with_named_field ... FAILED
[INFO] [stdout] test tests::enum_transformed_fields ... FAILED
[INFO] [stdout] test tests::enum_with_unamed_vector ... FAILED
[INFO] [stdout] test tests::struct_repeat ... FAILED
[INFO] [stdout] test tests::struct_optional ... FAILED
[INFO] [stdout] test tests::spanned_in_vec ... FAILED
[INFO] [stdout] test tests::grammar_unboxed_field ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- tests::enum_prec_left stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__enum_prec_left.snap
[INFO] [stdout] Snapshot: enum_prec_left
[INFO] [stdout] Source: src/lib.rs:312
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     #[rust_sitter::grammar("test")] mod grammar
[INFO] [stdout]     {
[INFO] [stdout]         #[rust_sitter::language] pub enum Expression
[INFO] [stdout]         {
[INFO] [stdout]             Number(#[rust_sitter::leaf(pattern = r"\d+", transform = |v|
[INFO] [stdout]             v.parse().unwrap())] i32), #[rust_sitter::prec_left(1)]
[INFO] [stdout]             Sub(Box<Expression>, #[rust_sitter::leaf(text = "-")] (),
[INFO] [stdout]             Box<Expression>),
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] })? .to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub enum Expression {
[INFO] [stdout]     2       │-        Number(i32),
[INFO] [stdout]     3       │-        Sub(Box<Expression>, (), Box<Expression>),
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl ::rust_sitter::Extract<Expression> for Expression {
[INFO] [stdout]     6       │-        type LeafFn = ();
[INFO] [stdout]     7       │-        #[allow(non_snake_case)]
[INFO] [stdout]     8       │-        fn extract(
[INFO] [stdout]     9       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    10       │-            source: &[u8],
[INFO] [stdout]    11       │-            _last_idx: usize,
[INFO] [stdout]    12       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    13       │-        ) -> Self {
[INFO] [stdout]    14       │-            let node = node.unwrap();
[INFO] [stdout]    15       │-            let mut cursor = node.walk();
[INFO] [stdout]    16       │-            assert!(
[INFO] [stdout]    17       │-                cursor.goto_first_child(),
[INFO] [stdout]    18       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    19       │-            );
[INFO] [stdout]    20       │-            loop {
[INFO] [stdout]    21       │-                let node = cursor.node();
[INFO] [stdout]    22       │-                match node.kind() {
[INFO] [stdout]    23       │-                    "Expression_Number" => {
[INFO] [stdout]    24       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    25       │-                            node,
[INFO] [stdout]    26       │-                            move |cursor, last_idx| {
[INFO] [stdout]    27       │-                                Expression::Number({
[INFO] [stdout]    28       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    29       │-                                        rust_sitter::WithLeaf<i32>,
[INFO] [stdout]    30       │-                                        _,
[INFO] [stdout]    31       │-                                    >(
[INFO] [stdout]    32       │-                                        cursor, source, last_idx, "0", Some(&|v| v.parse().unwrap())
[INFO] [stdout]    33       │-                                    )
[INFO] [stdout]    34       │-                                })
[INFO] [stdout]    35       │-                            },
[INFO] [stdout]    36       │-                        )
[INFO] [stdout]    37       │-                    }
[INFO] [stdout]    38       │-                    "Expression_Sub" => {
[INFO] [stdout]    39       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    40       │-                            node,
[INFO] [stdout]    41       │-                            move |cursor, last_idx| {
[INFO] [stdout]    42       │-                                Expression::Sub(
[INFO] [stdout]    43       │-                                    {
[INFO] [stdout]    44       │-                                        ::rust_sitter::__private::extract_field::<Box<Expression>, _>(
[INFO] [stdout]    45       │-                                            cursor, source, last_idx, "0", None,
[INFO] [stdout]    46       │-                                        )
[INFO] [stdout]    47       │-                                    },
[INFO] [stdout]    48       │-                                    {
[INFO] [stdout]    49       │-                                        ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    50       │-                                            cursor, source, last_idx, "1", None,
[INFO] [stdout]    51       │-                                        )
[INFO] [stdout]    52       │-                                    },
[INFO] [stdout]    53       │-                                    {
[INFO] [stdout]    54       │-                                        ::rust_sitter::__private::extract_field::<Box<Expression>, _>(
[INFO] [stdout]    55       │-                                            cursor, source, last_idx, "2", None,
[INFO] [stdout]    56       │-                                        )
[INFO] [stdout]    57       │-                                    },
[INFO] [stdout]    58       │-                                )
[INFO] [stdout]    59       │-                            },
[INFO] [stdout]    60       │-                        )
[INFO] [stdout]    61       │-                    }
[INFO] [stdout]    62       │-                    _ => {
[INFO] [stdout]    63       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    64       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    65       │-                        }
[INFO] [stdout]    66       │-                    }
[INFO] [stdout]    67       │-                }
[INFO] [stdout]    68       │-            }
[INFO] [stdout]    69       │-        }
[INFO] [stdout]    70       │-    }
[INFO] [stdout]    71       │-    extern "C" {
[INFO] [stdout]    72       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    73       │-    }
[INFO] [stdout]    74       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    75       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    76       │-    }
[INFO] [stdout]    77       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    78       │-    #[doc = "[`Expression`]"]
[INFO] [stdout]    79       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    80       │-    pub fn parse(
[INFO] [stdout]    81       │-        input: &str,
[INFO] [stdout]    82       │-    ) -> core::result::Result<Expression, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    83       │-        ::rust_sitter::__private::parse::<Expression>(input, language)
[INFO] [stdout]    84       │-    }
[INFO] [stdout]    85       │-}
[INFO] [stdout]           0 │+mod grammar { pub enum Expression { Number (i32) , Sub (Box < Expression > , () , Box < Expression >) , } impl :: rust_sitter :: Extract < Expression > for Expression { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expression_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "0" , Some (& | v | v . parse () . unwrap ())) })) , "Expression_Sub" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Sub ({ :: rust_sitter :: __private :: extract_field :: < Box < Expression > , _ > (cursor , source , last_idx , "0" , None) } , { :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "1" , None) } , { :: rust_sitter :: __private :: extract_field :: < Box < Expression > , _ > (cursor , source , last_idx , "2" , None) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expression`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expression , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expression > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::enum_prec_left' panicked at src/lib.rs:312:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/rust_sitter_macro__tests__enum_prec_left.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7ef7cc15e60a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7ef7cc15e60a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7ef7cc1aebb3 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7ef7cc1aebb3 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x7ef7cc151fa3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7ef7cc15e452 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7ef7cc160a8a - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7ef7cc160894 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x62d156cfccc9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x62d156cfccc9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7ef7cc1611f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7ef7cc1611f8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7ef7cc160fba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7ef7cc15eae9 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7ef7cc160c4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7ef7cc1aafc0 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x7ef7cc1ab546 - core::result::unwrap_failed::h5e8218e4d4338b8a
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1698:5
[INFO] [stdout]   19:     0x62d156ba9ca0 - core::result::Result<T,E>::unwrap::hbaf37dc60a85e103
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1103:23
[INFO] [stdout]   20:     0x62d156ba9ca0 - rust_sitter_macro::tests::enum_prec_left::hae4c8dc3a3d5dab2
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:312:9
[INFO] [stdout]   21:     0x62d156ba886d - rust_sitter_macro::tests::enum_prec_left::{{closure}}::ha3dd0cc916089108
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:311:28
[INFO] [stdout]   22:     0x62d156bbcc46 - core::ops::function::FnOnce::call_once::h77685510d36649e8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x62d156d0159b - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x62d156d0159b - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x62d156d00f17 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x62d156d00f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x62d156d00f17 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x62d156d00f17 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x62d156d00f17 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x62d156d00f17 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x62d156d00f17 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x62d156cc4634 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x62d156cc4634 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x62d156cc7dde - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x62d156cc7dde - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x62d156cc7dde - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x62d156cc7dde - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x62d156cc7dde - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7ef7cc16ad2b - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7ef7cbddeac3 - <unknown>
[INFO] [stdout]   45:     0x7ef7cbe6fa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::enum_recursive stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__enum_recursive.snap
[INFO] [stdout] Snapshot: enum_recursive
[INFO] [stdout] Source: src/lib.rs:285
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     #[rust_sitter::grammar("test")] mod grammar
[INFO] [stdout]     {
[INFO] [stdout]         #[rust_sitter::language] pub enum Expression
[INFO] [stdout]         {
[INFO] [stdout]             Number(#[rust_sitter::leaf(pattern = r"\d+", transform = |v|
[INFO] [stdout]             v.parse().unwrap())] i32),
[INFO] [stdout]             Neg(#[rust_sitter::leaf(text = "-")] (), Box<Expression>),
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] })? .to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub enum Expression {
[INFO] [stdout]     2       │-        Number(i32),
[INFO] [stdout]     3       │-        Neg((), Box<Expression>),
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl ::rust_sitter::Extract<Expression> for Expression {
[INFO] [stdout]     6       │-        type LeafFn = ();
[INFO] [stdout]     7       │-        #[allow(non_snake_case)]
[INFO] [stdout]     8       │-        fn extract(
[INFO] [stdout]     9       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    10       │-            source: &[u8],
[INFO] [stdout]    11       │-            _last_idx: usize,
[INFO] [stdout]    12       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    13       │-        ) -> Self {
[INFO] [stdout]    14       │-            let node = node.unwrap();
[INFO] [stdout]    15       │-            let mut cursor = node.walk();
[INFO] [stdout]    16       │-            assert!(
[INFO] [stdout]    17       │-                cursor.goto_first_child(),
[INFO] [stdout]    18       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    19       │-            );
[INFO] [stdout]    20       │-            loop {
[INFO] [stdout]    21       │-                let node = cursor.node();
[INFO] [stdout]    22       │-                match node.kind() {
[INFO] [stdout]    23       │-                    "Expression_Number" => {
[INFO] [stdout]    24       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    25       │-                            node,
[INFO] [stdout]    26       │-                            move |cursor, last_idx| {
[INFO] [stdout]    27       │-                                Expression::Number({
[INFO] [stdout]    28       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    29       │-                                        rust_sitter::WithLeaf<i32>,
[INFO] [stdout]    30       │-                                        _,
[INFO] [stdout]    31       │-                                    >(
[INFO] [stdout]    32       │-                                        cursor, source, last_idx, "0", Some(&|v| v.parse().unwrap())
[INFO] [stdout]    33       │-                                    )
[INFO] [stdout]    34       │-                                })
[INFO] [stdout]    35       │-                            },
[INFO] [stdout]    36       │-                        )
[INFO] [stdout]    37       │-                    }
[INFO] [stdout]    38       │-                    "Expression_Neg" => {
[INFO] [stdout]    39       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    40       │-                            node,
[INFO] [stdout]    41       │-                            move |cursor, last_idx| {
[INFO] [stdout]    42       │-                                Expression::Neg(
[INFO] [stdout]    43       │-                                    {
[INFO] [stdout]    44       │-                                        ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    45       │-                                            cursor, source, last_idx, "0", None,
[INFO] [stdout]    46       │-                                        )
[INFO] [stdout]    47       │-                                    },
[INFO] [stdout]    48       │-                                    {
[INFO] [stdout]    49       │-                                        ::rust_sitter::__private::extract_field::<Box<Expression>, _>(
[INFO] [stdout]    50       │-                                            cursor, source, last_idx, "1", None,
[INFO] [stdout]    51       │-                                        )
[INFO] [stdout]    52       │-                                    },
[INFO] [stdout]    53       │-                                )
[INFO] [stdout]    54       │-                            },
[INFO] [stdout]    55       │-                        )
[INFO] [stdout]    56       │-                    }
[INFO] [stdout]    57       │-                    _ => {
[INFO] [stdout]    58       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    59       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    60       │-                        }
[INFO] [stdout]    61       │-                    }
[INFO] [stdout]    62       │-                }
[INFO] [stdout]    63       │-            }
[INFO] [stdout]    64       │-        }
[INFO] [stdout]    65       │-    }
[INFO] [stdout]    66       │-    extern "C" {
[INFO] [stdout]    67       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    68       │-    }
[INFO] [stdout]    69       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    70       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    71       │-    }
[INFO] [stdout]    72       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    73       │-    #[doc = "[`Expression`]"]
[INFO] [stdout]    74       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    75       │-    pub fn parse(
[INFO] [stdout]    76       │-        input: &str,
[INFO] [stdout]    77       │-    ) -> core::result::Result<Expression, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    78       │-        ::rust_sitter::__private::parse::<Expression>(input, language)
[INFO] [stdout]    79       │-    }
[INFO] [stdout]    80       │-}
[INFO] [stdout]           0 │+mod grammar { pub enum Expression { Number (i32) , Neg (() , Box < Expression >) , } impl :: rust_sitter :: Extract < Expression > for Expression { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expression_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "0" , Some (& | v | v . parse () . unwrap ())) })) , "Expression_Neg" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Neg ({ :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "0" , None) } , { :: rust_sitter :: __private :: extract_field :: < Box < Expression > , _ > (cursor , source , last_idx , "1" , None) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expression`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expression , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expression > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::enum_recursive' panicked at src/lib.rs:285:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/rust_sitter_macro__tests__enum_recursive.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7ef7cc15e60a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7ef7cc15e60a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7ef7cc1aebb3 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7ef7cc1aebb3 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x7ef7cc151fa3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7ef7cc15e452 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7ef7cc160a8a - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7ef7cc160894 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x62d156cfccc9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x62d156cfccc9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7ef7cc1611f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7ef7cc1611f8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7ef7cc160fba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7ef7cc15eae9 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7ef7cc160c4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7ef7cc1aafc0 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x7ef7cc1ab546 - core::result::unwrap_failed::h5e8218e4d4338b8a
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1698:5
[INFO] [stdout]   19:     0x62d156ba85df - core::result::Result<T,E>::unwrap::hbaf37dc60a85e103
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1103:23
[INFO] [stdout]   20:     0x62d156ba85df - rust_sitter_macro::tests::enum_recursive::h63dcaaa333343bd3
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:285:9
[INFO] [stdout]   21:     0x62d156ba73bd - rust_sitter_macro::tests::enum_recursive::{{closure}}::h12a5b3b888d4ddfc
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:284:28
[INFO] [stdout]   22:     0x62d156bbcb46 - core::ops::function::FnOnce::call_once::h400badf6cfe59135
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x62d156d0159b - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x62d156d0159b - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x62d156d00f17 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x62d156d00f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x62d156d00f17 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x62d156d00f17 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x62d156d00f17 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x62d156d00f17 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x62d156d00f17 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x62d156cc4634 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x62d156cc4634 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x62d156cc7dde - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x62d156cc7dde - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x62d156cc7dde - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x62d156cc7dde - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x62d156cc7dde - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7ef7cc16ad2b - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7ef7cbddeac3 - <unknown>
[INFO] [stdout]   45:     0x7ef7cbe6fa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::struct_extra stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__struct_extra.snap
[INFO] [stdout] Snapshot: struct_extra
[INFO] [stdout] Source: src/lib.rs:341
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     #[rust_sitter::grammar("test")] mod grammar
[INFO] [stdout]     {
[INFO] [stdout]         #[rust_sitter::language] pub enum Expression
[INFO] [stdout]         {
[INFO] [stdout]             Number(#[rust_sitter::leaf(pattern = r"\d+", transform = |v|
[INFO] [stdout]             v.parse().unwrap())] i32,),
[INFO] [stdout]         } #[rust_sitter::extra] struct Whitespace
[INFO] [stdout]         { #[rust_sitter::leaf(pattern = r"\s")] _whitespace: (), }
[INFO] [stdout]     }
[INFO] [stdout] })? .to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub enum Expression {
[INFO] [stdout]     2       │-        Number(i32),
[INFO] [stdout]     3       │-    }
[INFO] [stdout]     4       │-    impl ::rust_sitter::Extract<Expression> for Expression {
[INFO] [stdout]     5       │-        type LeafFn = ();
[INFO] [stdout]     6       │-        #[allow(non_snake_case)]
[INFO] [stdout]     7       │-        fn extract(
[INFO] [stdout]     8       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]     9       │-            source: &[u8],
[INFO] [stdout]    10       │-            _last_idx: usize,
[INFO] [stdout]    11       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    12       │-        ) -> Self {
[INFO] [stdout]    13       │-            let node = node.unwrap();
[INFO] [stdout]    14       │-            let mut cursor = node.walk();
[INFO] [stdout]    15       │-            assert!(
[INFO] [stdout]    16       │-                cursor.goto_first_child(),
[INFO] [stdout]    17       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    18       │-            );
[INFO] [stdout]    19       │-            loop {
[INFO] [stdout]    20       │-                let node = cursor.node();
[INFO] [stdout]    21       │-                match node.kind() {
[INFO] [stdout]    22       │-                    "Expression_Number" => {
[INFO] [stdout]    23       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    24       │-                            node,
[INFO] [stdout]    25       │-                            move |cursor, last_idx| {
[INFO] [stdout]    26       │-                                Expression::Number({
[INFO] [stdout]    27       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    28       │-                                        rust_sitter::WithLeaf<i32>,
[INFO] [stdout]    29       │-                                        _,
[INFO] [stdout]    30       │-                                    >(
[INFO] [stdout]    31       │-                                        cursor, source, last_idx, "0", Some(&|v| v.parse().unwrap())
[INFO] [stdout]    32       │-                                    )
[INFO] [stdout]    33       │-                                })
[INFO] [stdout]    34       │-                            },
[INFO] [stdout]    35       │-                        )
[INFO] [stdout]    36       │-                    }
[INFO] [stdout]    37       │-                    _ => {
[INFO] [stdout]    38       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    39       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    40       │-                        }
[INFO] [stdout]    41       │-                    }
[INFO] [stdout]    42       │-                }
[INFO] [stdout]    43       │-            }
[INFO] [stdout]    44       │-        }
[INFO] [stdout]    45       │-    }
[INFO] [stdout]    46       │-    struct Whitespace {
[INFO] [stdout]    47       │-        _whitespace: (),
[INFO] [stdout]    48       │-    }
[INFO] [stdout]    49       │-    impl ::rust_sitter::Extract<Whitespace> for Whitespace {
[INFO] [stdout]    50       │-        type LeafFn = ();
[INFO] [stdout]    51       │-        #[allow(non_snake_case)]
[INFO] [stdout]    52       │-        fn extract(
[INFO] [stdout]    53       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    54       │-            source: &[u8],
[INFO] [stdout]    55       │-            last_idx: usize,
[INFO] [stdout]    56       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    57       │-        ) -> Self {
[INFO] [stdout]    58       │-            let node = node.unwrap();
[INFO] [stdout]    59       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    60       │-                Whitespace {
[INFO] [stdout]    61       │-                    _whitespace: {
[INFO] [stdout]    62       │-                        ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    63       │-                            cursor,
[INFO] [stdout]    64       │-                            source,
[INFO] [stdout]    65       │-                            last_idx,
[INFO] [stdout]    66       │-                            "_whitespace",
[INFO] [stdout]    67       │-                            None,
[INFO] [stdout]    68       │-                        )
[INFO] [stdout]    69       │-                    },
[INFO] [stdout]    70       │-                }
[INFO] [stdout]    71       │-            })
[INFO] [stdout]    72       │-        }
[INFO] [stdout]    73       │-    }
[INFO] [stdout]    74       │-    extern "C" {
[INFO] [stdout]    75       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    76       │-    }
[INFO] [stdout]    77       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    78       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    79       │-    }
[INFO] [stdout]    80       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    81       │-    #[doc = "[`Expression`]"]
[INFO] [stdout]    82       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    83       │-    pub fn parse(
[INFO] [stdout]    84       │-        input: &str,
[INFO] [stdout]    85       │-    ) -> core::result::Result<Expression, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    86       │-        ::rust_sitter::__private::parse::<Expression>(input, language)
[INFO] [stdout]    87       │-    }
[INFO] [stdout]    88       │-}
[INFO] [stdout]           0 │+mod grammar { pub enum Expression { Number (i32 ,) , } impl :: rust_sitter :: Extract < Expression > for Expression { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expression_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "0" , Some (& | v | v . parse () . unwrap ())) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } struct Whitespace { _whitespace : () , } impl :: rust_sitter :: Extract < Whitespace > for Whitespace { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Whitespace { _whitespace : { :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "_whitespace" , None) } }) } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expression`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expression , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expression > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::struct_extra' panicked at src/lib.rs:341:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/rust_sitter_macro__tests__struct_extra.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7ef7cc15e60a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7ef7cc15e60a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7ef7cc1aebb3 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7ef7cc1aebb3 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x7ef7cc151fa3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7ef7cc15e452 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7ef7cc160a8a - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7ef7cc160894 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x62d156cfccc9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x62d156cfccc9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7ef7cc1611f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7ef7cc1611f8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7ef7cc160fba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7ef7cc15eae9 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7ef7cc160c4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7ef7cc1aafc0 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x7ef7cc1ab546 - core::result::unwrap_failed::h5e8218e4d4338b8a
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1698:5
[INFO] [stdout]   19:     0x62d156bab22a - core::result::Result<T,E>::unwrap::hbaf37dc60a85e103
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1103:23
[INFO] [stdout]   20:     0x62d156bab22a - rust_sitter_macro::tests::struct_extra::h30997125f511d964
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:341:9
[INFO] [stdout]   21:     0x62d156ba9f2d - rust_sitter_macro::tests::struct_extra::{{closure}}::hbf9b48d11e21e8c9
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:340:26
[INFO] [stdout]   22:     0x62d156bbceb6 - core::ops::function::FnOnce::call_once::hf2c382d69118b14f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x62d156d0159b - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x62d156d0159b - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x62d156d00f17 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x62d156d00f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x62d156d00f17 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x62d156d00f17 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x62d156d00f17 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x62d156d00f17 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x62d156d00f17 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x62d156cc4634 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x62d156cc4634 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x62d156cc7dde - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x62d156cc7dde - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x62d156cc7dde - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x62d156cc7dde - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x62d156cc7dde - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7ef7cc16ad2b - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7ef7cbddeac3 - <unknown>
[INFO] [stdout]   45:     0x7ef7cbe6fa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::enum_with_named_field stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__enum_with_named_field.snap
[INFO] [stdout] Snapshot: enum_with_named_field
[INFO] [stdout] Source: src/lib.rs:477
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     #[rust_sitter::grammar("test")] mod grammar
[INFO] [stdout]     {
[INFO] [stdout]         #[rust_sitter::language] pub enum Expr
[INFO] [stdout]         {
[INFO] [stdout]             Number(#[rust_sitter::leaf(pattern = r"\d+", transform = |v|
[INFO] [stdout]             v.parse().unwrap())] u32), Neg
[INFO] [stdout]             { #[rust_sitter::leaf(text = "!")] _bang: (), value: Box<Expr>, }
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] })? .to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub enum Expr {
[INFO] [stdout]     2       │-        Number(u32),
[INFO] [stdout]     3       │-        Neg { _bang: (), value: Box<Expr> },
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl ::rust_sitter::Extract<Expr> for Expr {
[INFO] [stdout]     6       │-        type LeafFn = ();
[INFO] [stdout]     7       │-        #[allow(non_snake_case)]
[INFO] [stdout]     8       │-        fn extract(
[INFO] [stdout]     9       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    10       │-            source: &[u8],
[INFO] [stdout]    11       │-            _last_idx: usize,
[INFO] [stdout]    12       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    13       │-        ) -> Self {
[INFO] [stdout]    14       │-            let node = node.unwrap();
[INFO] [stdout]    15       │-            let mut cursor = node.walk();
[INFO] [stdout]    16       │-            assert!(
[INFO] [stdout]    17       │-                cursor.goto_first_child(),
[INFO] [stdout]    18       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    19       │-            );
[INFO] [stdout]    20       │-            loop {
[INFO] [stdout]    21       │-                let node = cursor.node();
[INFO] [stdout]    22       │-                match node.kind() {
[INFO] [stdout]    23       │-                    "Expr_Number" => {
[INFO] [stdout]    24       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    25       │-                            node,
[INFO] [stdout]    26       │-                            move |cursor, last_idx| {
[INFO] [stdout]    27       │-                                Expr::Number({
[INFO] [stdout]    28       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    29       │-                                        rust_sitter::WithLeaf<u32>,
[INFO] [stdout]    30       │-                                        _,
[INFO] [stdout]    31       │-                                    >(
[INFO] [stdout]    32       │-                                        cursor, source, last_idx, "0", Some(&|v| v.parse().unwrap())
[INFO] [stdout]    33       │-                                    )
[INFO] [stdout]    34       │-                                })
[INFO] [stdout]    35       │-                            },
[INFO] [stdout]    36       │-                        )
[INFO] [stdout]    37       │-                    }
[INFO] [stdout]    38       │-                    "Expr_Neg" => {
[INFO] [stdout]    39       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    40       │-                            node,
[INFO] [stdout]    41       │-                            move |cursor, last_idx| Expr::Neg {
[INFO] [stdout]    42       │-                                _bang: {
[INFO] [stdout]    43       │-                                    ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    44       │-                                        cursor, source, last_idx, "_bang", None,
[INFO] [stdout]    45       │-                                    )
[INFO] [stdout]    46       │-                                },
[INFO] [stdout]    47       │-                                value: {
[INFO] [stdout]    48       │-                                    ::rust_sitter::__private::extract_field::<Box<Expr>, _>(
[INFO] [stdout]    49       │-                                        cursor, source, last_idx, "value", None,
[INFO] [stdout]    50       │-                                    )
[INFO] [stdout]    51       │-                                },
[INFO] [stdout]    52       │-                            },
[INFO] [stdout]    53       │-                        )
[INFO] [stdout]    54       │-                    }
[INFO] [stdout]    55       │-                    _ => {
[INFO] [stdout]    56       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    57       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    58       │-                        }
[INFO] [stdout]    59       │-                    }
[INFO] [stdout]    60       │-                }
[INFO] [stdout]    61       │-            }
[INFO] [stdout]    62       │-        }
[INFO] [stdout]    63       │-    }
[INFO] [stdout]    64       │-    extern "C" {
[INFO] [stdout]    65       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    66       │-    }
[INFO] [stdout]    67       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    68       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    69       │-    }
[INFO] [stdout]    70       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    71       │-    #[doc = "[`Expr`]"]
[INFO] [stdout]    72       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    73       │-    pub fn parse(
[INFO] [stdout]    74       │-        input: &str,
[INFO] [stdout]    75       │-    ) -> core::result::Result<Expr, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    76       │-        ::rust_sitter::__private::parse::<Expr>(input, language)
[INFO] [stdout]    77       │-    }
[INFO] [stdout]    78       │-}
[INFO] [stdout]           0 │+mod grammar { pub enum Expr { Number (u32) , Neg { _bang : () , value : Box < Expr > , } } impl :: rust_sitter :: Extract < Expr > for Expr { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expr_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expr :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < u32 > , _ > (cursor , source , last_idx , "0" , Some (& | v | v . parse () . unwrap ())) })) , "Expr_Neg" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expr :: Neg { _bang : { :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "_bang" , None) } , value : { :: rust_sitter :: __private :: extract_field :: < Box < Expr > , _ > (cursor , source , last_idx , "value" , None) } }) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expr`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expr , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expr > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::enum_with_named_field' panicked at src/lib.rs:477:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/rust_sitter_macro__tests__enum_with_named_field.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7ef7cc15e60a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7ef7cc15e60a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7ef7cc1aebb3 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7ef7cc1aebb3 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x7ef7cc151fa3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7ef7cc15e452 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7ef7cc160a8a - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7ef7cc160894 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x62d156cfccc9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x62d156cfccc9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7ef7cc1611f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7ef7cc1611f8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7ef7cc160fba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7ef7cc15eae9 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7ef7cc160c4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7ef7cc1aafc0 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x7ef7cc1ab546 - core::result::unwrap_failed::h5e8218e4d4338b8a
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1698:5
[INFO] [stdout]   19:     0x62d156bb1c53 - core::result::Result<T,E>::unwrap::hbaf37dc60a85e103
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1103:23
[INFO] [stdout]   20:     0x62d156bb1c53 - rust_sitter_macro::tests::enum_with_named_field::h2f9d065e22c95ac4
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:477:9
[INFO] [stdout]   21:     0x62d156bb09cd - rust_sitter_macro::tests::enum_with_named_field::{{closure}}::ha07a1d5dea496159
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:476:35
[INFO] [stdout]   22:     0x62d156bbcc06 - core::ops::function::FnOnce::call_once::h672e1b2ab785c140
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x62d156d0159b - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x62d156d0159b - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x62d156d00f17 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x62d156d00f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x62d156d00f17 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x62d156d00f17 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x62d156d00f17 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x62d156d00f17 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x62d156d00f17 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x62d156cc4634 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x62d156cc4634 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x62d156cc7dde - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x62d156cc7dde - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x62d156cc7dde - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x62d156cc7dde - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x62d156cc7dde - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7ef7cc16ad2b - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7ef7cbddeac3 - <unknown>
[INFO] [stdout]   45:     0x7ef7cbe6fa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::enum_transformed_fields stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__enum_transformed_fields.snap
[INFO] [stdout] Snapshot: enum_transformed_fields
[INFO] [stdout] Source: src/lib.rs:263
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     #[rust_sitter::grammar("test")] mod grammar
[INFO] [stdout]     {
[INFO] [stdout]         #[rust_sitter::language] pub enum Expression
[INFO] [stdout]         {
[INFO] [stdout]             Number(#[rust_sitter::leaf(pattern = r"\d+", transform = |v|
[INFO] [stdout]             v.parse::<i32>().unwrap())] i32),
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] })? .to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub enum Expression {
[INFO] [stdout]     2       │-        Number(i32),
[INFO] [stdout]     3       │-    }
[INFO] [stdout]     4       │-    impl ::rust_sitter::Extract<Expression> for Expression {
[INFO] [stdout]     5       │-        type LeafFn = ();
[INFO] [stdout]     6       │-        #[allow(non_snake_case)]
[INFO] [stdout]     7       │-        fn extract(
[INFO] [stdout]     8       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]     9       │-            source: &[u8],
[INFO] [stdout]    10       │-            _last_idx: usize,
[INFO] [stdout]    11       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    12       │-        ) -> Self {
[INFO] [stdout]    13       │-            let node = node.unwrap();
[INFO] [stdout]    14       │-            let mut cursor = node.walk();
[INFO] [stdout]    15       │-            assert!(
[INFO] [stdout]    16       │-                cursor.goto_first_child(),
[INFO] [stdout]    17       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    18       │-            );
[INFO] [stdout]    19       │-            loop {
[INFO] [stdout]    20       │-                let node = cursor.node();
[INFO] [stdout]    21       │-                match node.kind() {
[INFO] [stdout]    22       │-                    "Expression_Number" => {
[INFO] [stdout]    23       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    24       │-                            node,
[INFO] [stdout]    25       │-                            move |cursor, last_idx| {
[INFO] [stdout]    26       │-                                Expression::Number({
[INFO] [stdout]    27       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    28       │-                                        rust_sitter::WithLeaf<i32>,
[INFO] [stdout]    29       │-                                        _,
[INFO] [stdout]    30       │-                                    >(
[INFO] [stdout]    31       │-                                        cursor,
[INFO] [stdout]    32       │-                                        source,
[INFO] [stdout]    33       │-                                        last_idx,
[INFO] [stdout]    34       │-                                        "0",
[INFO] [stdout]    35       │-                                        Some(&|v| v.parse::<i32>().unwrap()),
[INFO] [stdout]    36       │-                                    )
[INFO] [stdout]    37       │-                                })
[INFO] [stdout]    38       │-                            },
[INFO] [stdout]    39       │-                        )
[INFO] [stdout]    40       │-                    }
[INFO] [stdout]    41       │-                    _ => {
[INFO] [stdout]    42       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    43       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    44       │-                        }
[INFO] [stdout]    45       │-                    }
[INFO] [stdout]    46       │-                }
[INFO] [stdout]    47       │-            }
[INFO] [stdout]    48       │-        }
[INFO] [stdout]    49       │-    }
[INFO] [stdout]    50       │-    extern "C" {
[INFO] [stdout]    51       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    52       │-    }
[INFO] [stdout]    53       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    54       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    55       │-    }
[INFO] [stdout]    56       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    57       │-    #[doc = "[`Expression`]"]
[INFO] [stdout]    58       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    59       │-    pub fn parse(
[INFO] [stdout]    60       │-        input: &str,
[INFO] [stdout]    61       │-    ) -> core::result::Result<Expression, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    62       │-        ::rust_sitter::__private::parse::<Expression>(input, language)
[INFO] [stdout]    63       │-    }
[INFO] [stdout]    64       │-}
[INFO] [stdout]           0 │+mod grammar { pub enum Expression { Number (i32) , } impl :: rust_sitter :: Extract < Expression > for Expression { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expression_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "0" , Some (& | v | v . parse :: < i32 > () . unwrap ())) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expression`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expression , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expression > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::enum_transformed_fields' panicked at src/lib.rs:263:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/rust_sitter_macro__tests__enum_transformed_fields.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7ef7cc15e60a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7ef7cc15e60a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7ef7cc1aebb3 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7ef7cc1aebb3 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x7ef7cc151fa3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7ef7cc15e452 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7ef7cc160a8a - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7ef7cc160894 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x62d156cfccc9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x62d156cfccc9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7ef7cc1611f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7ef7cc1611f8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7ef7cc160fba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7ef7cc15eae9 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7ef7cc160c4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7ef7cc1aafc0 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x7ef7cc1ab546 - core::result::unwrap_failed::h5e8218e4d4338b8a
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1698:5
[INFO] [stdout]   19:     0x62d156ba7130 - core::result::Result<T,E>::unwrap::hbaf37dc60a85e103
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1103:23
[INFO] [stdout]   20:     0x62d156ba7130 - rust_sitter_macro::tests::enum_transformed_fields::h106104e00c1bd806
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:263:9
[INFO] [stdout]   21:     0x62d156ba61ed - rust_sitter_macro::tests::enum_transformed_fields::{{closure}}::h2915c86664fef069
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:262:37
[INFO] [stdout]   22:     0x62d156bbcbc6 - core::ops::function::FnOnce::call_once::h610b67ccdf4693ef
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x62d156d0159b - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x62d156d0159b - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x62d156d00f17 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x62d156d00f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x62d156d00f17 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x62d156d00f17 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x62d156d00f17 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x62d156d00f17 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x62d156d00f17 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x62d156cc4634 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x62d156cc4634 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x62d156cc7dde - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x62d156cc7dde - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x62d156cc7dde - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x62d156cc7dde - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x62d156cc7dde - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7ef7cc16ad2b - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7ef7cbddeac3 - <unknown>
[INFO] [stdout]   45:     0x7ef7cbe6fa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::enum_with_unamed_vector stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__enum_with_unamed_vector.snap
[INFO] [stdout] Snapshot: enum_with_unamed_vector
[INFO] [stdout] Source: src/lib.rs:450
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     #[rust_sitter::grammar("test")] mod grammar
[INFO] [stdout]     {
[INFO] [stdout]         pub struct Number
[INFO] [stdout]         {
[INFO] [stdout]             #[rust_sitter::leaf(pattern = r"\d+", transform = |v|
[INFO] [stdout]             v.parse().unwrap())] value: u32
[INFO] [stdout]         } #[rust_sitter::language] pub enum Expr
[INFO] [stdout]         { Numbers(#[rust_sitter::repeat(non_empty = true)] Vec<Number>) }
[INFO] [stdout]     }
[INFO] [stdout] })? .to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub struct Number {
[INFO] [stdout]     2       │-        value: u32,
[INFO] [stdout]     3       │-    }
[INFO] [stdout]     4       │-    impl ::rust_sitter::Extract<Number> for Number {
[INFO] [stdout]     5       │-        type LeafFn = ();
[INFO] [stdout]     6       │-        #[allow(non_snake_case)]
[INFO] [stdout]     7       │-        fn extract(
[INFO] [stdout]     8       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]     9       │-            source: &[u8],
[INFO] [stdout]    10       │-            last_idx: usize,
[INFO] [stdout]    11       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    12       │-        ) -> Self {
[INFO] [stdout]    13       │-            let node = node.unwrap();
[INFO] [stdout]    14       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    15       │-                Number {
[INFO] [stdout]    16       │-                    value: {
[INFO] [stdout]    17       │-                        ::rust_sitter::__private::extract_field::<rust_sitter::WithLeaf<u32>, _>(
[INFO] [stdout]    18       │-                            cursor,
[INFO] [stdout]    19       │-                            source,
[INFO] [stdout]    20       │-                            last_idx,
[INFO] [stdout]    21       │-                            "value",
[INFO] [stdout]    22       │-                            Some(&|v| v.parse().unwrap()),
[INFO] [stdout]    23       │-                        )
[INFO] [stdout]    24       │-                    },
[INFO] [stdout]    25       │-                }
[INFO] [stdout]    26       │-            })
[INFO] [stdout]    27       │-        }
[INFO] [stdout]    28       │-    }
[INFO] [stdout]    29       │-    pub enum Expr {
[INFO] [stdout]    30       │-        Numbers(Vec<Number>),
[INFO] [stdout]    31       │-    }
[INFO] [stdout]    32       │-    impl ::rust_sitter::Extract<Expr> for Expr {
[INFO] [stdout]    33       │-        type LeafFn = ();
[INFO] [stdout]    34       │-        #[allow(non_snake_case)]
[INFO] [stdout]    35       │-        fn extract(
[INFO] [stdout]    36       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    37       │-            source: &[u8],
[INFO] [stdout]    38       │-            _last_idx: usize,
[INFO] [stdout]    39       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    40       │-        ) -> Self {
[INFO] [stdout]    41       │-            let node = node.unwrap();
[INFO] [stdout]    42       │-            let mut cursor = node.walk();
[INFO] [stdout]    43       │-            assert!(
[INFO] [stdout]    44       │-                cursor.goto_first_child(),
[INFO] [stdout]    45       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    46       │-            );
[INFO] [stdout]    47       │-            loop {
[INFO] [stdout]    48       │-                let node = cursor.node();
[INFO] [stdout]    49       │-                match node.kind() {
[INFO] [stdout]    50       │-                    "Expr_Numbers" => {
[INFO] [stdout]    51       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    52       │-                            node,
[INFO] [stdout]    53       │-                            move |cursor, last_idx| {
[INFO] [stdout]    54       │-                                Expr::Numbers({
[INFO] [stdout]    55       │-                                    ::rust_sitter::__private::extract_field::<Vec<Number>, _>(
[INFO] [stdout]    56       │-                                        cursor, source, last_idx, "0", None,
[INFO] [stdout]    57       │-                                    )
[INFO] [stdout]    58       │-                                })
[INFO] [stdout]    59       │-                            },
[INFO] [stdout]    60       │-                        )
[INFO] [stdout]    61       │-                    }
[INFO] [stdout]    62       │-                    _ => {
[INFO] [stdout]    63       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    64       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    65       │-                        }
[INFO] [stdout]    66       │-                    }
[INFO] [stdout]    67       │-                }
[INFO] [stdout]    68       │-            }
[INFO] [stdout]    69       │-        }
[INFO] [stdout]    70       │-    }
[INFO] [stdout]    71       │-    extern "C" {
[INFO] [stdout]    72       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    73       │-    }
[INFO] [stdout]    74       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    75       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    76       │-    }
[INFO] [stdout]    77       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    78       │-    #[doc = "[`Expr`]"]
[INFO] [stdout]    79       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    80       │-    pub fn parse(
[INFO] [stdout]    81       │-        input: &str,
[INFO] [stdout]    82       │-    ) -> core::result::Result<Expr, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    83       │-        ::rust_sitter::__private::parse::<Expr>(input, language)
[INFO] [stdout]    84       │-    }
[INFO] [stdout]    85       │-}
[INFO] [stdout]           0 │+mod grammar { pub struct Number { value : u32 } impl :: rust_sitter :: Extract < Number > for Number { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Number { value : { :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < u32 > , _ > (cursor , source , last_idx , "value" , Some (& | v | v . parse () . unwrap ())) } }) } } pub enum Expr { Numbers (Vec < Number >) } impl :: rust_sitter :: Extract < Expr > for Expr { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expr_Numbers" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expr :: Numbers ({ :: rust_sitter :: __private :: extract_field :: < Vec < Number > , _ > (cursor , source , last_idx , "0" , None) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Expr`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Expr , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Expr > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::enum_with_unamed_vector' panicked at src/lib.rs:450:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/rust_sitter_macro__tests__enum_with_unamed_vector.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7ef7cc15e60a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7ef7cc15e60a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7ef7cc1aebb3 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7ef7cc1aebb3 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x7ef7cc151fa3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7ef7cc15e452 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7ef7cc160a8a - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7ef7cc160894 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x62d156cfccc9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x62d156cfccc9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7ef7cc1611f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7ef7cc1611f8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7ef7cc160fba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7ef7cc15eae9 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7ef7cc160c4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7ef7cc1aafc0 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x7ef7cc1ab546 - core::result::unwrap_failed::h5e8218e4d4338b8a
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1698:5
[INFO] [stdout]   19:     0x62d156bb073b - core::result::Result<T,E>::unwrap::hbaf37dc60a85e103
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1103:23
[INFO] [stdout]   20:     0x62d156bb073b - rust_sitter_macro::tests::enum_with_unamed_vector::he040fd758242fbe4
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:450:9
[INFO] [stdout]   21:     0x62d156baf51d - rust_sitter_macro::tests::enum_with_unamed_vector::{{closure}}::h5aafbae6045f49f3
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:449:37
[INFO] [stdout]   22:     0x62d156bbce06 - core::ops::function::FnOnce::call_once::he3cb34bb4f1d381c
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x62d156d0159b - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x62d156d0159b - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x62d156d00f17 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x62d156d00f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x62d156d00f17 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x62d156d00f17 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x62d156d00f17 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x62d156d00f17 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x62d156d00f17 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x62d156cc4634 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x62d156cc4634 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x62d156cc7dde - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x62d156cc7dde - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x62d156cc7dde - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x62d156cc7dde - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x62d156cc7dde - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7ef7cc16ad2b - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7ef7cbddeac3 - <unknown>
[INFO] [stdout]   45:     0x7ef7cbe6fa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::struct_repeat stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__struct_repeat.snap
[INFO] [stdout] Snapshot: struct_repeat
[INFO] [stdout] Source: src/lib.rs:394
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote!
[INFO] [stdout] {
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] [stdout]     #[rust_sitter::grammar("test")] mod grammar
[INFO] [stdout]     {
[INFO] [stdout]         #[rust_sitter::language] pub struct NumberList
[INFO] [stdout]         { numbers: Vec<Number>, } pub struct Number
[INFO] [stdout]         {
[INFO] [stdout]             #[rust_sitter::leaf(pattern = r"\d+", transform = |v|
[INFO] [stdout]             v.parse().unwrap())] v: i32
[INFO] [stdout]         } #[rust_sitter::extra] struct Whitespace
[INFO] [stdout]         { #[rust_sitter::leaf(pattern = r"\s")] _whitespace: (), }
[INFO] [stdout]     }
[INFO] [stdout] })? .to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub struct NumberList {
[INFO] [stdout]     2       │-        numbers: Vec<Number>,
[INFO] [stdout]     3       │-    }
[INFO] [stdout]     4       │-    impl ::rust_sitter::Extract<NumberList> for NumberList {
[INFO] [stdout]     5       │-        type LeafFn = ();
[INFO] [stdout]     6       │-        #[allow(non_snake_case)]
[INFO] [stdout]     7       │-        fn extract(
[INFO] [stdout]     8       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]     9       │-            source: &[u8],
[INFO] [stdout]    10       │-            last_idx: usize,
[INFO] [stdout]    11       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    12       │-        ) -> Self {
[INFO] [stdout]    13       │-            let node = node.unwrap();
[INFO] [stdout]    14       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    15       │-                NumberList {
[INFO] [stdout]    16       │-                    numbers: {
[INFO] [stdout]    17       │-                        ::rust_sitter::__private::extract_field::<Vec<Number>, _>(
[INFO] [stdout]    18       │-                            cursor, source, last_idx, "numbers", None,
[INFO] [stdout]    19       │-                        )
[INFO] [stdout]    20       │-                    },
[INFO] [stdout]    21       │-                }
[INFO] [stdout]    22       │-            })
[INFO] [stdout]    23       │-        }
[INFO] [stdout]    24       │-    }
[INFO] [stdout]    25       │-    pub struct Number {
[INFO] [stdout]    26       │-        v: i32,
[INFO] [stdout]    27       │-    }
[INFO] [stdout]    28       │-    impl ::rust_sitter::Extract<Number> for Number {
[INFO] [stdout]    29       │-        type LeafFn = ();
[INFO] [stdout]    30       │-        #[allow(non_snake_case)]
[INFO] [stdout]    31       │-        fn extract(
[INFO] [stdout]    32       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    33       │-            source: &[u8],
[INFO] [stdout]    34       │-            last_idx: usize,
[INFO] [stdout]    35       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    36       │-        ) -> Self {
[INFO] [stdout]    37       │-            let node = node.unwrap();
[INFO] [stdout]    38       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    39       │-                Number {
[INFO] [stdout]    40       │-                    v: {
[INFO] [stdout]    41       │-                        ::rust_sitter::__private::extract_field::<rust_sitter::WithLeaf<i32>, _>(
[INFO] [stdout]    42       │-                            cursor,
[INFO] [stdout]    43       │-                            source,
[INFO] [stdout]    44       │-                            last_idx,
[INFO] [stdout]    45       │-                            "v",
[INFO] [stdout]    46       │-                            Some(&|v| v.parse().unwrap()),
[INFO] [stdout]    47       │-                        )
[INFO] [stdout]    48       │-                    },
[INFO] [stdout]    49       │-                }
[INFO] [stdout]    50       │-            })
[INFO] [stdout]    51       │-        }
[INFO] [stdout]    52       │-    }
[INFO] [stdout]    53       │-    struct Whitespace {
[INFO] [stdout]    54       │-        _whitespace: (),
[INFO] [stdout]    55       │-    }
[INFO] [stdout]    56       │-    impl ::rust_sitter::Extract<Whitespace> for Whitespace {
[INFO] [stdout]    57       │-        type LeafFn = ();
[INFO] [stdout]    58       │-        #[allow(non_snake_case)]
[INFO] [stdout]    59       │-        fn extract(
[INFO] [stdout]    60       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    61       │-            source: &[u8],
[INFO] [stdout]    62       │-            last_idx: usize,
[INFO] [stdout]    63       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    64       │-        ) -> Self {
[INFO] [stdout]    65       │-            let node = node.unwrap();
[INFO] [stdout]    66       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    67       │-                Whitespace {
[INFO] [stdout]    68       │-                    _whitespace: {
[INFO] [stdout]    69       │-                        ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    70       │-                            cursor,
[INFO] [stdout]    71       │-                            source,
[INFO] [stdout]    72       │-                            last_idx,
[INFO] [stdout]    73       │-                            "_whitespace",
[INFO] [stdout]    74       │-                            None,
[INFO] [stdout]    75       │-                        )
[INFO] [stdout]    76       │-                    },
[INFO] [stdout]    77       │-                }
[INFO] [stdout]    78       │-            })
[INFO] [stdout]    79       │-        }
[INFO] [stdout]    80       │-    }
[INFO] [stdout]    81       │-    extern "C" {
[INFO] [stdout]    82       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    83       │-    }
[INFO] [stdout]    84       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    85       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    86       │-    }
[INFO] [stdout]    87       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    88       │-    #[doc = "[`NumberList`]"]
[INFO] [stdout]    89       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    90       │-    pub fn parse(
[INFO] [stdout]    91       │-        input: &str,
[INFO] [stdout]    92       │-    ) -> core::result::Result<NumberList, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    93       │-        ::rust_sitter::__private::parse::<NumberList>(input, language)
[INFO] [stdout]    94       │-    }
[INFO] [stdout]    95       │-}
[INFO] [stdout]           0 │+mod grammar { pub struct NumberList { numbers : Vec < Number > , } impl :: rust_sitter :: Extract < NumberList > for NumberList { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | NumberList { numbers : { :: rust_sitter :: __private :: extract_field :: < Vec < Number > , _ > (cursor , source , last_idx , "numbers" , None) } }) } } pub struct Number { v : i32 } impl :: rust_sitter :: Extract < Number > for Number { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Number { v : { :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "v" , Some (& | v | v . parse () . unwrap ())) } }) } } struct Whitespace { _whitespace : () , } impl :: rust_sitter :: Extract < Whitespace > for Whitespace { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Whitespace { _whitespace : { :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "_whitespace" , None) } }) } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`NumberList`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < NumberList , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < NumberList > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::struct_repeat' panicked at src/lib.rs:394:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/rust_sitter_macro__tests__struct_repeat.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7ef7cc15e60a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7ef7cc15e60a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7ef7cc1aebb3 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7ef7cc1aebb3 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x7ef7cc151fa3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7ef7cc15e452 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7ef7cc160a8a - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7ef7cc160894 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x62d156cfccc9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x62d156cfccc9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7ef7cc1611f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7ef7cc1611f8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7ef7cc160fba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7ef7cc15eae9 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7ef7cc160c4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7ef7cc1aafc0 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x7ef7cc1ab546 - core::result::unwrap_failed::h5e8218e4d4338b8a
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1698:5
[INFO] [stdout]   19:     0x62d156badc10 - core::result::Result<T,E>::unwrap::hbaf37dc60a85e103
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1103:23
[INFO] [stdout]   20:     0x62d156badc10 - rust_sitter_macro::tests::struct_repeat::h983de04f8c3ad703
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:394:9
[INFO] [stdout]   21:     0x62d156bac81d - rust_sitter_macro::tests::struct_repeat::{{closure}}::h95964312a7d7bbec
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:393:27
[INFO] [stdout]   22:     0x62d156bbce46 - core::ops::function::FnOnce::call_once::he5610dc821972aba
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x62d156d0159b - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x62d156d0159b - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x62d156d00f17 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x62d156d00f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x62d156d00f17 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x62d156d00f17 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x62d156d00f17 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x62d156d00f17 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x62d156d00f17 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x62d156cc4634 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x62d156cc4634 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x62d156cc7dde - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x62d156cc7dde - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x62d156cc7dde - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x62d156cc7dde - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x62d156cc7dde - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7ef7cc16ad2b - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7ef7cbddeac3 - <unknown>
[INFO] [stdout]   45:     0x7ef7cbe6fa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::struct_optional stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__struct_optional.snap
[INFO] [stdout] Snapshot: struct_optional
[INFO] [stdout] Source: src/lib.rs:424
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     #[rust_sitter::grammar("test")] mod grammar
[INFO] [stdout]     {
[INFO] [stdout]         #[rust_sitter::language] pub struct Language
[INFO] [stdout]         {
[INFO] [stdout]             #[rust_sitter::leaf(pattern = r"\d+", transform = |v|
[INFO] [stdout]             v.parse().unwrap())] v: Option<i32>, t: Option<Number>,
[INFO] [stdout]         } pub struct Number
[INFO] [stdout]         {
[INFO] [stdout]             #[rust_sitter::leaf(pattern = r"\d+", transform = |v|
[INFO] [stdout]             v.parse().unwrap())] v: i32
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] })? .to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub struct Language {
[INFO] [stdout]     2       │-        v: Option<i32>,
[INFO] [stdout]     3       │-        t: Option<Number>,
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl ::rust_sitter::Extract<Language> for Language {
[INFO] [stdout]     6       │-        type LeafFn = ();
[INFO] [stdout]     7       │-        #[allow(non_snake_case)]
[INFO] [stdout]     8       │-        fn extract(
[INFO] [stdout]     9       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    10       │-            source: &[u8],
[INFO] [stdout]    11       │-            last_idx: usize,
[INFO] [stdout]    12       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    13       │-        ) -> Self {
[INFO] [stdout]    14       │-            let node = node.unwrap();
[INFO] [stdout]    15       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    16       │-                Language {
[INFO] [stdout]    17       │-                    v: {
[INFO] [stdout]    18       │-                        ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    19       │-                            Option<rust_sitter::WithLeaf<i32>>,
[INFO] [stdout]    20       │-                            _,
[INFO] [stdout]    21       │-                        >(
[INFO] [stdout]    22       │-                            cursor, source, last_idx, "v", Some(&|v| v.parse().unwrap())
[INFO] [stdout]    23       │-                        )
[INFO] [stdout]    24       │-                    },
[INFO] [stdout]    25       │-                    t: {
[INFO] [stdout]    26       │-                        ::rust_sitter::__private::extract_field::<Option<Number>, _>(
[INFO] [stdout]    27       │-                            cursor, source, last_idx, "t", None,
[INFO] [stdout]    28       │-                        )
[INFO] [stdout]    29       │-                    },
[INFO] [stdout]    30       │-                }
[INFO] [stdout]    31       │-            })
[INFO] [stdout]    32       │-        }
[INFO] [stdout]    33       │-    }
[INFO] [stdout]    34       │-    pub struct Number {
[INFO] [stdout]    35       │-        v: i32,
[INFO] [stdout]    36       │-    }
[INFO] [stdout]    37       │-    impl ::rust_sitter::Extract<Number> for Number {
[INFO] [stdout]    38       │-        type LeafFn = ();
[INFO] [stdout]    39       │-        #[allow(non_snake_case)]
[INFO] [stdout]    40       │-        fn extract(
[INFO] [stdout]    41       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    42       │-            source: &[u8],
[INFO] [stdout]    43       │-            last_idx: usize,
[INFO] [stdout]    44       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    45       │-        ) -> Self {
[INFO] [stdout]    46       │-            let node = node.unwrap();
[INFO] [stdout]    47       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    48       │-                Number {
[INFO] [stdout]    49       │-                    v: {
[INFO] [stdout]    50       │-                        ::rust_sitter::__private::extract_field::<rust_sitter::WithLeaf<i32>, _>(
[INFO] [stdout]    51       │-                            cursor,
[INFO] [stdout]    52       │-                            source,
[INFO] [stdout]    53       │-                            last_idx,
[INFO] [stdout]    54       │-                            "v",
[INFO] [stdout]    55       │-                            Some(&|v| v.parse().unwrap()),
[INFO] [stdout]    56       │-                        )
[INFO] [stdout]    57       │-                    },
[INFO] [stdout]    58       │-                }
[INFO] [stdout]    59       │-            })
[INFO] [stdout]    60       │-        }
[INFO] [stdout]    61       │-    }
[INFO] [stdout]    62       │-    extern "C" {
[INFO] [stdout]    63       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    64       │-    }
[INFO] [stdout]    65       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    66       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    67       │-    }
[INFO] [stdout]    68       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    69       │-    #[doc = "[`Language`]"]
[INFO] [stdout]    70       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    71       │-    pub fn parse(
[INFO] [stdout]    72       │-        input: &str,
[INFO] [stdout]    73       │-    ) -> core::result::Result<Language, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    74       │-        ::rust_sitter::__private::parse::<Language>(input, language)
[INFO] [stdout]    75       │-    }
[INFO] [stdout]    76       │-}
[INFO] [stdout]           0 │+mod grammar { pub struct Language { v : Option < i32 > , t : Option < Number > , } impl :: rust_sitter :: Extract < Language > for Language { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Language { v : { :: rust_sitter :: __private :: extract_field :: < Option < rust_sitter :: WithLeaf < i32 > > , _ > (cursor , source , last_idx , "v" , Some (& | v | v . parse () . unwrap ())) } , t : { :: rust_sitter :: __private :: extract_field :: < Option < Number > , _ > (cursor , source , last_idx , "t" , None) } }) } } pub struct Number { v : i32 } impl :: rust_sitter :: Extract < Number > for Number { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Number { v : { :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "v" , Some (& | v | v . parse () . unwrap ())) } }) } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Language`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Language , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Language > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::struct_optional' panicked at src/lib.rs:424:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/rust_sitter_macro__tests__struct_optional.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7ef7cc15e60a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7ef7cc15e60a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7ef7cc1aebb3 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7ef7cc1aebb3 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x7ef7cc151fa3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7ef7cc15e452 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7ef7cc160a8a - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7ef7cc160894 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x62d156cfccc9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x62d156cfccc9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7ef7cc1611f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7ef7cc1611f8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7ef7cc160fba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7ef7cc15eae9 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7ef7cc160c4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7ef7cc1aafc0 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x7ef7cc1ab546 - core::result::unwrap_failed::h5e8218e4d4338b8a
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1698:5
[INFO] [stdout]   19:     0x62d156baf289 - core::result::Result<T,E>::unwrap::hbaf37dc60a85e103
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1103:23
[INFO] [stdout]   20:     0x62d156baf289 - rust_sitter_macro::tests::struct_optional::h65b3b4b611573e41
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:424:9
[INFO] [stdout]   21:     0x62d156bade9d - rust_sitter_macro::tests::struct_optional::{{closure}}::h6ad06c81d42c555e
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:423:29
[INFO] [stdout]   22:     0x62d156bbcb06 - core::ops::function::FnOnce::call_once::h3fe4218839474e41
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x62d156d0159b - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x62d156d0159b - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x62d156d00f17 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x62d156d00f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x62d156d00f17 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x62d156d00f17 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x62d156d00f17 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x62d156d00f17 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x62d156d00f17 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x62d156cc4634 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x62d156cc4634 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x62d156cc7dde - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x62d156cc7dde - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x62d156cc7dde - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x62d156cc7dde - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x62d156cc7dde - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7ef7cc16ad2b - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7ef7cbddeac3 - <unknown>
[INFO] [stdout]   45:     0x7ef7cbe6fa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::spanned_in_vec stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__spanned_in_vec.snap
[INFO] [stdout] Snapshot: spanned_in_vec
[INFO] [stdout] Source: src/lib.rs:504
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     #[rust_sitter::grammar("test")] mod grammar
[INFO] [stdout]     {
[INFO] [stdout]         use rust_sitter::Spanned; #[rust_sitter::language] pub struct
[INFO] [stdout]         NumberList { numbers: Vec<Spanned<Number>>, } pub struct Number
[INFO] [stdout]         {
[INFO] [stdout]             #[rust_sitter::leaf(pattern = r"\d+", transform = |v|
[INFO] [stdout]             v.parse().unwrap())] v: i32
[INFO] [stdout]         } #[rust_sitter::extra] struct Whitespace
[INFO] [stdout]         { #[rust_sitter::leaf(pattern = r"\s")] _whitespace: (), }
[INFO] [stdout]     }
[INFO] [stdout] })? .to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    use rust_sitter::Spanned;
[INFO] [stdout]     2       │-    pub struct NumberList {
[INFO] [stdout]     3       │-        numbers: Vec<Spanned<Number>>,
[INFO] [stdout]     4       │-    }
[INFO] [stdout]     5       │-    impl ::rust_sitter::Extract<NumberList> for NumberList {
[INFO] [stdout]     6       │-        type LeafFn = ();
[INFO] [stdout]     7       │-        #[allow(non_snake_case)]
[INFO] [stdout]     8       │-        fn extract(
[INFO] [stdout]     9       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    10       │-            source: &[u8],
[INFO] [stdout]    11       │-            last_idx: usize,
[INFO] [stdout]    12       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    13       │-        ) -> Self {
[INFO] [stdout]    14       │-            let node = node.unwrap();
[INFO] [stdout]    15       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    16       │-                NumberList {
[INFO] [stdout]    17       │-                    numbers: {
[INFO] [stdout]    18       │-                        ::rust_sitter::__private::extract_field::<Vec<Spanned<Number>>, _>(
[INFO] [stdout]    19       │-                            cursor, source, last_idx, "numbers", None,
[INFO] [stdout]    20       │-                        )
[INFO] [stdout]    21       │-                    },
[INFO] [stdout]    22       │-                }
[INFO] [stdout]    23       │-            })
[INFO] [stdout]    24       │-        }
[INFO] [stdout]    25       │-    }
[INFO] [stdout]    26       │-    pub struct Number {
[INFO] [stdout]    27       │-        v: i32,
[INFO] [stdout]    28       │-    }
[INFO] [stdout]    29       │-    impl ::rust_sitter::Extract<Number> for Number {
[INFO] [stdout]    30       │-        type LeafFn = ();
[INFO] [stdout]    31       │-        #[allow(non_snake_case)]
[INFO] [stdout]    32       │-        fn extract(
[INFO] [stdout]    33       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    34       │-            source: &[u8],
[INFO] [stdout]    35       │-            last_idx: usize,
[INFO] [stdout]    36       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    37       │-        ) -> Self {
[INFO] [stdout]    38       │-            let node = node.unwrap();
[INFO] [stdout]    39       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    40       │-                Number {
[INFO] [stdout]    41       │-                    v: {
[INFO] [stdout]    42       │-                        ::rust_sitter::__private::extract_field::<rust_sitter::WithLeaf<i32>, _>(
[INFO] [stdout]    43       │-                            cursor,
[INFO] [stdout]    44       │-                            source,
[INFO] [stdout]    45       │-                            last_idx,
[INFO] [stdout]    46       │-                            "v",
[INFO] [stdout]    47       │-                            Some(&|v| v.parse().unwrap()),
[INFO] [stdout]    48       │-                        )
[INFO] [stdout]    49       │-                    },
[INFO] [stdout]    50       │-                }
[INFO] [stdout]    51       │-            })
[INFO] [stdout]    52       │-        }
[INFO] [stdout]    53       │-    }
[INFO] [stdout]    54       │-    struct Whitespace {
[INFO] [stdout]    55       │-        _whitespace: (),
[INFO] [stdout]    56       │-    }
[INFO] [stdout]    57       │-    impl ::rust_sitter::Extract<Whitespace> for Whitespace {
[INFO] [stdout]    58       │-        type LeafFn = ();
[INFO] [stdout]    59       │-        #[allow(non_snake_case)]
[INFO] [stdout]    60       │-        fn extract(
[INFO] [stdout]    61       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    62       │-            source: &[u8],
[INFO] [stdout]    63       │-            last_idx: usize,
[INFO] [stdout]    64       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    65       │-        ) -> Self {
[INFO] [stdout]    66       │-            let node = node.unwrap();
[INFO] [stdout]    67       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    68       │-                Whitespace {
[INFO] [stdout]    69       │-                    _whitespace: {
[INFO] [stdout]    70       │-                        ::rust_sitter::__private::extract_field::<(), _>(
[INFO] [stdout]    71       │-                            cursor,
[INFO] [stdout]    72       │-                            source,
[INFO] [stdout]    73       │-                            last_idx,
[INFO] [stdout]    74       │-                            "_whitespace",
[INFO] [stdout]    75       │-                            None,
[INFO] [stdout]    76       │-                        )
[INFO] [stdout]    77       │-                    },
[INFO] [stdout]    78       │-                }
[INFO] [stdout]    79       │-            })
[INFO] [stdout]    80       │-        }
[INFO] [stdout]    81       │-    }
[INFO] [stdout]    82       │-    extern "C" {
[INFO] [stdout]    83       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    84       │-    }
[INFO] [stdout]    85       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    86       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    87       │-    }
[INFO] [stdout]    88       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    89       │-    #[doc = "[`NumberList`]"]
[INFO] [stdout]    90       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    91       │-    pub fn parse(
[INFO] [stdout]    92       │-        input: &str,
[INFO] [stdout]    93       │-    ) -> core::result::Result<NumberList, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    94       │-        ::rust_sitter::__private::parse::<NumberList>(input, language)
[INFO] [stdout]    95       │-    }
[INFO] [stdout]    96       │-}
[INFO] [stdout]           0 │+mod grammar { use rust_sitter :: Spanned ; pub struct NumberList { numbers : Vec < Spanned < Number > > , } impl :: rust_sitter :: Extract < NumberList > for NumberList { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | NumberList { numbers : { :: rust_sitter :: __private :: extract_field :: < Vec < Spanned < Number > > , _ > (cursor , source , last_idx , "numbers" , None) } }) } } pub struct Number { v : i32 } impl :: rust_sitter :: Extract < Number > for Number { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Number { v : { :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "v" , Some (& | v | v . parse () . unwrap ())) } }) } } struct Whitespace { _whitespace : () , } impl :: rust_sitter :: Extract < Whitespace > for Whitespace { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Whitespace { _whitespace : { :: rust_sitter :: __private :: extract_field :: < () , _ > (cursor , source , last_idx , "_whitespace" , None) } }) } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`NumberList`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < NumberList , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < NumberList > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::spanned_in_vec' panicked at src/lib.rs:504:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/rust_sitter_macro__tests__spanned_in_vec.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7ef7cc15e60a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7ef7cc15e60a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7ef7cc1aebb3 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7ef7cc1aebb3 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x7ef7cc151fa3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7ef7cc15e452 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7ef7cc160a8a - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7ef7cc160894 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x62d156cfccc9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x62d156cfccc9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7ef7cc1611f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7ef7cc1611f8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7ef7cc160fba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7ef7cc15eae9 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7ef7cc160c4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7ef7cc1aafc0 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x7ef7cc1ab546 - core::result::unwrap_failed::h5e8218e4d4338b8a
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1698:5
[INFO] [stdout]   19:     0x62d156bb3388 - core::result::Result<T,E>::unwrap::hbaf37dc60a85e103
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1103:23
[INFO] [stdout]   20:     0x62d156bb3388 - rust_sitter_macro::tests::spanned_in_vec::h2956750e790797a8
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:504:9
[INFO] [stdout]   21:     0x62d156bb1edd - rust_sitter_macro::tests::spanned_in_vec::{{closure}}::h9ab09647e3e5865b
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:503:28
[INFO] [stdout]   22:     0x62d156bbcc86 - core::ops::function::FnOnce::call_once::h84bd69a11c6b9617
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x62d156d0159b - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x62d156d0159b - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x62d156d00f17 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x62d156d00f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x62d156d00f17 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x62d156d00f17 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x62d156d00f17 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x62d156d00f17 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x62d156d00f17 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x62d156cc4634 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x62d156cc4634 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x62d156cc7dde - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x62d156cc7dde - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x62d156cc7dde - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x62d156cc7dde - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x62d156cc7dde - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7ef7cc16ad2b - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7ef7cbddeac3 - <unknown>
[INFO] [stdout]   45:     0x7ef7cbe6fa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] ---- tests::grammar_unboxed_field stdout ----
[INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[INFO] [stdout] Snapshot file: src/snapshots/rust_sitter_macro__tests__grammar_unboxed_field.snap
[INFO] [stdout] Snapshot: grammar_unboxed_field
[INFO] [stdout] Source: src/lib.rs:368
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] Expression: rustfmt_code(&expand_grammar(parse_quote!
[INFO] [stdout] {
[INFO] [stdout]     #[rust_sitter::grammar("test")] mod grammar
[INFO] [stdout]     {
[INFO] [stdout]         #[rust_sitter::language] pub struct Language { e: Expression, } pub
[INFO] [stdout]         enum Expression
[INFO] [stdout]         {
[INFO] [stdout]             Number(#[rust_sitter::leaf(pattern = r"\d+", transform = |v: &str|
[INFO] [stdout]             v.parse::<i32>().unwrap())] i32),
[INFO] [stdout]         }
[INFO] [stdout]     }
[INFO] [stdout] })? .to_token_stream().to_string())
[INFO] [stdout] ────────────────────────────────────────────────────────────────────────────────
[INFO] [stdout] -old snapshot
[INFO] [stdout] +new results
[INFO] [stdout] ────────────┬───────────────────────────────────────────────────────────────────
[INFO] [stdout]     0       │-mod grammar {
[INFO] [stdout]     1       │-    pub struct Language {
[INFO] [stdout]     2       │-        e: Expression,
[INFO] [stdout]     3       │-    }
[INFO] [stdout]     4       │-    impl ::rust_sitter::Extract<Language> for Language {
[INFO] [stdout]     5       │-        type LeafFn = ();
[INFO] [stdout]     6       │-        #[allow(non_snake_case)]
[INFO] [stdout]     7       │-        fn extract(
[INFO] [stdout]     8       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]     9       │-            source: &[u8],
[INFO] [stdout]    10       │-            last_idx: usize,
[INFO] [stdout]    11       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    12       │-        ) -> Self {
[INFO] [stdout]    13       │-            let node = node.unwrap();
[INFO] [stdout]    14       │-            ::rust_sitter::__private::extract_struct_or_variant(node, move |cursor, last_idx| {
[INFO] [stdout]    15       │-                Language {
[INFO] [stdout]    16       │-                    e: {
[INFO] [stdout]    17       │-                        ::rust_sitter::__private::extract_field::<Expression, _>(
[INFO] [stdout]    18       │-                            cursor, source, last_idx, "e", None,
[INFO] [stdout]    19       │-                        )
[INFO] [stdout]    20       │-                    },
[INFO] [stdout]    21       │-                }
[INFO] [stdout]    22       │-            })
[INFO] [stdout]    23       │-        }
[INFO] [stdout]    24       │-    }
[INFO] [stdout]    25       │-    pub enum Expression {
[INFO] [stdout]    26       │-        Number(i32),
[INFO] [stdout]    27       │-    }
[INFO] [stdout]    28       │-    impl ::rust_sitter::Extract<Expression> for Expression {
[INFO] [stdout]    29       │-        type LeafFn = ();
[INFO] [stdout]    30       │-        #[allow(non_snake_case)]
[INFO] [stdout]    31       │-        fn extract(
[INFO] [stdout]    32       │-            node: Option<::rust_sitter::tree_sitter::Node>,
[INFO] [stdout]    33       │-            source: &[u8],
[INFO] [stdout]    34       │-            _last_idx: usize,
[INFO] [stdout]    35       │-            _leaf_fn: Option<&Self::LeafFn>,
[INFO] [stdout]    36       │-        ) -> Self {
[INFO] [stdout]    37       │-            let node = node.unwrap();
[INFO] [stdout]    38       │-            let mut cursor = node.walk();
[INFO] [stdout]    39       │-            assert!(
[INFO] [stdout]    40       │-                cursor.goto_first_child(),
[INFO] [stdout]    41       │-                "Could not find a child corresponding to any enum branch"
[INFO] [stdout]    42       │-            );
[INFO] [stdout]    43       │-            loop {
[INFO] [stdout]    44       │-                let node = cursor.node();
[INFO] [stdout]    45       │-                match node.kind() {
[INFO] [stdout]    46       │-                    "Expression_Number" => {
[INFO] [stdout]    47       │-                        return ::rust_sitter::__private::extract_struct_or_variant(
[INFO] [stdout]    48       │-                            node,
[INFO] [stdout]    49       │-                            move |cursor, last_idx| {
[INFO] [stdout]    50       │-                                Expression::Number({
[INFO] [stdout]    51       │-                                    ::rust_sitter::__private::extract_field::<
[INFO] [stdout]    52       │-                                        rust_sitter::WithLeaf<i32>,
[INFO] [stdout]    53       │-                                        _,
[INFO] [stdout]    54       │-                                    >(
[INFO] [stdout]    55       │-                                        cursor,
[INFO] [stdout]    56       │-                                        source,
[INFO] [stdout]    57       │-                                        last_idx,
[INFO] [stdout]    58       │-                                        "0",
[INFO] [stdout]    59       │-                                        Some(&|v: &str| v.parse::<i32>().unwrap()),
[INFO] [stdout]    60       │-                                    )
[INFO] [stdout]    61       │-                                })
[INFO] [stdout]    62       │-                            },
[INFO] [stdout]    63       │-                        )
[INFO] [stdout]    64       │-                    }
[INFO] [stdout]    65       │-                    _ => {
[INFO] [stdout]    66       │-                        if !cursor.goto_next_sibling() {
[INFO] [stdout]    67       │-                            panic!("Could not find a child corresponding to any enum branch")
[INFO] [stdout]    68       │-                        }
[INFO] [stdout]    69       │-                    }
[INFO] [stdout]    70       │-                }
[INFO] [stdout]    71       │-            }
[INFO] [stdout]    72       │-        }
[INFO] [stdout]    73       │-    }
[INFO] [stdout]    74       │-    extern "C" {
[INFO] [stdout]    75       │-        fn tree_sitter_test() -> ::rust_sitter::tree_sitter::Language;
[INFO] [stdout]    76       │-    }
[INFO] [stdout]    77       │-    pub fn language() -> ::rust_sitter::tree_sitter::Language {
[INFO] [stdout]    78       │-        unsafe { tree_sitter_test() }
[INFO] [stdout]    79       │-    }
[INFO] [stdout]    80       │-    #[doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"]
[INFO] [stdout]    81       │-    #[doc = "[`Language`]"]
[INFO] [stdout]    82       │-    #[doc = r" instance containing the parsed structured data."]
[INFO] [stdout]    83       │-    pub fn parse(
[INFO] [stdout]    84       │-        input: &str,
[INFO] [stdout]    85       │-    ) -> core::result::Result<Language, Vec<::rust_sitter::errors::ParseError>> {
[INFO] [stdout]    86       │-        ::rust_sitter::__private::parse::<Language>(input, language)
[INFO] [stdout]    87       │-    }
[INFO] [stdout]    88       │-}
[INFO] [stdout]           0 │+mod grammar { pub struct Language { e : Expression , } impl :: rust_sitter :: Extract < Language > for Language { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Language { e : { :: rust_sitter :: __private :: extract_field :: < Expression , _ > (cursor , source , last_idx , "e" , None) } }) } } pub enum Expression { Number (i32) , } impl :: rust_sitter :: Extract < Expression > for Expression { type LeafFn = () ; # [allow (non_snake_case)] fn extract (node : Option < :: rust_sitter :: tree_sitter :: Node > , source : & [u8] , _last_idx : usize , _leaf_fn : Option < & Self :: LeafFn >) -> Self { let node = node . unwrap () ; let mut cursor = node . walk () ; assert ! (cursor . goto_first_child () , "Could not find a child corresponding to any enum branch") ; loop { let node = cursor . node () ; match node . kind () { "Expression_Number" => return :: rust_sitter :: __private :: extract_struct_or_variant (node , move | cursor , last_idx | Expression :: Number ({ :: rust_sitter :: __private :: extract_field :: < rust_sitter :: WithLeaf < i32 > , _ > (cursor , source , last_idx , "0" , Some (& | v : & str | v . parse :: < i32 > () . unwrap ())) })) , _ => if ! cursor . goto_next_sibling () { panic ! ("Could not find a child corresponding to any enum branch") } } } } } extern "C" { fn tree_sitter_test () -> :: rust_sitter :: tree_sitter :: Language ; } pub fn language () -> :: rust_sitter :: tree_sitter :: Language { unsafe { tree_sitter_test () } } # [doc = r" Parse an input string according to the grammar. Returns either any parsing errors that happened, or a"] # [doc = "[`Language`]"] # [doc = r" instance containing the parsed structured data."] pub fn parse (input : & str) -> core :: result :: Result < Language , Vec < :: rust_sitter :: errors :: ParseError > > { :: rust_sitter :: __private :: parse :: < Language > (input , language) } }
[INFO] [stdout] ────────────┴───────────────────────────────────────────────────────────────────
[INFO] [stdout] thread 'tests::grammar_unboxed_field' panicked at src/lib.rs:368:9:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/rust_sitter_macro__tests__grammar_unboxed_field.snap.new")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::libunwind::trace::h207520d6e9873551
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x7ef7cc15e60a - std::backtrace_rs::backtrace::trace_unsynchronized::h2ed7433f370e3eca
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x7ef7cc15e60a - std::sys::backtrace::_print_fmt::h916fac51166b18d7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x7ef7cc15e60a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::ha0a4c9b8ce3802e6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x7ef7cc1aebb3 - core::fmt::rt::Argument::fmt::h4cfc8587d52b3eb5
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x7ef7cc1aebb3 - core::fmt::write::h522cc39e5b36ae9f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/fmt/mod.rs:1190:21
[INFO] [stdout]    6:     0x7ef7cc151fa3 - std::io::Write::write_fmt::h7d3c26752da97734
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/io/mod.rs:1839:15
[INFO] [stdout]    7:     0x7ef7cc15e452 - std::sys::backtrace::BacktraceLock::print::h4b9e00b29e9c0942
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x7ef7cc160a8a - std::panicking::default_hook::{{closure}}::hb59b88280d0324d9
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:268:22
[INFO] [stdout]    9:     0x7ef7cc160894 - std::panicking::default_hook::he1dd496665be4a29
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:292:9
[INFO] [stdout]   10:     0x62d156cfccc9 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h4ff71de18744e1dc
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   11:     0x62d156cfccc9 - test::test_main::{{closure}}::hcf7c055ce117aa81
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:133:21
[INFO] [stdout]   12:     0x7ef7cc1611f8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1d66c6bbd60c9692
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2468:9
[INFO] [stdout]   13:     0x7ef7cc1611f8 - std::panicking::rust_panic_with_hook::h2ff17fe8f26dfcf8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:809:13
[INFO] [stdout]   14:     0x7ef7cc160fba - std::panicking::begin_panic_handler::{{closure}}::h4fad77951c07e101
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:674:13
[INFO] [stdout]   15:     0x7ef7cc15eae9 - std::sys::backtrace::__rust_end_short_backtrace::hb1a25b3da5d0ea08
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:170:18
[INFO] [stdout]   16:     0x7ef7cc160c4c - rust_begin_unwind
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:665:5
[INFO] [stdout]   17:     0x7ef7cc1aafc0 - core::panicking::panic_fmt::ha9db07b529f9b256
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x7ef7cc1ab546 - core::result::unwrap_failed::h5e8218e4d4338b8a
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1698:5
[INFO] [stdout]   19:     0x62d156bac590 - core::result::Result<T,E>::unwrap::hbaf37dc60a85e103
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/result.rs:1103:23
[INFO] [stdout]   20:     0x62d156bac590 - rust_sitter_macro::tests::grammar_unboxed_field::h54dbcaafc582d992
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:368:9
[INFO] [stdout]   21:     0x62d156bab4bd - rust_sitter_macro::tests::grammar_unboxed_field::{{closure}}::h5c3730ab4f698bf9
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:367:35
[INFO] [stdout]   22:     0x62d156bbccf6 - core::ops::function::FnOnce::call_once::haf765a995451ae9d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   23:     0x62d156d0159b - core::ops::function::FnOnce::call_once::h22c3ba5715e93f05
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   24:     0x62d156d0159b - test::__rust_begin_short_backtrace::h8e82d8113d0da17f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:621:18
[INFO] [stdout]   25:     0x62d156d00f17 - test::run_test_in_process::{{closure}}::h33235f4f20b7b7c7
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:60
[INFO] [stdout]   26:     0x62d156d00f17 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hb5043206310c586f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   27:     0x62d156d00f17 - std::panicking::try::do_call::h9ad4731a60ab23e2
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   28:     0x62d156d00f17 - std::panicking::try::h3824d23db772a716
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   29:     0x62d156d00f17 - std::panic::catch_unwind::h5afd514605fde46b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   30:     0x62d156d00f17 - test::run_test_in_process::h0d5cbfa7067d1720
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:644:27
[INFO] [stdout]   31:     0x62d156d00f17 - test::run_test::{{closure}}::h708eb8872708115d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:565:43
[INFO] [stdout]   32:     0x62d156cc4634 - test::run_test::{{closure}}::h392c51cee94713ab
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/test/src/lib.rs:595:41
[INFO] [stdout]   33:     0x62d156cc4634 - std::sys::backtrace::__rust_begin_short_backtrace::h2f40290710935a8b
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/backtrace.rs:154:18
[INFO] [stdout]   34:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h3fd968d89053a903
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:541:17
[INFO] [stdout]   35:     0x62d156cc7dde - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h743f637ba4229880
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   36:     0x62d156cc7dde - std::panicking::try::do_call::h07440897322525a6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:557:40
[INFO] [stdout]   37:     0x62d156cc7dde - std::panicking::try::he5a2e00188156637
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panicking.rs:520:19
[INFO] [stdout]   38:     0x62d156cc7dde - std::panic::catch_unwind::hbaf3cae49b3c6433
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/panic.rs:358:14
[INFO] [stdout]   39:     0x62d156cc7dde - std::thread::Builder::spawn_unchecked_::{{closure}}::h8e141ea224820bce
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/thread/mod.rs:540:30
[INFO] [stdout]   40:     0x62d156cc7dde - core::ops::function::FnOnce::call_once{{vtable.shim}}::h90d312fedd7b8ea8
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   41:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h69aa08ddb6adb8b6
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   42:     0x7ef7cc16ad2b - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5aa36efdb79c806f
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/alloc/src/boxed.rs:2454:9
[INFO] [stdout]   43:     0x7ef7cc16ad2b - std::sys::pal::unix::thread::Thread::new::thread_start::h6cd80a1b4be5158d
[INFO] [stdout]                                at /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/std/src/sys/pal/unix/thread.rs:105:17
[INFO] [stdout]   44:     0x7ef7cbddeac3 - <unknown>
[INFO] [stdout]   45:     0x7ef7cbe6fa04 - clone
[INFO] [stdout]   46:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tests::enum_prec_left
[INFO] [stdout]     tests::enum_recursive
[INFO] [stdout]     tests::enum_transformed_fields
[INFO] [stdout]     tests::enum_with_named_field
[INFO] [stdout]     tests::enum_with_unamed_vector
[INFO] [stdout]     tests::grammar_unboxed_field
[INFO] [stdout]     tests::spanned_in_vec
[INFO] [stdout]     tests::struct_extra
[INFO] [stdout]     tests::struct_optional
[INFO] [stdout]     tests::struct_repeat
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.69s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "d6d2c47b04887b3df4bf640b2865d53295780b96c6270e3c809d0587cd26543c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d6d2c47b04887b3df4bf640b2865d53295780b96c6270e3c809d0587cd26543c", kill_on_drop: false }`
[INFO] [stdout] d6d2c47b04887b3df4bf640b2865d53295780b96c6270e3c809d0587cd26543c
