1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! Opt-in, result-preserving AST rewrites (ADR-008).
//!
//! Recognizes only greedy `(?:[0-9]+_?)+` immediately before
//! a mandatory literal dot, and `(?:[0-9]+_?)*[0-9]+` before a word boundary.
//! Capture wrappers are retained verbatim. This is
//! deliberately independent of the heuristic in `backtrack_lint`.
//!
//! This module owns the complete opt-in pipeline: `ast` recognizes safe shapes
//! and retains captures, `lowering` calculates and emits specialized bytecode,
//! and `runtime` executes the decimal prefix with native capture bookkeeping.
//! `regcomp` and `regexec` supply the compiler and VM integration points.
//! Public diagnostic types stay here; implementation modules are crate-private.
//! [`Regex::backtracking_rewrites`](crate::api::Regex::backtracking_rewrites)
//! lists the applied and refused candidates as [`BacktrackingRewrite`] values.
pub
pub
pub use apply;
/// Why a recognized decimal-loop candidate was left unchanged.
/// One recognized candidate, in AST traversal order. Unsupported shapes
/// have no entry; absence of a report does not mean a pattern is safe.