about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-01 12:45:52 +0000
committerbors <bors@rust-lang.org>2018-12-01 12:45:52 +0000
commitd311571906bd2b22e206b9a84ccb888e248820df (patch)
tree15de266b8c52d7b39700d344996438d3433dc66b /src/libstd/sys/unix/stack_overflow.rs
parentd3ed34824c31f303b98855fee6fc9213dff1f295 (diff)
parent549bd45e9eb13e501416e17887b65ad4189ebe6b (diff)
downloadrust-d311571906bd2b22e206b9a84ccb888e248820df.tar.gz
rust-d311571906bd2b22e206b9a84ccb888e248820df.zip
Auto merge of #55275 - petrochenkov:extself, r=eddyb
experiment: Support aliasing local crate root in extern prelude

This PR provides some minimally invasive solution for the 2018 edition migration issue described in https://github.com/rust-lang/rust/issues/54647 and affecting proc macro crates.

`extern crate NAME as RENAME;` now accepts `NAME`=`self` and interprets it as referring to the local crate.
As with other `extern crate` items, `RENAME` in this case gets into extern prelude in accordance with https://github.com/rust-lang/rust/pull/54658, thus resolving https://github.com/rust-lang/rust/issues/54647.
```rust
extern crate self as serde; // Adds local crate to extern prelude as `serde`
```
This solution doesn't introduce any new syntax and has minimal maintenance cost, so it can be easily deprecated if something better is found in the future.

Closes https://github.com/rust-lang/rust/issues/54647
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions