Dependency on regex (probably) is too relaxed
233c6c3d in !350 (merged) demonstrates the problem.
-*- mode: compilation; default-directory: "~/Rustup/Derive-Deftly/derive-deftly/" -*-
Compilation started at Fri May 17 16:39:20
set -e; export RUST_BACKTRACE=1; : nailing-cargo run --bin x && nailing-cargo check --workspace --all-features && nailing-cargo -u test --workspace --all-features && nailing-cargo doc --document-private-items --workspace --all-features # -- --nocapture adviseable::test::within_parsestream_leaks_unexpected_wr3
nailing-cargo: out-of-tree, git, building in: `/home/ian/Rustup/Derive-Deftly/Build/derive-deftly'
nailing-cargo: using really to run as user `rustcargo'
nailing-cargo: *WARNING* cwd is not in Cargo.nail thbough it has Cargo.toml!
nailing-cargo: nailed (0 manifests, 0 packages)
nailing-cargo: invoking: cargo +nightly-2024-04-18 check --locked --offline --workspace --all-features
warning: both `/home/rustcargo/.cargo/config` and `/home/rustcargo/.cargo/config.toml` exist. Using `/home/rustcargo/.cargo/config`
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s
nailing-cargo: unnailed. status 0.
nailing-cargo: out-of-tree, git, building in: `/home/ian/Rustup/Derive-Deftly/Build/derive-deftly'
nailing-cargo: using really to run as user `rustcargo'
nailing-cargo: *WARNING* cwd is not in Cargo.nail thbough it has Cargo.toml!
nailing-cargo: nailed (0 manifests, 0 packages)
nailing-cargo: invoking: cargo +nightly-2024-04-18 test --offline --workspace --all-features
warning: both `/home/rustcargo/.cargo/config` and `/home/rustcargo/.cargo/config.toml` exist. Using `/home/rustcargo/.cargo/config`
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s
Running unittests ../../../src/lib.rs (target/debug/deps/bizarre_derive_deftly-52bed0339c4c17aa)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests ../../../macros/macros.rs (target/debug/deps/bizarre_derive_deftly_macros-78c307b8dfb7ff92)
running 2 tests
test paste::ident_from_str ... ok
test meta::check_borrowed_desig ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/derive_deftly-d2e3b3ff00aa4eb9)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/derive_deftly_book_tests-f6372c55678fb0a4)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests macros.rs (target/debug/deps/derive_deftly_macros-da0dc5bbdd0477a9)
running 2 tests
test paste::ident_from_str ... ok
test meta::check_borrowed_desig ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests stderr-lib.rs (target/debug/deps/derive_deftly_stderr_test-2cf42637832fcd5b)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests tests.rs (target/debug/deps/derive_deftly_tests-6467b7bc98900990)
running 11 tests
test list_names::list_fields ... ok
test directly::check_approx_equal ... ok
test list_names::list_variants ... ok
test list_names::type_names ... ok
test directly::check_semver_check::check ... ok
test modules::invoke ... ok
test directly::macros::paste::ident_from_str ... ok
test directly::macros::meta::check_borrowed_desig ... ok
test directly::check_examples::possibilities::poc ... ok
test directly::check_examples::check_examples ... FAILED
test directly::check_meta_coding::check_matching ... ok
failures:
---- directly::check_examples::check_examples stdout ----
[tests/directly/check_examples/reference_extract.rs:72:13] std::env::current_dir() = Ok(
"/volatile/rustcargo/Rustup/Derive-Deftly/derive-deftly/tests",
)
thread 'directly::check_examples::check_examples' panicked at tests/tutils.rs:24:37:
bad regexp ^`(?:struct |Enum::)?(\w+)(?:|\;|\(\.\.\.\)\;| \{\.\.\.\})`$: Syntax(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex parse error:
^`(?:struct |Enum::)?(\w+)(?:|\;|\(\.\.\.\)\;| \{\.\.\.\})`$
^^
error: unrecognized escape sequence
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
)
stack backtrace:
0: rust_begin_unwind
at /rustc/becebb3158149a115cad8a402612e25436a7e37b/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/becebb3158149a115cad8a402612e25436a7e37b/library/core/src/panicking.rs:72:14
2: core::result::unwrap_failed
at /rustc/becebb3158149a115cad8a402612e25436a7e37b/library/core/src/result.rs:1654:5
3: core::result::Result<T,E>::expect
at /rustc/becebb3158149a115cad8a402612e25436a7e37b/library/core/src/result.rs:1034:23
4: derive_deftly_tests::tutils::compile_re_cached
at ./tutils.rs:24:22
5: derive_deftly_tests::directly::check_examples::contexts::Limit::parse
at ./directly/check_examples/contexts.rs:137:36
6: derive_deftly_tests::directly::check_examples::reference_extract::parse_bullet
at ./directly/check_examples/reference_extract.rs:297:19
7: derive_deftly_tests::directly::check_examples::reference_extract::examples_section
at ./directly/check_examples/reference_extract.rs:386:23
8: derive_deftly_tests::directly::check_examples::reference_extract::process_example_sections
at ./directly/check_examples/reference_extract.rs:525:13
9: derive_deftly_tests::directly::check_examples::reference_extract::extract
at ./directly/check_examples/reference_extract.rs:695:24
10: derive_deftly_tests::directly::check_examples::check_examples
at ./directly/check_examples.rs:261:31
11: derive_deftly_tests::directly::check_examples::check_examples::{{closure}}
at ./directly/check_examples.rs:259:20
12: core::ops::function::FnOnce::call_once
at /rustc/becebb3158149a115cad8a402612e25436a7e37b/library/core/src/ops/function.rs:250:5
13: core::ops::function::FnOnce::call_once
at /rustc/becebb3158149a115cad8a402612e25436a7e37b/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
failures:
directly::check_examples::check_examples
test result: FAILED. 10 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.40s
error: test failed, to rerun pass `-p derive-deftly-tests --lib`
nailing-cargo: really failed (exit status 25856)
nailing-cargo: unnailed. status 101.
Compilation exited abnormally with code 101 at Fri May 17 16:39:21