Michael Woerister
61a0a7f0a3
debuginfo: Fix multi-byte character related bug in cleanup scope handling.
...
Also see issue #18791 .
2014-12-01 16:22:00 -08:00
jfager
232ffa039d
Replace some verbose match statements with their if let
equivalent.
...
No semantic changes, no enabling `if let` where it wasn't already enabled.
2014-11-29 16:41:21 -05:00
Alex Crichton
e8d743ec1d
rollup merge of #19329 : steveklabnik/doc_style_cleanup2
2014-11-26 16:51:02 -08:00
Steve Klabnik
cd5c8235c5
/*! -> //!
...
Sister pull request of https://github.com/rust-lang/rust/pull/19288 , but
for the other style of block doc comment.
2014-11-26 16:50:14 -08:00
Steve Klabnik
f38e4e6d97
/** -> ///
...
This is considered good convention.
2014-11-25 21:24:16 -05:00
Jakub Bukaj
3594c588bb
rollup merge of #19211 : aochagavia/tuple-index
...
This breaks code like
```
let t = (42i, 42i);
... t.0::<int> ...;
```
Change this code to not contain an unused type parameter. For example:
```
let t = (42i, 42i);
... t.0 ...;
```
Closes https://github.com/rust-lang/rust/issues/19096
[breaking-change]
r? @aturon
2014-11-23 14:11:56 -05:00
Adolfo Ochagavía
35316972ff
Remove type parameters from ExprField and ExprTupField
2014-11-23 12:17:43 +01:00
Ruud van Asseldonk
b781c8b08e
rustc: Unify fat pointer ABI constants.
...
This merges the `trt_field_*`, `fn_field_*` and `slice_elt_*` constants
into two `FAT_PTR_*` constants. This resolves the first part of #18590 .
2014-11-21 17:49:11 +01:00
bors
1d81776209
auto merge of #19113 : nikomatsakis/rust/unboxed-boxed-closure-unification, r=acrichto
...
Use the expected type to infer the argument/return types of unboxed closures. Also, in `||` expressions, use the expected type to decide if the result should be a boxed or unboxed closure (and if an unboxed closure, what kind).
This supercedes PR #19089 , which was already reviewed by @pcwalton.
2014-11-20 12:01:44 +00:00
Niko Matsakis
3e2929d362
Merge the ExprFnBlock and ExprUnboxedClosure into one ExprClosure with an optional unboxed closure kind.
2014-11-19 13:35:20 -05:00
Niko Matsakis
ee9a7b60fa
Pass the unadjusted type into the unsize_info function, which seems to be what it expects. Fixes #17322 .
2014-11-19 10:02:04 -05:00
Eduard Burtescu
9f7aa7fa76
rustc: middle: remove obsolete ty::get.
2014-11-19 06:24:35 +02:00
Eduard Burtescu
4c3ad48c45
rustc: fix fallout of making Ty
an alias for &TyS
instead of a wrapper.
2014-11-19 06:24:35 +02:00
Eduard Burtescu
5bc98954d5
rustc: fix fallout of adding the 'tcx
lifetime to Ty
.
2014-11-19 06:24:34 +02:00
Eduard Burtescu
9706d8f602
rustc: middle: rename ty::t
to Ty
and use it unqualified everywhere.
2014-11-19 06:24:34 +02:00
Niko Matsakis
0b90cded14
Introduce some sanity checking assertions in trans, erase regions more aggressively.
2014-11-18 12:27:36 -05:00
Niko Matsakis
dc6e414e6f
Move trans, back, driver, and back into a new crate, rustc_trans. Reduces memory usage significantly and opens opportunities for more parallel compilation.
2014-11-18 07:32:43 -05:00