mirror of
https://github.com/rust-lang/cargo
synced 2024-06-30 23:14:41 +00:00
Compare commits
6 Commits
0685622caf
...
550c4e31e5
Author | SHA1 | Date | |
---|---|---|---|
|
550c4e31e5 | ||
|
9441b91186 | ||
|
32cdb261ef | ||
|
3f807228d8 | ||
|
10cd3ca3e9 | ||
|
ed027736e7 |
|
@ -171,7 +171,7 @@ fn add_common_redactions(subs: &mut snapbox::Redactions) {
|
|||
.unwrap();
|
||||
subs.insert(
|
||||
"[FILE_SIZE]",
|
||||
regex!(r"(?<redacted>[0-9]+(\.[0-9]+)([a-zA-Z]i)?)B"),
|
||||
regex!(r"(?<redacted>[0-9]+(\.[0-9]+)?([a-zA-Z]i)?)B\s"),
|
||||
)
|
||||
.unwrap();
|
||||
subs.insert(
|
||||
|
@ -200,6 +200,27 @@ fn add_common_redactions(subs: &mut snapbox::Redactions) {
|
|||
regex!(r"ns/iter \(\+/- (?<redacted>[0-9]+(\.[0-9]+)?)\)"),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
// Following 3 subs redact:
|
||||
// "1719325877.527949100s, 61549498ns after last build at 1719325877.466399602s"
|
||||
// "1719503592.218193216s, 1h 1s after last build at 1719499991.982681034s"
|
||||
// into "[DIRTY_REASON_NEW_TIME], [DIRTY_REASON_DIFF] after last build at [DIRTY_REASON_OLD_TIME]"
|
||||
// The ordering of these 3 subs matters.
|
||||
subs.insert(
|
||||
"[DIRTY_REASON_NEW_TIME]",
|
||||
regex!(r"(?<redacted>[0-9]+(\.[0-9]+)?s), (\s?[0-9]+(\.[0-9]+)?(s|ns|h))+ after last build at ([0-9]+(\.[0-9]+)?s)"),
|
||||
)
|
||||
.unwrap();
|
||||
subs.insert(
|
||||
"[DIRTY_REASON_DIFF]",
|
||||
regex!(r"\[\w+\], (?<redacted>(\s?[0-9]+(\.[0-9]+)?(s|ns|h))+) after last build at ([0-9]+(\.[0-9]+)?s)"),
|
||||
)
|
||||
.unwrap();
|
||||
subs.insert(
|
||||
"[DIRTY_REASON_OLD_TIME]",
|
||||
regex!(r"\[\w+\], \[\w+\] after last build at (?<redacted>[0-9]+(\.[0-9]+)?s)"),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
static MIN_LITERAL_REDACTIONS: &[(&str, &str)] = &[
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user