From 6ae1fd8fba04f84e19e6dc0880d66a7806afd458 Mon Sep 17 00:00:00 2001 From: Ivan Krivosheev Date: Fri, 28 Oct 2022 13:41:17 +0300 Subject: [PATCH] Increase rust min version up to 1.50 --- .github/workflows/ci.yml | 4 ++-- Cargo.toml | 2 +- README.md | 4 ++-- src/error.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 052748865..cc9e66d5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: [push, pull_request] env: - RUST_MINVERSION: 1.41.1 + RUST_MINVERSION: "1.50" CARGO_INCREMENTAL: 0 CARGO_NET_RETRY: 10 @@ -18,7 +18,7 @@ jobs: - stable - beta - nightly - - 1.48.0 + - 1.50.0 features: - '' diff --git a/Cargo.toml b/Cargo.toml index 37066f63b..82e637695 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ edition = "2018" autoexamples = false # also update in README.md (badge and "Rust version requirements" section) -rust-version = "1.48" +rust-version = "1.50" include = [ "CHANGELOG.md", diff --git a/README.md b/README.md index f2c1b0528..1df50cc29 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Build Status](https://github.com/Geal/nom/actions/workflows/ci.yml/badge.svg)](https://github.com/Geal/nom/actions/workflows/ci.yml) [![Coverage Status](https://coveralls.io/repos/github/Geal/nom/badge.svg?branch=main)](https://coveralls.io/github/Geal/nom?branch=main) [![Crates.io Version](https://img.shields.io/crates/v/nom.svg)](https://crates.io/crates/nom) -[![Minimum rustc version](https://img.shields.io/badge/rustc-1.48.0+-lightgray.svg)](#rust-version-requirements-msrv) +[![Minimum rustc version](https://img.shields.io/badge/rustc-1.50.0+-lightgray.svg)](#rust-version-requirements-msrv) nom is a parser combinators library written in Rust. Its goal is to provide tools to build safe parsers without compromising the speed or memory consumption. To @@ -207,7 +207,7 @@ Some benchmarks are available on [Github](https://github.com/Geal/nom_benchmarks ## Rust version requirements (MSRV) -The 7.0 series of nom supports **Rustc version 1.48 or greater**. It is known to work properly on Rust 1.41.1 but there is no guarantee it will stay the case through this major release. +The 7.0 series of nom supports **Rustc version 1.50 or greater**. It is known to work properly on Rust 1.41.1 but there is no guarantee it will stay the case through this major release. The current policy is that this will only be updated in the next major nom release. diff --git a/src/error.rs b/src/error.rs index 9462924a4..5652d1ca4 100644 --- a/src/error.rs +++ b/src/error.rs @@ -152,7 +152,7 @@ pub fn append_error>(input: I, kind: ErrorKind, other: E) -> pub struct VerboseError { /// List of errors accumulated by `VerboseError`, containing the affected /// part of input data, and some context - pub errors: Vec<(I, VerboseErrorKind)>, + pub errors: crate::lib::std::vec::Vec<(I, VerboseErrorKind)>, } #[cfg(feature = "alloc")]