diff options
| author | bors <bors@rust-lang.org> | 2015-08-05 10:30:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-08-05 10:30:41 +0000 |
| commit | 0dc2910c9c7dc322a5a459c91688dc62ccce603c (patch) | |
| tree | 8a553bafeeed8860540c1ac489ed216d19550897 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 6210dcdddb7d7dab3f8fd0e9016b119f82408324 (diff) | |
| parent | dcf7ac6f9a84ae52b07f9d7310637c9f9d9815ce (diff) | |
| download | rust-0dc2910c9c7dc322a5a459c91688dc62ccce603c.tar.gz rust-0dc2910c9c7dc322a5a459c91688dc62ccce603c.zip | |
Auto merge of #27458 - mitaa:local_cpath, r=nikomatsakis
This changes the current behaviour for two cases (that I know of)
```rust
mod foo {
extern crate bar;
}
// `bar::` changes to `foo::bar::`
```
```rust
extern crate bar as quux;
// `bar::` changes to `quux::`
```
For example:
```rust
mod foo {
extern crate core;
}
fn assert_clone<T>() where T : Clone { }
fn main() {
assert_clone::<foo::core::atomic::AtomicBool>();
// error: the trait `core::clone::Clone` is not implemented for the type `core::atomic::AtomicBool` [E0277]
// changes to
// error: the trait `foo::core::clone::Clone` is not implemented for the type `foo::core::atomic::AtomicBool` [E0277]
}
```
Notably the following test case broke:
```rust
#[bench]
fn bar(x: isize) { }
//~^ ERROR mismatched types
//~| expected `fn(&mut test::Bencher)`
// changed to
//~| expected `fn(&mut __test::test::Bencher)`
```
If a crate is linked multiple times the path with the least segments is stored.
Partially addresses #1920. (this doesn't solve the issue raised about re-exports)
r? @nikomatsakis
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
