bors
f35255038b
Auto merge of #34012 - eddyb:tick-erased, r=nikomatsakis
...
rustc: add ReErased to be used by trait selection, MIR and trans.
`ReErased` replaces `ReStatic` (i.e. `'static`) for erasing regions.
Using a distinct lifetime helps prevent accidental mix-ups between the two.
It also allows cleaner type printing (see test changes), including in symbol names:
```rust
str..pattern..CharSearcher$LT$$u27$static$GT$::drop.30560::h840c2f2afc03bbea // before
str..pattern..CharSearcher::drop.30561::h6bd31d2af614377a // after
```
Not that we should be producing symbols this way, but it's still better.
2016-06-07 00:04:53 -07:00
Eduard Burtescu
c77166c685
rustc_const_eval: work around double rounding.
2016-06-05 19:18:28 +03:00
Eduard Burtescu
e71f6d8ac9
trans: report as many errors as possible for constants.
2016-06-05 14:41:04 +03:00
Eduard Burtescu
d735f6bf33
trans: implement CheckedBinaryOp in mir::constant.
2016-06-05 14:41:04 +03:00
Eduard Burtescu
1447fbf183
rustc_const_eval: track the length and index in IndexOutOfBounds.
2016-06-05 14:41:04 +03:00
Eduard Burtescu
f1f453cf3b
trans: generalize OperandValue::FatPtr to all pairs of immediates.
2016-06-05 14:41:02 +03:00
Eduard Burtescu
156b1fb9e1
Add a new Assert terminator to MIR for bounds & arithmetic checks.
2016-06-05 14:41:02 +03:00
Eduard Burtescu
bcec7a5848
rustc: add ReErased to be used by trait selection, MIR and trans.
2016-06-05 13:58:51 +03:00
Michael Woerister
802bb578e4
trans: Use CrateContext::empty_substs_for_def_id() instead of Substs::empty() where appropriate.
2016-05-11 17:11:20 -04:00
Eduard Burtescu
a1c170fc35
rustc: Split local type contexts interners from the global one.
2016-05-11 04:14:58 +03:00
Eduard Burtescu
20652162ca
rustc: More interning for data used in Ty<'tcx>.
2016-05-11 04:14:58 +03:00
Michael Woerister
118cc9e8e1
Fix some rebasing fallout.
2016-05-09 16:17:00 -04:00
Eduard Burtescu
3b0e27cc74
trans: handle string literal reborrows.
2016-05-08 06:23:50 +03:00
Eduard Burtescu
5c42e694cb
trans: support simd_shuffle using MIR constants for indices.
2016-05-07 19:14:33 +03:00
Eduard Burtescu
14efbf1481
mir: prepare for rvalue promotion support.
2016-05-07 07:19:10 +03:00
Eduard Burtescu
e1eca0a110
Translate constants from MIR instead of going through trans::expr/consts.
2016-05-07 07:19:10 +03:00
Benjamin Herr
c59ea491ea
librustc_trans: use bug!(), span_bug!()
2016-03-31 22:06:52 +02:00
Oliver Schneider
3eac64747f
move const_eval
and check_match
out of librustc
2016-03-30 13:43:36 +02:00
Oliver Schneider
6cc449ad24
rename rustc_const_eval
to rustc_const_math
2016-03-30 11:10:21 +02:00
Eduard Burtescu
035a645e64
rustc_trans: move the contents of the trans module to top-level.
2016-03-27 01:23:28 +02:00