Tatsuyuki Ishi
b15df80345
traits: Implement interning for Goal and Clause
2018-04-12 13:43:10 +09:00
bors
43e994c8b8
Auto merge of #49715 - Mark-Simulacrum:deny-warnings, r=alexcrichton
...
Move deny(warnings) into rustbuild
This permits easier iteration without having to worry about warnings
being denied.
Fixes #49517
2018-04-11 03:30:04 +00:00
John Kåre Alsaker
7aa7198b4b
Make PerfStats thread-safe and remove unused fields
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
bors
a8a8d6b5bf
Auto merge of #49435 - tmandry:rule-implied-bound-from-trait, r=nikomatsakis
...
chalkify: Implement lowering rule Implied-Bound-From-Trait
For #49177 .
TODO:
- [x] Implement where clauses besides trait and projection predicates
- [x] Is the output of the `lower_trait_higher_rank` test correct?
- [ ] Remove `Self::Trait` from the query `tcx.predicates_of(<trait_id>).predicates`
- [ ] Consider moving tests to compile-fail to make them more manageable
2018-04-10 00:32:54 +00: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
Tyler Mandry
7ac35eaa12
chalkify: Implement Rule Implied-Bound-From-Trait
2018-04-06 13:05:45 -05:00
Alex Crichton
72ac3ebf68
Rollup merge of #49497 - scalexm:hrtb, r=nikomatsakis
...
Chalkify - Tweak `Clause` definition and HRTBs
r? @nikomatsakis
2018-04-05 11:18:16 -07: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
Alexandre Martin
1074a22905
Fix comment
2018-04-02 22:25:22 +02:00
scalexm
71dc1626bd
Tweak Clause
definition and HRTBs
2018-03-30 10:29:01 +02:00
Taylor Cramer
e6e6bd27d5
Stabilize underscore lifetimes
2018-03-29 00:27:50 +02:00
Taylor Cramer
3c65f53620
Stabilize match_default_bindings
...
This includes a submodule update to rustfmt
in order to allow a stable feature declaration.
2018-03-28 11:13:13 +02:00
bors
9c9424de51
Auto merge of #49202 - csmoe:trait_engine, r=nikomatsakis
...
Introduce trait engine
address #48895 step 1: introduce trait engine
2018-03-27 14:31:43 +00:00
Alex Crichton
4b31b5bda7
Rollup merge of #49030 - Zoxc:misc, r=michaelwoerister
...
Misc changes from my parallel rustc branch
r? @michaelwoerister
2018-03-23 10:16:09 -07:00
csmoe
0c4062a94d
import trait engine to typeck
2018-03-23 09:22:07 +08:00
varkor
b8c75d98f9
Implement Rule Implemented-From-Env
...
This extends the Chalk lowering pass with the "Implemented-From-Env" rule for generating program clauses from a trait definition as part of #49177 .
2018-03-20 15:13:44 +00:00
varkor
de9e665248
Improve comments for Rule Implemented-From-Impl
2018-03-20 15:11:26 +00:00
bors
7c396ebd0b
Auto merge of #48985 - scalexm:lowering, r=nikomatsakis
...
MVP for chalkification
r? @nikomatsakis
2018-03-18 07:35:43 +00:00
John Kåre Alsaker
697d3bee96
Replace Rc with Lrc
2018-03-17 23:01:54 +01:00
Alexandre Martin
ef3b4e1f5b
Fix tidy
2018-03-15 23:20:06 +01:00
Niko Matsakis
4eaa85d3be
add xref to rust-guide
2018-03-15 14:27:00 -04:00
scalexm
e8f3ed5db2
Add documentation
2018-03-14 15:19:17 +01:00
scalexm
2bbd16de13
Move code into librustc_traits
2018-03-14 14:45:30 +01:00
Andrew Cann
b1526ca384
Fixes after rebase
2018-03-14 12:45:14 +08:00
Niko Matsakis
fc04c41a40
add a debug assertion that only outlives-oblig. result from norm.
2018-03-13 11:22:08 -04:00
Niko Matsakis
211d9ad7db
introduce tcx.normalize_erasing_regions(..)
operaton [VIC]
2018-03-13 11:22:07 -04:00
Niko Matsakis
ca87d24467
introduce infcx.at(..).dropck_outlives(..)
operaton [VIC]
...
Backed by a canonicalized query. This computes all the types/regions that need
to be live when the destructor runs (i.e., that the dtor may access).
2018-03-13 11:22:07 -04: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