mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00

Additionally, remove unused `tests/ui/auxiliary/svh-*` crates that are duplicates of `tests/ui/svh/auxiliary/svh-*`.
21 lines
535 B
Rust
21 lines
535 B
Rust
//! This test verifies that the Signature Version Hash (SVH) system correctly identifies
|
|
//! when changes to an auxiliary crate do not affect its public API.
|
|
//!
|
|
//! Specifically, it checks that adding non-public items to a crate does not alter
|
|
//! its SVH, preventing unnecessary recompilations of dependent crates.
|
|
|
|
//@ run-pass
|
|
|
|
// Note that these aux-build directives must be in this order
|
|
|
|
//@ aux-build:svh-a-base.rs
|
|
//@ aux-build:svh-b.rs
|
|
//@ aux-build:svh-a-base.rs
|
|
|
|
extern crate a;
|
|
extern crate b;
|
|
|
|
fn main() {
|
|
b::foo()
|
|
}
|