diff --git a/.cargo/config.toml b/.cargo/config.toml index 7a21407..4d50efb 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,3 @@ [alias] -dev = "watch -x build -x fmt -x clippy -x test" +dev = "watch -x build -x fmt -x clippy -x test -x expansion-tests" +expansion-tests = "test --test expansion -- --ignored" diff --git a/tests/expansion/expected/borrow.rs b/tests/expansion/expected/borrow.rs index 5f2ab92..26a5801 100644 --- a/tests/expansion/expected/borrow.rs +++ b/tests/expansion/expected/borrow.rs @@ -48,7 +48,7 @@ pub const field: test::TestDescAndFn = test::TestDescAndFn { }; fn field() { let name = "Liv"; - let user = User { name: &name }; + let user = User { name }; let data = Data { user: &user }; match ( &{ diff --git a/tests/expansion/expected/broken.rs b/tests/expansion/expected/broken.rs index 3e80826..fb8e61a 100644 --- a/tests/expansion/expected/broken.rs +++ b/tests/expansion/expected/broken.rs @@ -23,7 +23,6 @@ pub const broken: test::TestDescAndFn = test::TestDescAndFn { }, testfn: test::StaticTestFn(#[coverage(off)] || test::assert_test_result(broken())), }; - fn broken() { std::env::set_var( "CARGO_MANIFEST_DIR_OVERRIDE",