John Kåre Alsaker
4d52751d12
Rename InternedString to LocalInternedString and introduce a new thread-safe InternedString
2018-04-27 03:35:32 +02:00
Irina Popa
38e964077b
Rename rustc_back::target to rustc_target::spec.
2018-04-26 16:39:44 +03:00
Alex Crichton
1217d70465
Separately gate each target_feature feature
...
Use an explicit whitelist for what features are actually stable and can be
enabled.
2018-04-16 13:58:42 -07:00
bors
6c537493d0
Auto merge of #49558 - Zoxc:sync-misc, r=michaelwoerister
...
Even more thread-safety changes
r? @michaelwoerister
2018-04-12 16:22:36 +00:00
John Kåre Alsaker
e82b6c42b4
Make Session.plugin_registrar_fn and Session.derive_registrar_fn thread-safe
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
27adb31fcc
Combine Session.entry_fn and Session.entry_type and make them thread-safe
2018-04-10 14:40:25 +02:00
Mark Simulacrum
c115cc655c
Move deny(warnings) into rustbuild
...
This permits easier iteration without having to worry about warnings
being denied.
Fixes #49517
2018-04-08 16:59:14 -06:00
bors
8c2d7b2da3
Auto merge of #49661 - alexcrichton:bump-bootstrap, r=nikomatsakis
...
Bump the bootstrap compiler to 1.26.0 beta
Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language
features!
2018-04-07 11:58:38 +00:00
Michael Woerister
4f6d05dc48
Allow for re-using monomorphizations from upstream crates.
2018-04-06 12:14:08 +02:00
Alex Crichton
8958815916
Bump the bootstrap compiler to 1.26.0 beta
...
Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language
features!
2018-04-05 07:13:45 -07:00
Mark Mansi
7ce8191775
Stabilize i128_type
2018-03-26 08:36:50 -05:00
Taylor Cramer
0f5b52e4a8
Stabilize conservative_impl_trait
2018-03-26 10:43:03 +02:00
kennytm
8d3f3f0cac
Rollup merge of #49117 - nivkner:fixme_fixup3, r=estebank
...
address some FIXME whose associated issues were marked as closed
part of #44366
2018-03-22 22:43:37 +08:00
Vadim Petrochenkov
7c90189e13
Stabilize slice patterns without ..
...
Merge `feature(advanced_slice_patterns)` into `feature(slice_patterns)`
2018-03-20 02:27:40 +03:00
Niv Kaminer
622c44510f
remove FIXME( #37712 ) and implement ItemLikeVisitor instead of Visitor
2018-03-17 20:24:49 +02:00
John Kåre Alsaker
37e897f4c4
Require the metadata loader to be thread-safe
2018-03-12 09:35:41 +01:00
Alex Crichton
b5bcb9a410
Merge branch 'incr_attr_queries' of https://github.com/wesleywiser/rust into update-cargo
2018-03-07 07:13:21 -08:00
Alex Crichton
5a5e941014
Merge branch 'metadata-send-sync' of https://github.com/Zoxc/rust into update-cargo
2018-03-07 07:13:10 -08:00
Wesley Wiser
07890c5c59
Add target_features to TransFnAttrs
...
Part of #47320
2018-03-06 20:18:51 -05:00
Wesley Wiser
6bc7f41955
Remove the contains_extern_indicator query
...
Part of #47320
2018-03-06 19:58:03 -05:00
Wesley Wiser
5460b88774
Remove export_name query
...
Part of #47320
2018-03-06 19:58:03 -05:00
Wesley Wiser
4f840a683a
Add inline to TransFnAttrs
...
Part of #47320
2018-03-06 19:58:02 -05:00
John Kåre Alsaker
62089c335f
Make metadata references Send + Sync
2018-03-07 01:56:59 +01:00
Michael Woerister
33d5da1ee4
Clean up handling of symbol export information.
2018-03-06 09:47:43 +01:00
Michael Woerister
542bc75dea
Turn features() into a query.
2018-03-05 11:05:01 +01:00
John Kåre Alsaker
b74e97cf42
Replace Rc with Lrc for shared data
2018-03-02 10:48:52 +01:00
Mark Simulacrum
33f5ceee1f
stage0 cfg cleanup
2018-02-20 08:52:33 -07:00
Matthias Krüger
4452446292
fix more typos found by codespell.
2018-02-17 17:38:49 +01:00
Alex Crichton
884715c654
rustc: Load the rustc_trans crate at runtime
...
Building on the work of # 45684 this commit updates the compiler to
unconditionally load the `rustc_trans` crate at runtime instead of linking to it
at compile time. The end goal of this work is to implement # 46819 where rustc
will have multiple backends available to it to load.
This commit starts off by removing the `extern crate rustc_trans` from the
driver. This involved moving some miscellaneous functionality into the
`TransCrate` trait and also required an implementation of how to locate and load
the trans backend. This ended up being a little tricky because the sysroot isn't
always the right location (for example `--sysroot` arguments) so some extra code
was added as well to probe a directory relative to the current dll (the
rustc_driver dll).
Rustbuild has been updated accordingly as well to have a separate compilation
invocation for the `rustc_trans` crate and assembly it accordingly into the
sysroot. Finally, the distribution logic for the `rustc` package was also
updated to slurp up the trans backends folder.
A number of assorted fallout changes were included here as well to ensure tests
pass and such, and they should all be commented inline.
2018-01-27 19:16:21 -08:00
bjorn3
a4854e84f2
Fix ICE
2018-01-20 11:55:55 +01:00
bjorn3
a09aebee21
Remove accidential libloading dependency
2018-01-19 20:27:51 +01:00
bjorn3
c0444242ef
Fix ICE
2018-01-19 20:27:36 +01:00
bjorn3
77dec3b03a
Remove use of RUSTC_COMPILETEST env var
2018-01-19 20:27:36 +01:00
bjorn3
ace502a107
Fix review comments
2018-01-19 20:27:35 +01:00
bjorn3
2d241f66fe
Cleanup hot plug codegen backend code
2018-01-19 20:27:35 +01:00
bjorn3
9315ed45c5
Hot plug rustc_trans
2018-01-19 20:27:33 +01:00
bjorn3
74c92c5562
Allow runtime switching between trans backends
2018-01-19 20:27:10 +01:00
Malo Jaffré
3f073c409a
Try to fix a perf regression by updating log
...
Upgrade `log` to `0.4` in multiple crates.
2018-01-07 16:54:05 +01:00
Malo Jaffré
8ed13d643a
Update crates and submodules to pull doc fixes
...
Update `rand` crate to `0.3.19`.
Update `log` crate to `0.3.9` and `0.4.1`.
Update `parking_lot_core` crate to `0.2.9`.
Upgrade all flate2 dependencies to `1.0.1`.
- Update `rust-installer` submodule.
2018-01-01 14:44:10 +01:00
Seiichi Uchida
d882691046
Prefer to use attr::contains_name() and attr::find_by_name()
2017-12-28 12:32:24 +09:00
Michael Woerister
e6e5589db4
incr.comp.: Use an IndexVec instead of a hashmap for storing result hashes.
2017-12-20 11:14:31 +01:00
Maik Klein
6e78b66578
Add rustc_data_structures for trans_utils/lib.rs
2017-12-18 19:10:06 +02:00
Maik Klein
1df6f8321b
Remove duplicated functions from trans::common.rs
2017-12-18 17:08:49 +02:00
Maik Klein
531c27d805
Move common.rs functionality into TyCtxt
2017-12-18 17:08:48 +02:00
Maik Klein
e579b067db
Move trans_item and monomorphize to rustc_mir
2017-12-18 17:08:48 +02:00
Maik Klein
094c021218
Move collector to monomorphize
2017-12-18 17:08:48 +02:00
John Kåre Alsaker
970c613e4a
Add sync module to rustc_data_structures
2017-12-17 14:14:51 +01:00
Alex Burka
2eefc9db15
add trait aliases to HIR
2017-12-14 12:56:26 -05:00
Niko Matsakis
b4d71ea6f8
make fn_sig().subst() ICE when used with a closure
...
It's inefficient, and the substitution there doesn't account for the
extra regions used by NLL inference, so it's a bad thing to encourage.
As it happens all callers already know if they have a closure or not,
from what I can tell.
2017-12-07 05:28:01 -05:00
Eduard-Mihai Burtescu
511743c438
MIR: s/Lvalue/Place in type names.
2017-12-01 18:47:36 +02:00