rust/src
bors 3dfbc88a62 Auto merge of #46550 - jseyfried:cleanup_builtin_hygiene, r=nrc
macros: hygienize use of `core`/`std` in builtin macros

Today, if a builtin macro wants to access an item from `core` or `std` (depending `#![no_std]`), it generates `::core::path::to::item` or `::std::path::to::item` respectively (c.f. `fn std_path()` in `libsyntax/ext/base.rs`).

This PR refactors the builtin macros to instead always emit `$crate::path::to::item` here. That is, the def site of builtin macros is taken to be in `extern crate core;` or `extern crate std;`. Since builtin macros are macros 1.0 (i.e. mostly unhygienic), changing the def site can only effect the resolution of `$crate`.

r? @nrc
2017-12-13 11:09:55 +00:00
..
binaryen@1c9bf65aa0
bootstrap
build_helper
ci Remove armv5te target from dist-various-1 2017-12-11 22:00:25 -02:00
dlmalloc@d3812c3acc
doc fix markdown file differences 2017-12-07 23:56:21 +01:00
etc
grammar
jemalloc@1f5a28755e
liballoc Auto merge of #46411 - rillian:str_ascii, r=kennytm 2017-12-12 03:30:43 +00:00
liballoc_jemalloc
liballoc_system
libarena
libbacktrace
libcompiler_builtins@18feaccbfd
libcore Auto merge of #46647 - varkor:contrib-1, r=sfackler 2017-12-12 15:54:13 +00:00
libfmt_macros
libgetopts
libgraphviz
liblibc@1a2f9639f8
libpanic_abort
libpanic_unwind
libproc_macro
libprofiler_builtins
librustc Auto merge of #46550 - jseyfried:cleanup_builtin_hygiene, r=nrc 2017-12-13 11:09:55 +00:00
librustc_allocator
librustc_apfloat
librustc_asan
librustc_back
librustc_binaryen
librustc_borrowck
librustc_const_eval
librustc_const_math
librustc_cratesio_shim
librustc_data_structures Use Try syntax for Option in place of macros or match 2017-12-09 14:18:33 -08:00
librustc_driver move resolve_lifetimes into a proper query 2017-12-11 10:11:13 -05:00
librustc_errors Resolve type on return type suggestion 2017-12-09 15:19:39 -08:00
librustc_incremental
librustc_lint
librustc_llvm
librustc_lsan
librustc_metadata Auto merge of #46419 - jseyfried:all_imports_in_metadata, r=nrc 2017-12-13 08:32:25 +00:00
librustc_mir Refactored and tidied up report function 2017-12-11 22:20:12 +00:00
librustc_msan
librustc_passes Auto merge of #46570 - AgustinCB:issue-46553, r=oli-obk 2017-12-12 23:08:56 +00:00
librustc_platform_intrinsics
librustc_plugin
librustc_privacy
librustc_resolve Auto merge of #46550 - jseyfried:cleanup_builtin_hygiene, r=nrc 2017-12-13 11:09:55 +00:00
librustc_save_analysis
librustc_trans rustc_trans: Fix indentation in trans_set_discr. 2017-12-10 19:58:17 +01:00
librustc_trans_utils make fn_sig().subst() ICE when used with a closure 2017-12-07 05:28:01 -05:00
librustc_tsan
librustc_typeck Auto merge of #46657 - nikomatsakis:resolve-lifetimes-query, r=arielb1 2017-12-12 00:52:20 +00:00
librustdoc Auto merge of #46419 - jseyfried:all_imports_in_metadata, r=nrc 2017-12-13 08:32:25 +00:00
libserialize Use Try syntax for Option in place of macros or match 2017-12-09 14:18:33 -08:00
libstd Rename never_type_impls gate to never_type 2017-12-12 14:03:03 +08:00
libstd_unicode Auto merge of #46411 - rillian:str_ascii, r=kennytm 2017-12-12 03:30:43 +00:00
libsyntax Auto merge of #46550 - jseyfried:cleanup_builtin_hygiene, r=nrc 2017-12-13 11:09:55 +00:00
libsyntax_ext Auto merge of #46550 - jseyfried:cleanup_builtin_hygiene, r=nrc 2017-12-13 11:09:55 +00:00
libsyntax_pos Refactor MarkData field modern: bool to kind: MarkKind. 2017-12-12 13:15:09 -08:00
libterm Use Try syntax for Option in place of macros or match 2017-12-09 14:18:33 -08:00
libtest Auto merge of #46620 - bjorn3:remove-test-metric, r=kennytm 2017-12-10 16:31:32 +00:00
libunwind
llvm@6d08185a5c
rt
rtstartup
rustc
rustllvm Fix return value of LLVMRustMetadataAsValue 2017-12-12 17:27:37 +00:00
test Auto merge of #46550 - jseyfried:cleanup_builtin_hygiene, r=nrc 2017-12-13 11:09:55 +00:00
tools Imply must-compile-successfully in ui-tests when the run-pass flag is present. 2017-12-10 21:14:57 +00:00
Cargo.lock
Cargo.toml
stage0.txt