diff options
| author | bors <bors@rust-lang.org> | 2013-05-19 17:13:34 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-19 17:13:34 -0700 |
| commit | 7396f7f004667610455557e7872330b59fafc79a (patch) | |
| tree | 3e20c14c516aaaca6c3cc03e63079d4146e1295e /src/rustllvm/RustWrapper.cpp | |
| parent | ebdb0dee272829f2410edd51acdb12f20721ce42 (diff) | |
| parent | e3a91f60c58d537945abc4c83b1b9f6ddcbe21fe (diff) | |
| download | rust-7396f7f004667610455557e7872330b59fafc79a.tar.gz rust-7396f7f004667610455557e7872330b59fafc79a.zip | |
auto merge of #6432 : thomaslee/rust/issue-4202-02, r=catamorphism
My earlier fix for #4202 would not work correctly if the trait being exported was a top-level item relative to the module from which it was being exported. An example that would not work correctly with the original patch:
// foo.rs
pub use Foo = self::Bar;
pub trait Bar {
pub fn bar() -> Self;
}
impl Bar for int {
pub fn bar() -> int { 42 }
}
// bar.rs
fn main() {
foo::Foo::bar()
}
This is now supported.
I believe this change will allow the GenericPath trait to be exported from core::path as Path in such a manner, which should allow #5389 to move forward.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
