parent
1b13db26a5
commit
19a72089c2
@ -1,29 +0,0 @@
|
|||||||
From e7626a25471d2db29e7cdee81308ee4604b41544 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Igor Raits <i.gnatenko.brain@gmail.com>
|
|
||||||
Date: Mon, 2 Mar 2020 12:14:11 +0100
|
|
||||||
Subject: [PATCH] build.rs: Simplify check for version
|
|
||||||
|
|
||||||
This also fixes build with rustc shipped by distributions.
|
|
||||||
|
|
||||||
Fixes: https://gitlab.com/CreepySkeleton/proc-macro-error/issues/8
|
|
||||||
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
|
|
||||||
---
|
|
||||||
build.rs | 4 +---
|
|
||||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/build.rs b/build.rs
|
|
||||||
index fb4384c..f2ac6a7 100644
|
|
||||||
--- a/build.rs
|
|
||||||
+++ b/build.rs
|
|
||||||
@@ -1,7 +1,5 @@
|
|
||||||
fn main() {
|
|
||||||
- let (version, _, _) = version_check::triple().unwrap();
|
|
||||||
-
|
|
||||||
- if version.at_most("1.36.0") {
|
|
||||||
+ if version_check::is_max_version("1.36.0").unwrap_or(false) {
|
|
||||||
println!("cargo:rustc-cfg=always_assert_unwind");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.25.1
|
|
||||||
|
|
@ -1 +1 @@
|
|||||||
SHA512 (proc-macro-error-attr-0.4.10.crate) = 5098c75fbb932fa6343dcadf1bfb147b8c328d8bf87ecfa81175cc4e944e2cd72776f830df62c07ee90ca40d3218de5277e33d305d69fcc87c856d05e30f6cac
|
SHA512 (proc-macro-error-attr-0.4.11.crate) = a1e23486c7f4af41b419b4c833789e0edd0506bc774e3504fff2bc5bc88c2f8799ae545b79138e6ce686f479ec703f90112589639bae861b99daef0f08496885
|
||||||
|
Loading…
Reference in new issue