Skip to content

Commit e1061fe

Browse files
feat: impl Error from core (#1121)
1 parent a2889a0 commit e1061fe

File tree

10 files changed

+12
-14
lines changed

10 files changed

+12
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ You can find more projects and ecosystem tools in the [awesome-pest](https://git
202202

203203
## Minimum Supported Rust Version (MSRV)
204204

205-
This library should always compile with default features on **Rust 1.80.0**.
205+
This library should always compile with default features on **Rust 1.81.0**.
206206

207207
## no_std support
208208

bootstrap/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/pest-parser/pest"
99
documentation = "https://docs.rs/pest"
1010
publish = false
1111
license = "MIT OR Apache-2.0"
12-
rust-version = "1.80"
12+
rust-version = "1.81"
1313

1414
[dependencies]
1515
pest_generator = "2.1.1" # Use the crates-io version, which (should be) known-good
@@ -19,4 +19,4 @@ quote = "1.0"
1919
default = []
2020
# Whether or not the bootstrapper should put the generated .rs file in the
2121
# source tree or in the output tree
22-
not-bootstrap-in-src = []
22+
not-bootstrap-in-src = []

debugger/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ keywords = ["pest", "grammar", "debugger"]
1414
categories = ["parsing"]
1515
license = "MIT OR Apache-2.0"
1616
readme = "_README.md"
17-
rust-version = "1.80"
17+
rust-version = "1.81"
1818

1919
[dependencies]
2020
pest = { path = "../pest", version = "2.8.2" }

derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = ["pest", "parser", "peg", "grammar"]
1111
categories = ["parsing"]
1212
license = "MIT OR Apache-2.0"
1313
readme = "_README.md"
14-
rust-version = "1.80"
14+
rust-version = "1.81"
1515

1616
[lib]
1717
name = "pest_derive"

generator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = ["pest", "generator"]
1111
categories = ["parsing"]
1212
license = "MIT OR Apache-2.0"
1313
readme = "_README.md"
14-
rust-version = "1.80"
14+
rust-version = "1.81"
1515

1616
[features]
1717
default = ["std"]

grammars/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = ["pest", "parser", "peg", "grammar"]
1111
categories = ["parsing"]
1212
license = "MIT OR Apache-2.0"
1313
readme = "_README.md"
14-
rust-version = "1.80"
14+
rust-version = "1.81"
1515

1616
[dependencies]
1717
pest = { path = "../pest", version = "2.8.2" }

meta/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include = [
1919
"_README.md",
2020
"LICENSE-*",
2121
]
22-
rust-version = "1.80"
22+
rust-version = "1.81"
2323

2424
[dependencies]
2525
pest = { path = "../pest", version = "2.8.2" }

pest/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = ["pest", "parser", "peg", "grammar"]
1111
categories = ["parsing"]
1212
license = "MIT OR Apache-2.0"
1313
readme = "_README.md"
14-
rust-version = "1.80"
14+
rust-version = "1.81"
1515

1616
[features]
1717
default = ["std", "memchr"]

pest/src/error.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ pub struct Error<R> {
4242
parse_attempts: Option<ParseAttempts<R>>,
4343
}
4444

45-
#[cfg(feature = "std")]
4645
impl<R: RuleType> core::error::Error for Error<R> {}
4746

4847
/// Different kinds of parsing errors.
@@ -62,8 +61,7 @@ pub enum ErrorVariant<R> {
6261
},
6362
}
6463

65-
#[cfg(feature = "std")]
66-
impl<R: RuleType> std::error::Error for ErrorVariant<R> {}
64+
impl<R: RuleType> core::error::Error for ErrorVariant<R> {}
6765

6866
/// Where an `Error` has occurred.
6967
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
@@ -784,7 +782,7 @@ mod miette_adapter {
784782
}
785783
}
786784

787-
impl<R> std::error::Error for MietteAdapter<R>
785+
impl<R> core::error::Error for MietteAdapter<R>
788786
where
789787
R: RuleType,
790788
Self: fmt::Debug + fmt::Display,

vm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = ["pest", "vm"]
1111
categories = ["parsing"]
1212
license = "MIT OR Apache-2.0"
1313
readme = "_README.md"
14-
rust-version = "1.80"
14+
rust-version = "1.81"
1515

1616
[dependencies]
1717
pest = { path = "../pest", version = "2.8.2" }

0 commit comments

Comments
 (0)