b349036e5f
This replaces the link meta attributes with a pkgid attribute and uses a hash of this as the crate hash. This makes the crate hash computable by things other than the Rust compiler. It also switches the hash function ot SHA1 since that is much more likely to be available in shell, Python, etc than SipHash. Fixes #10188, #8523.
18 lines
338 B
Rust
18 lines
338 B
Rust
// aux-build:trait_default_method_xc_aux.rs
|
|
|
|
extern mod aux = "trait_default_method_xc_aux";
|
|
use aux::A;
|
|
|
|
pub struct a_struct { x: int }
|
|
|
|
impl A for a_struct {
|
|
fn f(&self) -> int { 10 }
|
|
}
|
|
|
|
// This function will need to get inlined, and badness may result.
|
|
pub fn welp<A>(x: A) -> A {
|
|
let a = a_struct { x: 0 };
|
|
a.g();
|
|
x
|
|
}
|