ljedrz
58bf387ae3
Deny bare trait objects in librustc_driver
2018-07-12 09:11:39 +02:00
Santiago Pastorino
25266c1840
Do not run AST borrowck when -Zborrowck=mir
2018-07-05 16:57:32 -03:00
Mark Mansi
5da4ff8180
Attempt to fix hygiene for global_allocator
2018-06-24 16:10:20 -05:00
John Kåre Alsaker
b5650f9282
Parallel code
2018-06-19 03:19:48 +02:00
Eduard-Mihai Burtescu
5a5c7ded0d
rustc: rename ty::maps to ty::query.
2018-06-14 18:05:12 +03:00
John Kåre Alsaker
131ef97c4b
Reduce the amount of unsafe code and mark handle_deadlock as unsafe
2018-06-06 15:25:19 +02:00
John Kåre Alsaker
f9e6fbc4f7
Make queries block and handle query cycles
2018-06-06 15:25:16 +02:00
bjorn3
cc5c1a0abb
Add comment
2018-06-05 18:05:12 +02:00
bjorn3
4e0ee758b7
Impl CompilerCalls for CompileController instead of AdHocCompilerCalls
2018-06-05 18:04:18 +02:00
Irina Popa
b63d7e2b1c
Rename trans to codegen everywhere.
2018-05-17 15:08:30 +03:00
John Kåre Alsaker
022dff47e3
Add a Rayon thread pool
2018-05-13 01:28:20 +02:00
John Kåre Alsaker
3df199680a
Add Sync bounds to the crate store
2018-05-13 01:28:20 +02:00
Wesley Wiser
000d3c97ee
Make DepGraph::previous_work_products immutable
...
Fixes #50501
2018-05-07 23:17:16 -04:00
Niko Matsakis
7173fd78c6
in unit tests, use note to dump multiple program clauses
...
(rather than issuing multiple errors)
Also, reorder so that the annotations are considered "used" when the
lint runs.
2018-04-23 13:28:14 -04:00
Kurtis Nusbaum
320fdaa942
add EDITIONS_NAME_LIST, make edition tracked, enforce that only stable editions are allowed to be used on non-nightly builds
2018-04-19 21:03:21 -07:00
Mark Mansi
5977818678
run rustfmt on rustc_driver/driver.rs
2018-04-17 10:54:10 -05:00
bors
6b12d361ff
Auto merge of #49882 - Zoxc:sync-misc2, r=michaelwoerister
...
More thread-safety changes
r? @michaelwoerister
2018-04-17 06:46:31 +00:00
bors
d6a2dd9912
Auto merge of #49433 - varkor:metadata-skip-mir-opt, r=michaelwoerister
...
Skip MIR encoding for cargo check
Resolves #48662 .
r? @michaelwoerister
2018-04-16 10:30:57 +00:00
John Kåre Alsaker
ead5cf11b8
Add misc timings
2018-04-15 20:53:03 +02:00
John Kåre Alsaker
cbf8ad4a40
Make Session.crate_types thread-safe
2018-04-10 14:40:26 +02:00
John Kåre Alsaker
271c8d362a
Make Session.crate_disambiguator thread-safe
2018-04-10 14:40:25 +02:00
John Kåre Alsaker
cf3b7909fa
Make recursion_limit and type_length_limit thread-safe
2018-04-10 14:39:57 +02:00
varkor
8414520436
Add len() method to OutputTypes
2018-04-04 12:52:33 +01:00
Wesley Wiser
49fd71bea7
[incremental] Don't panic if decoding the cache fails
...
If the cached data can't be loaded from disk, just issue a warning to
the user so they know why compilation is taking longer than usual but
don't fail the entire compilation since we can recover by ignorning the
on disk cache.
In the same way, if the disk cache can't be deserialized (because it has
been corrupted for some reason), report the issue as a warning and
continue without failing the compilation. `Decodable::decode()` tends to
panic with various errors like "entered unreachable code" or "index out
of range" if the input data is corrupted. Work around this by catching
panics from the `decode()` calls when joining the thread and continuing
without the cached data.
Fixes #48847
2018-03-28 08:30:09 -04:00
Kurtis Nusbaum
3c8d555497
rename epoch to edition
2018-03-20 10:27:02 -07:00
bors
7c396ebd0b
Auto merge of #48985 - scalexm:lowering, r=nikomatsakis
...
MVP for chalkification
r? @nikomatsakis
2018-03-18 07:35:43 +00:00
Vadim Petrochenkov
c6c6cf9515
AST/HIR: Clarify what the optional name in extern crate items mean
2018-03-17 22:12:21 +03:00
Shotaro Yamada
4be3e96b80
Checks for unknown attributes before aborting
...
...due to unresolved macros.
2018-03-16 16:53:40 +09:00
Eric Huss
b4b7ccbd1c
Add crate name to "main function not found" error message.
...
Fixes #44798 and rust-lang/cargo#4948 .
2018-03-14 11:40:13 -07:00
scalexm
2bbd16de13
Move code into librustc_traits
2018-03-14 14:45:30 +01:00
scalexm
04b228c3e2
Address niko's nits
2018-03-14 14:14:33 +01:00
scalexm
1271f0bd25
Add MVP for chalkification
2018-03-14 13:39:58 +01:00
Niko Matsakis
3a50b41da4
introduce infcx.at(..).normalize(..) operation [VIC]
...
It is backed by the new `normalize_projection_ty` query, which uses
canonicalization.
2018-03-13 11:22:05 -04:00
John Kåre Alsaker
184fd32a03
Move PROFQ_CHAN to a Session field
2018-03-09 08:04:31 +01:00
Manish Goregaokar
b88a61e36e
Make it possible to ungate features by epoch
2018-03-08 17:10:05 -08:00
Oliver Schneider
aedd4c61ea
Regenerate tests
2018-03-08 08:35:38 +01:00
Oliver Schneider
438139f635
rustc_passes::consts -> rvalue_promotion
2018-03-08 08:34:14 +01:00
Oliver Schneider
8c8a433532
Merge const linting pass into const prop
2018-03-08 08:34:14 +01:00
Oliver Schneider
ef995bde50
Move the pattern checking code to hair
2018-03-08 08:34:11 +01:00
Oliver Schneider
1543367624
The const_eval module is no more
2018-03-08 08:34:11 +01:00
Oliver Schneider
28572d2c1f
Nuke the entire ctfe from orbit, it's the only way to be sure
2018-03-08 08:08:14 +01:00
Oliver Schneider
e97089dae3
Move librustc_const_eval to librustc_mir
2018-03-08 08:08:14 +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
Manish Goregaokar
f57835b7f4
Rollup merge of #48461 - Manishearth:epoch-dyn-trait, r=nmatsakis
...
Fixes #47311 .
r? @nrc
2018-02-28 15:09:29 -08:00
Manish Goregaokar
2483d842fb
Rollup merge of #48353 - michaelwoerister:monoitem-static-defid, r=eddyb
...
Allow for instantiating statics from upstream crates
This PR makes the infrastructure around translating statics a bit more flexible so that it can also instantiate statics from upstream crates if the need arises. This is preparatory work for a MIR-only RLIBs prototype, where the instantiation of a `static` may be deferred until a leaf crate.
r? @eddyb (feel free to assign to someone else if you're busy)
2018-02-24 12:48:01 -08:00
Manish Goregaokar
b52b33a386
Rollup merge of #48143 - nikomatsakis:termination_trait_in_tests, r=eddyb
...
Termination trait in tests
Support the `Termination` trait in unit tests (cc https://github.com/rust-lang/rust/issues/43301 )
Also, a drive-by fix for #47075 .
This is joint work with @bkchr.
2018-02-24 12:47:58 -08:00
Manish Goregaokar
25ec810921
Rollup merge of #47987 - Zoxc:rm-recursion-checking, r=eddyb
...
Remove "static item recursion checking" in favor of relying on cycle checks in the query engine
Tests are changed to use the cycle check error message instead. Some duplicate tests are removed.
r? @eddyb
2018-02-24 08:55:36 -08:00
Manish Goregaokar
da9dc0507b
Allow future-incompat lints to mention an epoch
2018-02-23 08:24:07 -08:00
Niko Matsakis
1eab1b19a3
support unit tests with return values that implement Terminaton
...
Extend `Termination` trait with a method to determine what happens
with a unit test.
This commit incorporates work by Bastian Köcher <git@kchr.de>.
2018-02-22 17:31:37 -05:00