-
Notifications
You must be signed in to change notification settings - Fork 149
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
Fix regex for the binary_stats
command
#1884
Conversation
How it broken, is there some error? |
Yeah, it uses a |
So, it wasn't tested in CI, i guess? Is there way to reproduce error without rebuilding compiler? |
Yeah, the collector has many commands that are not tested in CI.
Sure, e.g. ./target/release/collector binary_stats \
+da02fff3b6e4e27156054dcdda6675fe2a2591a6 \
--rustc2 +31075bb493f49c2b739ff20b2e96a9045e1eba13 \
--include helloworld \
--profile Debug \
--backend Llvm |
|
Yeah, you need to exclude |
Ok, this is something
|
Hmm, linux machine:
|
Yeah, that's the error that this PR will solve. |
Well, rust-lang/regex#982, kind of. Some cargo feature unification + platform dependent features. |
Without size regression: diff --git a/Cargo.lock b/Cargo.lock
index 4e9440d2..90b0c872 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -378,7 +378,7 @@ dependencies = [
"num_cpus",
"object",
"rayon",
- "regex",
+ "regex-lite",
"reqwest",
"rustc-demangle",
"semver",
@@ -1948,6 +1948,12 @@ dependencies = [
"regex-syntax",
]
+[[package]]
+name = "regex-lite"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "30b661b2f27137bdbc16f00eda72866a92bb28af1753ffbd56744fb6e2e9cd8e"
+
[[package]]
name = "regex-syntax"
version = "0.6.28"
diff --git a/collector/Cargo.toml b/collector/Cargo.toml
index f0fdbd35..96fa01d4 100644
--- a/collector/Cargo.toml
+++ b/collector/Cargo.toml
@@ -40,7 +40,7 @@ console = "0.15"
object = "0.32.1"
tabled = { version = "0.14.0" , features = ["ansi-str"]}
humansize = "2.1.3"
-regex = { version = "1.7.1", default-features = false, features = ["std", "perf"] }
+regex = { package = "regex-lite", version = "0.1" }
analyzeme = { git = "https://github.com/rust-lang/measureme", branch = "stable" }
benchlib = { path = "benchlib" }
|
cursed stage-1 config |
I would prefer to just keep the popular option, i.e. just use |
This can actually use |
Regressed in #1833.