Skip to content

Commit ff9e0b0

Browse files
committed
Normalize away paths into the cargo registry
1 parent 3ce9420 commit ff9e0b0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/compiletest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ regexes! {
112112
"[^ `]*/(rust[^/]*|checkout)/library/" => "RUSTLIB/",
113113
// erase platform file paths
114114
"sys/[a-z]+/" => "sys/PLATFORM/",
115+
// erase paths into the crate registry
116+
r"[^ ]*/\.cargo/registry/.*/(.*\.rs)" => "CARGO_REGISTRY/$1",
115117
}
116118

117119
fn ui(mode: Mode, path: &str) -> Result<()> {

tests/fail/tokio_mvp.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: unsupported operation: can't call foreign function: epoll_create1
2-
--> /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.8.4/src/sys/PLATFORM/selector/epoll.rs:LL:CC
2+
--> CARGO_REGISTRY/epoll.rs:LL:CC
33
|
44
LL | syscall!(epoll_create1(flag)).map(|ep| Selector {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't call foreign function: epoll_create1

0 commit comments

Comments
 (0)