about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-06-29 15:04:31 +0000
committerbors <bors@rust-lang.org>2017-06-29 15:04:31 +0000
commit686ec28ceaedb2a26423d48b90da210d491915cc (patch)
treec6010b7391aba410170fad64d310b1dc3eee2f13 /src/liballoc_system
parentd0e0f53376766308850d3f79ec6ed0b12dc10e49 (diff)
parent94862c601be15a8edd93539244177f5a9145374d (diff)
downloadrust-686ec28ceaedb2a26423d48b90da210d491915cc.tar.gz
rust-686ec28ceaedb2a26423d48b90da210d491915cc.zip
Auto merge of #42527 - qnighy:unsized-tuple-coercions, r=arielb1
Unsized tuple coercions

Part of #18469. Fixes #32702.

#37685 and #34451 might also be related.

This PR does the following:

- Introduce explicit `Sized` constraints on tuple initializers, similar to that of record-struct initializers. Not much relevant to the main contribution but I noticed this when making tests for unsized tuple coercions.
- Implement `(.., T): Unsize<(.., U)>` where `T: Unsize<U>`.
- Assume `(.., T)` is MaybeUnsizedUnivariant.
- Modify `src/librustc/ty/util.rs` and `src/librustc_trans/glue.rs` so that tuples and structs are uniformly traversed when translating.
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions