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-06 15:08:11 +0000
committerbors <bors@rust-lang.org>2018-12-06 15:08:11 +0000
commit4bb5d35659b6d8579007f49db09aa1d35782b834 (patch)
tree270fb1c0ed6763b1ed5cfba48e663c157bc5a8b8 /src/libstd/sys/unix/stack_overflow.rs
parent367e783e6f66a4dba32decdc68a262953d2f3f1b (diff)
parenteb1d2e637ee9be0d111feb435b068081f10e6ec3 (diff)
downloadrust-4bb5d35659b6d8579007f49db09aa1d35782b834.tar.gz
rust-4bb5d35659b6d8579007f49db09aa1d35782b834.zip
Auto merge of #56392 - petrochenkov:regensym, r=oli-obk
Delay gensym creation for "underscore items" (`use foo as _`/`const _`) until name resolution

So they cannot be cloned by macros. See https://github.com/rust-lang/rust/pull/56303 for the discussion.

Mostly fix cross-crate use of underscore items by inverting the "gensyms are lost in metadata" bug as described in https://github.com/rust-lang/rust/pull/56303#issuecomment-442464695.
Fix unused import warnings for single-segment imports (first commit) and `use crate_name as _` imports (as specified in https://github.com/rust-lang/rust/pull/56303#issuecomment-442274118).
Prohibit accidentally implemented `static _: TYPE = EXPR;` (cc https://github.com/rust-lang/rust/pull/55983).
Add more tests for `use foo as _` imports.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions