Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump nom from 7.1.3 to 8.0.0 #1354

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bazelfe-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ exec = "0.3.1"
lazy_static = "1.5.0"
ignore = "0.4.20"
log = "0.4.26"
nom = "7.1.3"
nom = "8.0.0"
openssl = { version = "0.10.71", features = ["vendored"] }
pretty_env_logger = "0.5.0"
prost = "0.12.6"

Unchanged files with check annotations Beta

pub(in crate::source_dependencies) fn parser_to_unit<'a, F: 'a, O, E: ParseError<&'a str>>(
inner: F,
) -> impl FnMut(&'a str) -> IResult<&'a str, (), E>

Check failure on line 7 in bazelfe-core/src/source_dependencies/parser_helpers.rs

GitHub Actions / test (ubuntu-latest)

expected a `FnMut(&'a str)` closure, found `impl nom::Parser<&'a str, Output = (), Error = E>`
where
F: FnMut(&'a str) -> IResult<&'a str, O, E>,
{
pub(in crate::source_dependencies) fn eat_till_end_of_line(
input: &str,
) -> IResult<&str, (&str, &str)> {
map(

Check failure on line 21 in bazelfe-core/src/source_dependencies/parser_helpers.rs

GitHub Actions / test (ubuntu-latest)

expected function, found `impl nom::Parser<_, Output = (_, _), Error = _>`
tuple((
nom::bytes::complete::take_while(not_end_of_line),
nom::bytes::complete::take_while(|chr| chr == '\r'),
c.is_alphanumeric() || c == '_'
}
fn tuple_extractor<'a, E>() -> impl FnMut(&'a str) -> IResult<&str, (&str, Option<&str>), E>

Check failure on line 22 in bazelfe-core/src/source_dependencies/scala/mod.rs

GitHub Actions / test (ubuntu-latest)

expected a `FnMut(&'a str)` closure, found `impl nom::Parser<_, Output = (_, std::option::Option<_>), Error = _>`
where
E: ParseError<&'a str>,
{
|e| (e.1, e.3.map(|r| r.2)),
)
}
fn consume_selector<'a, E>() -> impl FnMut(&'a str) -> IResult<&str, SelectorType, E>

Check failure on line 53 in bazelfe-core/src/source_dependencies/scala/mod.rs

GitHub Actions / test (ubuntu-latest)

expected a `FnMut(&'a str)` closure, found `Choice<(impl Parser<&str, Output = ..., Error = ...>, ..., ...)>`
where
E: ParseError<&'a str>,
{
pub fn parse_import(line_number: u32, input: &str) -> IResult<&str, Import> {
let (input, _) = tuple((multispace0, tag("import"), space1, multispace0))(input)?;
let (input, extracted) = map(

Check failure on line 82 in bazelfe-core/src/source_dependencies/scala/mod.rs

GitHub Actions / test (ubuntu-latest)

expected function, found `impl nom::Parser<_, Output = _, Error = _>`
tuple((
opt(tag("_root_.")),
recognize(many1(tuple((
// START UTILITIES FOR PACAKGE PARSING
fn extract_package_from_line(ln: &str) -> Result<&str> {
let (remaining, res) = map(

Check failure on line 121 in bazelfe-core/src/source_dependencies/scala/mod.rs

GitHub Actions / test (ubuntu-latest)

expected function, found `impl nom::Parser<&str, Output = &str, Error = _>`
nom::combinator::complete(tuple((
space0,
tag("package"),
use nom::{bytes::complete::tag, combinator::map, sequence::tuple, IResult};
fn consume_quoted_strings(ln: &str) -> IResult<&str, Vec<String>> {
map(

Check failure on line 8 in bazelfe-core/src/jvm_indexer/popularity_parser.rs

GitHub Actions / test (ubuntu-latest)

expected function, found `impl nom::Parser<_, Output = _, Error = _>`
many0(tuple((
many0(nom::character::complete::none_of("\"'")),
alt((
multispace0,
))(input)?;
let (input, (extracted, opt_wildcard)) = map(

Check failure on line 27 in bazelfe-core/src/source_dependencies/java/mod.rs

GitHub Actions / test (ubuntu-latest)

expected function, found `impl nom::Parser<_, Output = (_, std::option::Option<_>), Error = _>`
tuple((
recognize(many1(tuple((
opt(tag(".")),
// START UTILITIES FOR PACAKGE PARSING
fn extract_package_from_line(ln: &str) -> Result<&str> {
let (_, res) = map(

Check failure on line 61 in bazelfe-core/src/source_dependencies/java/mod.rs

GitHub Actions / test (ubuntu-latest)

expected function, found `impl nom::Parser<_, Output = _, Error = _>`
nom::combinator::complete(tuple((
space0,
tag("package"),