Skip to content

Commit 97db12b

Browse files
committed
Fix crate paths for recent rustc change.
Details: rust-lang/rust#54116
1 parent 43f081e commit 97db12b

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

bincode-transport/tests/bench.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
async_await
1515
)]
1616

17+
extern crate test;
18+
1719
use futures::{compat::TokioDefaultSpawner, prelude::*, spawn};
1820
use rpc::{
1921
client::{self, Client},
@@ -24,7 +26,7 @@ use std::{
2426
io,
2527
time::{Duration, Instant},
2628
};
27-
use test::stats::Stats;
29+
use self::test::stats::Stats;
2830

2931
async fn bench() -> io::Result<()> {
3032
let listener = bincode_transport::listen(&"0.0.0.0:0".parse().unwrap())?;

plugins/src/lib.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55

66
#![feature(plugin_registrar, rustc_private)]
77

8+
extern crate rustc_plugin;
9+
extern crate smallvec;
10+
extern crate syntax;
11+
812
use itertools::Itertools;
9-
use rustc_plugin::Registry;
10-
use smallvec::SmallVec;
11-
use syntax::{
13+
use self::rustc_plugin::Registry;
14+
use self::smallvec::SmallVec;
15+
use self::syntax::{
1216
ast::{self, Ident, TraitRef, Ty, TyKind},
1317
ext::base::{DummyResult, ExtCtxt, MacEager, MacResult},
1418
ext::quote::rt::Span,

tarpc/tests/latency.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
)]
1616
#![plugin(tarpc_plugins)]
1717

18+
extern crate test;
19+
1820
use futures::{compat::TokioDefaultSpawner, future, prelude::*, spawn};
1921
use rpc::{
2022
client, context,
@@ -24,7 +26,7 @@ use std::{
2426
io,
2527
time::{Duration, Instant},
2628
};
27-
use test::stats::Stats;
29+
use self::test::stats::Stats;
2830

2931
mod ack {
3032
tarpc::service! {

0 commit comments

Comments
 (0)