Public bug reported:

Version 0.25.0-2

Log snippet:

```
...
2591s      Running `CARGO=/usr/lib/rust-1.85/bin/cargo CARGO_CRATE_NAME=syntect 
CARGO_MANIFEST_DIR=/tmp/tmp.cMARGshHTr/registry/syntect-5.2.0 
CARGO_MANIFEST_PATH=/tmp/tmp.cMARGshHTr/registry/syntect-5.2.0/Cargo.toml 
CARGO_PKG_AUTHORS='Tristan Hume <[email protected]>' 
CARGO_PKG_DESCRIPTION='library for high quality syntax highlighting and code 
intelligence using Sublime Text'\''s grammars' CARGO_PKG_HOMEPAGE='' 
CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=syntect 
CARGO_PKG_README=Readme.md 
CARGO_PKG_REPOSITORY='https://github.com/trishume/syntect' 
CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=5.2.0 CARGO_PKG_VERSION_MAJOR=5 
CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' 
LD_LIBRARY_PATH=/tmp/tmp.cMARGshHTr/target/debug/deps rustc --crate-name 
syntect --edition=2021 /tmp/tmp.cMARGshHTr/registry/syntect-5.2.0/src/lib.rs 
--error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat 
--crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C 
debuginfo=2 --cfg 'feature="bincode"' --cfg 'feature="dump-create"' --cfg 
'feature="dump-load"' --cfg 'feature="flate2"' --cfg 'feature="fnv"' --cfg 
'feature="parsing"' --cfg 'feature="regex-syntax"' --check-cfg 
'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("bincode", "default", 
"default-fancy", "default-onig", "default-syntaxes", "default-themes", 
"dump-create", "dump-load", "fancy-regex", "flate2", "fnv", "html", "metadata", 
"onig", "parsing", "plist", "plist-load", "regex-fancy", "regex-onig", 
"regex-syntax", "yaml-load", "yaml-rust"))' -C metadata=0ee4becec6e981f5 -C 
extra-filename=-d39fa5ed81e06ea4 --out-dir 
/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps --target 
x86_64-unknown-linux-gnu -L 
dependency=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps -L 
dependency=/tmp/tmp.cMARGshHTr/target/debug/deps --extern 
bincode=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps/libbincode-ee92d44e8b5d49bf.rmeta
 --extern 
bitflags=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps/libbitflags-57cef26bd7c88b90.rmeta
 --extern 
flate2=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps/libflate2-af668d6abe3889c3.rmeta
 --extern 
fnv=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps/libfnv-93f935682af435a2.rmeta
 --extern 
once_cell=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps/libonce_cell-0671bacfbd54ba9e.rmeta
 --extern 
regex_syntax=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps/libregex_syntax-93ad76f4d1bdbed5.rmeta
 --extern 
serde=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps/libserde-bcc0a633b7b540a7.rmeta
 --extern 
serde_derive=/tmp/tmp.cMARGshHTr/target/debug/deps/libserde_derive-4cc79c7b0d94b2be.so
 --extern 
serde_json=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps/libserde_json-76449b5c416c26df.rmeta
 --extern 
thiserror=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps/libthiserror-0cae921dbf0a4136.rmeta
 --extern 
walkdir=/tmp/tmp.cMARGshHTr/target/x86_64-unknown-linux-gnu/debug/deps/libwalkdir-722bf57f697324d3.rmeta
 --cap-lints warn -C debuginfo=2 -C strip=none --cap-lints warn -C 
linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-Bsymbolic-functions -C 
link-arg=-flto=auto -C link-arg=-ffat-lto-objects -C link-arg=-Wl,-z,relro 
--remap-path-prefix 
/usr/share/cargo/registry/bat-0.25.0=/usr/share/cargo/registry/bat-0.25.0 
--remap-path-prefix /tmp/tmp.cMARGshHTr/registry=/usr/share/cargo/registry 
-Cforce-frame-pointers=yes`
2591s error[E0433]: failed to resolve: use of undeclared crate or module 
`regex_impl`
2591s   --> /usr/share/cargo/registry/syntect-5.2.0/src/parsing/regex.rs:37:9
2591s    |
2591s 37 |         regex_impl::Regex::new(regex_str).err()
2591s    |         ^^^^^^^^^^ use of undeclared crate or module `regex_impl`
2591s    |
2591s help: consider importing this struct through its public re-export
2591s    |
2591s 1  + use crate::parsing::Regex;
2591s    |
2591s help: if you import `Regex`, refer to it directly
2591s    |
2591s 37 -         regex_impl::Regex::new(regex_str).err()
2591s 37 +         Regex::new(regex_str).err()
2591s    |
2591s 
2591s error[E0433]: failed to resolve: use of undeclared crate or module 
`regex_impl`
2591s   --> /usr/share/cargo/registry/syntect-5.2.0/src/parsing/regex.rs:70:13
2591s    |
2591s 70 |             regex_impl::Regex::new(&self.regex_str).expect("regex 
string should be pre-tested")
2591s    |             ^^^^^^^^^^ use of undeclared crate or module `regex_impl`
2591s    |
2591s help: consider importing this struct through its public re-export
2591s    |
2591s 1  + use crate::parsing::Regex;
2591s    |
2591s help: if you import `Regex`, refer to it directly
2591s    |
2591s 70 -             regex_impl::Regex::new(&self.regex_str).expect("regex 
string should be pre-tested")
2591s 70 +             Regex::new(&self.regex_str).expect("regex string should 
be pre-tested")
2591s    |
2591s 
2592s error[E0433]: failed to resolve: use of undeclared crate or module 
`regex_impl`
2592s    --> /usr/share/cargo/registry/syntect-5.2.0/src/parsing/regex.rs:114:21
2592s     |
2592s 114 |             region: regex_impl::new_region(),
2592s     |                     ^^^^^^^^^^ use of undeclared crate or module 
`regex_impl`
2592s 
2593s error[E0433]: failed to resolve: use of undeclared crate or module 
`regex_impl`
2593s   --> /usr/share/cargo/registry/syntect-5.2.0/src/parsing/regex.rs:14:21
2593s    |
2593s 14 |     regex: OnceCell<regex_impl::Regex>,
2593s    |                     ^^^^^^^^^^ use of undeclared crate or module 
`regex_impl`
2593s 
2593s error[E0433]: failed to resolve: use of undeclared crate or module 
`regex_impl`
2593s   --> /usr/share/cargo/registry/syntect-5.2.0/src/parsing/regex.rs:20:13
2593s    |
2593s 20 |     region: regex_impl::Region,
2593s    |             ^^^^^^^^^^ use of undeclared crate or module `regex_impl`
2593s 
2593s error[E0433]: failed to resolve: use of undeclared crate or module 
`regex_impl`
2593s   --> /usr/share/cargo/registry/syntect-5.2.0/src/parsing/regex.rs:68:25
2593s    |
2593s 68 |     fn regex(&self) -> &regex_impl::Regex {
2593s    |                         ^^^^^^^^^^ use of undeclared crate or module 
`regex_impl`
2593s 
2593s For more information about this error, try `rustc --explain E0433`.
2593s error: could not compile `syntect` (lib) due to 6 previous errors
...
```

** Affects: rust-bat (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2120863

Title:
  syntect-5.2.0 causes rust-bat to fail to build with "use of undeclared
  crate or module `regex_impl`"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-bat/+bug/2120863/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to