Files
graphify/tests/fixtures/crate_b/src/lib.rs
T

19 lines
534 B
Rust

// crate_b has no dependency on crate_a.
// These calls use Type::method() (scoped_identifier) and common names that
// previously produced spurious INFERRED edges into crate_a (#908).
pub struct Server;
impl Server {
pub fn run(&self) {
// Server::start() — scoped call, should not wire to crate_a::start
let _ = Server::start();
// Url::parse() — scoped call, should not wire to crate_a::parse
let _ = Url::parse("http://example.com");
}
fn start() -> bool {
false
}
}