rust/src
Alex Crichton 5f006cebfc rustc: Tweak #[target_feature] syntax
This is an implementation of the `#[target_feature]` syntax-related changes of
[RFC 2045][rfc]. Notably two changes have been implemented:

* The new syntax is `#[target_feature(enable = "..")]` instead of
  `#[target_feature = "+.."]`. The `enable` key is necessary instead of the `+`
  to indicate that a feature is being enabled, and a sub-list is used for
  possible expansion in the future. Additionally within this syntax the feature
  names being enabled are now whitelisted against a known set of target feature
  names that we know about.

* The `#[target_feature]` attribute can only be applied to unsafe functions. It
  was decided in the RFC that invoking an instruction possibly not defined for
  the current processor is undefined behavior, so to enable this feature for now
  it requires an `unsafe` intervention.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/2045-target-feature.md
2018-01-13 10:07:18 -08:00
..
binaryen@1c9bf65aa0
bootstrap Auto merge of #46592 - o01eg:fix-45345, r=alexcrichton 2018-01-13 05:02:04 +00:00
build_helper
ci Rollup merge of #47283 - malbarbo:musl-1.1.18, r=alexcrichton 2018-01-13 02:26:27 +08:00
dlmalloc@d3812c3acc
doc Rollup merge of #47301 - GuillaumeGomez:fix-error-index-display, r=QuietMisdreavus 2018-01-09 22:28:26 -05:00
etc
grammar
jemalloc@1f5a28755e
liballoc Auto merge of #46461 - zackmdavis:elemental_method_suggestion_jamboree, r=estebank 2018-01-13 02:15:19 +00:00
liballoc_jemalloc
liballoc_system
libarena Rollup merge of #47069 - Kagamihime:master, r=nrc 2018-01-13 02:26:23 +08:00
libbacktrace
libcompiler_builtins@0ba07e4926
libcore Rollup merge of #47365 - Diggsey:issue-42630, r=alexcrichton 2018-01-13 03:17:05 +08:00
libfmt_macros
libgetopts
libgraphviz
liblibc@2b4cd1016b
libpanic_abort
libpanic_unwind
libproc_macro Auto merge of #46551 - jseyfried:improve_legacy_modern_macro_interaction, r=nrc 2018-01-12 10:00:09 +00:00
libprofiler_builtins
librustc rustc: Tweak #[target_feature] syntax 2018-01-13 10:07:18 -08:00
librustc_allocator
librustc_apfloat
librustc_asan
librustc_back Rollup merge of #47328 - mbrubeck:fs_read, r=sfackler 2018-01-13 02:26:35 +08:00
librustc_binaryen
librustc_borrowck Rollup merge of #47258 - rkruppe:struct-assert, r=eddyb 2018-01-09 03:37:16 +08:00
librustc_const_eval Use delay_span_bug() over debug!() 2018-01-13 00:54:56 +09:00
librustc_const_math
librustc_cratesio_shim
librustc_data_structures
librustc_driver Rollup merge of #47331 - michaelwoerister:measure-depgraph-loading, r=alexcrichton 2018-01-13 02:26:37 +08:00
librustc_errors
librustc_incremental Rollup merge of #47328 - mbrubeck:fs_read, r=sfackler 2018-01-13 02:26:35 +08:00
librustc_lint Rollup merge of #47262 - estebank:issue-45562, r=petrochenkov 2018-01-09 22:28:24 -05:00
librustc_llvm
librustc_lsan
librustc_metadata Auto merge of #47181 - michaelwoerister:var-len-def-index, r=eddyb 2018-01-13 09:11:59 +00:00
librustc_mir Rollup merge of #47328 - mbrubeck:fs_read, r=sfackler 2018-01-13 02:26:35 +08:00
librustc_msan
librustc_passes
librustc_platform_intrinsics
librustc_plugin
librustc_privacy
librustc_resolve Auto merge of #47181 - michaelwoerister:var-len-def-index, r=eddyb 2018-01-13 09:11:59 +00:00
librustc_save_analysis Auto merge of #47181 - michaelwoerister:var-len-def-index, r=eddyb 2018-01-13 09:11:59 +00:00
librustc_trans rustc: Tweak #[target_feature] syntax 2018-01-13 10:07:18 -08:00
librustc_trans_utils
librustc_tsan
librustc_typeck Auto merge of #46461 - zackmdavis:elemental_method_suggestion_jamboree, r=estebank 2018-01-13 02:15:19 +00:00
librustdoc Use the new fs_read_write functions in rustc internals 2018-01-10 14:53:40 -08:00
libserialize [incremental] Specialize encoding and decoding of Fingerprints 2018-01-09 20:20:50 -05:00
libstd Auto merge of #46461 - zackmdavis:elemental_method_suggestion_jamboree, r=estebank 2018-01-13 02:15:19 +00:00
libstd_unicode
libsyntax Auto merge of #47251 - rkruppe:rm-simd-attr, r=eddyb 2018-01-13 15:29:31 +00:00
libsyntax_ext
libsyntax_pos Auto merge of #46551 - jseyfried:improve_legacy_modern_macro_interaction, r=nrc 2018-01-12 10:00:09 +00:00
libterm
libtest Make libtest build on CloudABI. 2018-01-11 11:42:33 +01:00
libunwind
llvm@2717444753
rt
rtstartup
rustc
rustllvm
test rustc: Tweak #[target_feature] syntax 2018-01-13 10:07:18 -08:00
tools Rollup merge of #47282 - malbarbo:i586-musl, r=alexcrichton 2018-01-13 02:26:26 +08:00
Cargo.lock Rollup merge of #47288 - cuviper:jobserver-pipe2, r=alexcrichton 2018-01-13 02:26:28 +08:00
Cargo.toml
stage0.txt