bors
a33e48771e
Auto merge of #28555 - GuillaumeGomez:error_codes, r=Manishearth
2015-09-21 04:24:06 +00:00
Guillaume Gomez
6e1c675ff0
Add error codes for librustc_typeck
2015-09-20 12:02:56 +02:00
Jorge Aparicio
f5569ecd76
address Niko's comments
2015-09-18 21:36:40 -05:00
Jorge Aparicio
3ae3a5fc3c
Overloaded augmented assignments
2015-09-18 21:20:15 -05:00
Vadim Petrochenkov
5fa6e857c9
Implement empty struct with braces (RFC 218)
2015-09-18 15:26:08 +03:00
bors
2be0d0ad92
Auto merge of #28428 - dotdash:same_adjust, r=nikomatsakis
...
Currently, we're generating adjustments, for example, to get from &[u8]
to &[u8], which is unneeded and kicks us out of trans_into()
into trans() which means an additional stack slot and copy in the
unoptimized code.
2015-09-17 14:40:59 +00:00
Björn Steinbrink
6def06c973
Don't create adjustments from a type to itself
...
Currently, we're generating adjustments, for example, to get from &[u8]
to &[u8], which is unneeded and kicks us out of trans_into() into
trans() which means an additional stack slot and copy in the unoptimized
code.
2015-09-17 15:10:21 +02:00
bors
89faafcd67
Auto merge of #28381 - ebfull:aint-fraid-a-no-ghosts-redux, r=me
...
#27483 redux at Gankro's request.
Fixes #26905 , Closes #28239
r? @nrc
2015-09-17 10:11:23 +00:00
Nick Cameron
d21bfff78c
Remove hir::ExprParen
2015-09-17 12:16:46 +12:00
Nick Cameron
e9f1b06329
Use ast attributes every where (remove HIR attributes).
...
This could be a [breaking-change] if your lint or syntax extension (is that even possible?) uses HIR attributes or literals.
2015-09-16 10:57:06 +12:00
bors
d2e13e822a
Auto merge of #28263 - christopherdumas:add_help_E0118, r=nikomatsakis
...
Contributing to the Rust error explanations. Should I also add a better error for it by default?
2015-09-15 16:43:41 +00:00
bors
8a19b234c7
Auto merge of #28413 - arielb1:deduplication, r=eddyb
...
clean a few things discovered during my split_ty work
r? @eddyb
2015-09-15 15:01:05 +00:00
bors
a7b3eed750
Auto merge of #28395 - ebfull:fix-associated-item-resolution, r=arielb1
...
Fixes #28344
2015-09-15 06:25:38 +00:00
Sean Bowe
b096403d43
Ignore PhantomData when checking CoerceUnsized implementations
2015-09-14 22:02:26 -06:00
bors
b1c9616882
Auto merge of #28274 - arielb1:split-ty, r=nikomatsakis
...
That file got way too big for its own good. It could be split more - this is just a start.
r? @nikomatsakis
2015-09-15 01:38:00 +00:00
Ariel Ben-Yehuda
3dc780ed6f
use RegionEscape instead of inherent has_escaping_regions fns
2015-09-14 15:15:48 +03:00
Ariel Ben-Yehuda
5a95acb8ab
split ty::util and ty::adjustment
2015-09-14 14:55:56 +03:00
Ariel Ben-Yehuda
5f564fbbe4
split ty.rs into smaller parts
2015-09-14 12:32:52 +03:00
Sean Bowe
4fec679399
Cleaner abstraction for type_substs
2015-09-14 02:33:29 -06:00
Ariel Ben-Yehuda
caa10c3bde
move middle::ty and related modules to middle/ty/
2015-09-14 10:56:13 +03:00
bors
4d6dc7f9ba
Auto merge of #28396 - arielb1:misplaced-binding, r=eddyb
...
Technically a [breaking-change], but the broken code is useless,
like `i32<Param=()>`.
Fixes #24682
r? @eddyb
2015-09-14 06:51:18 +00:00
bors
009f2cf7dd
Auto merge of #28392 - arielb1:sort-bounds-list, r=eddyb
...
The sort key is a (DefId, Name), which is *not* stable between
runs, so we must re-sort when loading.
Fixes #24063
Fixes #25467
Fixes #27222
Fixes #28377
r? @eddyb
2015-09-14 05:08:27 +00:00
Sean Bowe
af3a0b0805
Refactor ty_infer invocation
2015-09-13 21:22:30 -06:00
Ariel Ben-Yehuda
5d4455510a
ensure projections are prohibited when type parameters are
...
Technically a [breaking-change], but the broken code is useless,
like `i32<Param=()>`.
Fixes #24682
2015-09-13 23:47:41 +03:00
Sean Bowe
522d4b0a35
Fixed regression in associated item resolution with default type parameters that reference Self in traits.
2015-09-13 14:14:04 -06:00
Ariel Ben-Yehuda
8478acf695
sort the existential bounds list in tydecode
...
The sort key is a (DefId, Name), which is *not* stable between
runs, so we must re-sort when loading.
Fixes #24063
Fixes #25467
Fixes #27222
Fixes #28377
2015-09-13 20:59:40 +03:00
Alex Crichton
f0b1326dc7
std: Stabilize/deprecate features for 1.4
...
The FCP is coming to a close and 1.4 is coming out soon, so this brings in the
libs team decision for all library features this cycle.
Stabilized APIs:
* `<Box<str>>::into_string`
* `Arc::downgrade`
* `Arc::get_mut`
* `Arc::make_mut`
* `Arc::try_unwrap`
* `Box::from_raw`
* `Box::into_raw`
* `CStr::to_str`
* `CStr::to_string_lossy`
* `CString::from_raw`
* `CString::into_raw`
* `IntoRawFd::into_raw_fd`
* `IntoRawFd`
* `IntoRawHandle::into_raw_handle`
* `IntoRawHandle`
* `IntoRawSocket::into_raw_socket`
* `IntoRawSocket`
* `Rc::downgrade`
* `Rc::get_mut`
* `Rc::make_mut`
* `Rc::try_unwrap`
* `Result::expect`
* `String::into_boxed_slice`
* `TcpSocket::read_timeout`
* `TcpSocket::set_read_timeout`
* `TcpSocket::set_write_timeout`
* `TcpSocket::write_timeout`
* `UdpSocket::read_timeout`
* `UdpSocket::set_read_timeout`
* `UdpSocket::set_write_timeout`
* `UdpSocket::write_timeout`
* `Vec::append`
* `Vec::split_off`
* `VecDeque::append`
* `VecDeque::retain`
* `VecDeque::split_off`
* `rc::Weak::upgrade`
* `rc::Weak`
* `slice::Iter::as_slice`
* `slice::IterMut::into_slice`
* `str::CharIndices::as_str`
* `str::Chars::as_str`
* `str::split_at_mut`
* `str::split_at`
* `sync::Weak::upgrade`
* `sync::Weak`
* `thread::park_timeout`
* `thread::sleep`
Deprecated APIs
* `BTreeMap::with_b`
* `BTreeSet::with_b`
* `Option::as_mut_slice`
* `Option::as_slice`
* `Result::as_mut_slice`
* `Result::as_slice`
* `f32::from_str_radix`
* `f64::from_str_radix`
Closes #27277
Closes #27718
Closes #27736
Closes #27764
Closes #27765
Closes #27766
Closes #27767
Closes #27768
Closes #27769
Closes #27771
Closes #27773
Closes #27775
Closes #27776
Closes #27785
Closes #27792
Closes #27795
Closes #27797
2015-09-11 09:48:48 -07:00
christopherdumas
eb53461b41
Fixed incorrect error explanation
2015-09-09 07:00:39 -07:00
bors
d2a5b117c1
Auto merge of #28246 - huonw:lang-tracking-issues, r=alexcrichton
...
This is similar to the libs version, which allow an `issue` field in the
`#[unstable]` attribute.
cc #28244
2015-09-08 01:02:06 +00:00
Huon Wilson
31310f5b65
Allow tracking issues for lang features.
...
This is similar to the libs version, which allow an `issue` field in the
`#[unstable]` attribute.
cc #28244
2015-09-08 11:01:42 +10:00
Niko Matsakis
004d70212a
track, for each upvar, its index in list of upvars
2015-09-06 07:27:22 -04:00
christopherdumas
a8a8dfbe1a
Line longer that 80 chars.
2015-09-05 20:23:26 -07:00
christopherdumas
1eb726217d
This time, I found the error'
2015-09-05 17:14:10 -07:00
christopherdumas
5fa6095f2c
I think I found the bug! I was missing a comma.
2015-09-05 17:07:37 -07:00
christopherdumas
a85bc05280
De-registered the duplicate E0118
2015-09-05 16:59:06 -07:00
christopherdumas
1f4fe5f9c2
Removed comment. Apparently that shouldnt be there.
2015-09-05 16:55:37 -07:00
christopherdumas
872f34934c
E0118, not EO118!
2015-09-05 16:50:58 -07:00
christopherdumas
2575687532
Added commet too
2015-09-05 16:49:42 -07:00
christopherdumas
ac6a9eb1dd
Added --explain for E0118.
2015-09-05 16:42:04 -07:00
Manish Goregaokar
d7afefcbd1
Rollup merge of #28234 - AlisdairO:diagnostics247, r=Manishearth
...
As title :-)
Part of #24407 .
r? @Manishearth
2015-09-05 16:16:01 +05:30
Alisdair Owens
8175dce517
Add long diagnostics for E0247
2015-09-04 19:22:11 +01:00
Huon Wilson
2b45a9ab54
Support bitcasts in platform intrinsic generator.
2015-09-04 09:14:13 -07:00
Huon Wilson
62e346af4b
Support void in platform intrinsic generator.
2015-09-04 09:14:13 -07:00
Huon Wilson
d12135a70d
Add support for pointers to generator.py.
2015-09-04 09:14:12 -07:00
bors
2f77a59d16
Auto merge of #28201 - apasel422:issue-26205, r=nikomatsakis
...
Closes #26205 .
r? @eddyb
2015-09-04 14:16:54 +00:00
Steve Klabnik
055c23da7b
Rollup merge of #28167 - petrochenkov:bytelit, r=nikomatsakis
...
Avoid confusion with binary integer literals and binary operator expressions in libsyntax
2015-09-03 20:10:07 -04:00
Manish Goregaokar
94807b2f9c
Rollup merge of #28195 - AlisdairO:diagnostics214, r=Manishearth
...
As title :-)
Part of #24407 .
r? @Manishearth
2015-09-04 01:40:04 +05:30
Andrew Paseltiner
b8dad48435
Fix multiple mutable autoderefs with Box
...
Closes #26205 .
2015-09-03 14:41:27 -04:00
Manish Goregaokar
2a40e46f18
Rollup merge of #28164 - AlisdairO:diagnostics329, r=Manishearth
...
As title :-)
Part of #24407 .
r? @Manishearth
2015-09-03 23:30:36 +05:30
Alisdair Owens
130e8d4ff2
add long diagnostics for E0214
2015-09-03 17:01:50 +01:00