Vadim Petrochenkov
641d8e9e4c
Some better support for unions through the compiler
2016-09-03 13:39:34 +03:00
Eduard Burtescu
119508cdb4
Remove drop flags from structs and enums implementing Drop.
2016-08-24 13:23:37 +03:00
Eduard Burtescu
d0654ae5e5
rustc_trans: remove the bulk of old trans and most of its support code.
2016-08-24 13:23:37 +03:00
Eduard Burtescu
4158673ad7
rustc: reduce Substs and Generics to a simple immutable API.
2016-08-17 05:50:57 +03:00
Zack M. Davis
d37edef9dd
prefer if let
to match with None => {}
arm in some places
...
This is a spiritual succesor to #34268/8531d581, in which we replaced a
number of matches of None to the unit value with `if let` conditionals
where it was judged that this made for clearer/simpler code (as would be
recommended by Manishearth/rust-clippy's `single_match` lint). The same
rationale applies to matches of None to the empty block.
2016-07-03 16:27:02 -07:00
Luqman Aden
f3e1d57bc2
Allow repr attribute on single variant enum.
2016-05-13 12:36:57 -04:00
Eduard Burtescu
76affa5d6f
rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.
2016-05-11 04:14:58 +03:00
Eduard Burtescu
513d392f7e
rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.
2016-05-11 04:14:58 +03:00
Benjamin Herr
c59ea491ea
librustc_trans: use bug!(), span_bug!()
2016-03-31 22:06:52 +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