From b0fd3faf36c94c3fc52151c6aa82b36b43b7cceb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 21 Aug 2020 13:19:31 +0200 Subject: Switch to expect_test from crates.io --- crates/hir_def/Cargo.toml | 2 +- crates/hir_def/src/import_map.rs | 2 +- crates/hir_def/src/item_tree/tests.rs | 2 +- crates/hir_def/src/nameres/tests.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/hir_def') diff --git a/crates/hir_def/Cargo.toml b/crates/hir_def/Cargo.toml index 403bc2aff..57745322f 100644 --- a/crates/hir_def/Cargo.toml +++ b/crates/hir_def/Cargo.toml @@ -32,4 +32,4 @@ cfg = { path = "../cfg" } tt = { path = "../tt" } [dev-dependencies] -expect = { path = "../expect" } +expect-test = "0.1" diff --git a/crates/hir_def/src/import_map.rs b/crates/hir_def/src/import_map.rs index d32a0bdaf..a442fb63a 100644 --- a/crates/hir_def/src/import_map.rs +++ b/crates/hir_def/src/import_map.rs @@ -328,7 +328,7 @@ pub fn search_dependencies<'a>( #[cfg(test)] mod tests { use base_db::{fixture::WithFixture, SourceDatabase, Upcast}; - use expect::{expect, Expect}; + use expect_test::{expect, Expect}; use crate::{test_db::TestDB, AssocContainerId, Lookup}; diff --git a/crates/hir_def/src/item_tree/tests.rs b/crates/hir_def/src/item_tree/tests.rs index 9c5bf72bd..620e697d4 100644 --- a/crates/hir_def/src/item_tree/tests.rs +++ b/crates/hir_def/src/item_tree/tests.rs @@ -1,5 +1,5 @@ use base_db::fixture::WithFixture; -use expect::{expect, Expect}; +use expect_test::{expect, Expect}; use hir_expand::{db::AstDatabase, HirFileId, InFile}; use rustc_hash::FxHashSet; use std::sync::Arc; diff --git a/crates/hir_def/src/nameres/tests.rs b/crates/hir_def/src/nameres/tests.rs index b105d56b2..8aaf7a158 100644 --- a/crates/hir_def/src/nameres/tests.rs +++ b/crates/hir_def/src/nameres/tests.rs @@ -7,7 +7,7 @@ mod primitives; use std::sync::Arc; use base_db::{fixture::WithFixture, SourceDatabase}; -use expect::{expect, Expect}; +use expect_test::{expect, Expect}; use test_utils::mark; use crate::{db::DefDatabase, nameres::*, test_db::TestDB}; -- cgit v1.2.3