about summary refs log tree commit diff
path: root/library/compiler-builtins/builtins-test
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-06-14 06:23:24 +0000
committerTrevor Gross <tmgross@umich.edu>2025-06-14 06:56:18 +0000
commit7222fa6f34af4e61bd9a2bad374c10cb935a3cf9 (patch)
tree472f4b87d9b71d2109f83dd192151a1050df5bca /library/compiler-builtins/builtins-test
parentc1cd1ef5fc3c18c0361f866c076c06d05a9e67c1 (diff)
downloadrust-7222fa6f34af4e61bd9a2bad374c10cb935a3cf9.tar.gz
rust-7222fa6f34af4e61bd9a2bad374c10cb935a3cf9.zip
Work around out-of-tree testing with a shim crate
Out-of-tree testing is broken with the most recent update from
rust-lang/rust because it makes `compiler-builtins` depend on `core` by
path, which isn't usually available. In order to enable testing outside
of rust-lang/rust, add a new crate `builtins-shim` that uses the same
source as `compiler-builtins` but drops the `core` dependency. This has
replaced `compiler-builtins` as the workspace member and entrypoint for
tests.
Diffstat (limited to 'library/compiler-builtins/builtins-test')
-rw-r--r--library/compiler-builtins/builtins-test/Cargo.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/compiler-builtins/builtins-test/Cargo.toml b/library/compiler-builtins/builtins-test/Cargo.toml
index c7742aa2427..093d4633f87 100644
--- a/library/compiler-builtins/builtins-test/Cargo.toml
+++ b/library/compiler-builtins/builtins-test/Cargo.toml
@@ -17,7 +17,7 @@ rustc_apfloat = "0.2.2"
 iai-callgrind = { version = "0.14.1", optional = true }
 
 [dependencies.compiler_builtins]
-path = "../compiler-builtins"
+path = "../builtins-shim"
 default-features = false
 features = ["unstable-public-internals"]