]> git.lizzy.rs Git - rust.git/commit
Remove the unneeded Sized bound on TypeId creation
authorJonathan Reem <jonathan.reem@gmail.com>
Tue, 6 Jan 2015 21:59:07 +0000 (22:59 +0100)
committerJonathan Reem <jonathan.reem@gmail.com>
Wed, 7 Jan 2015 23:49:19 +0000 (00:49 +0100)
commit2606f99871511acaabd8aaec87913a5203beb39f
treeb4704c0bd41ef77d54a21179fee16786ab53b7ad
parentdfd557bd73a27966b242635b04f2a9fca6eadce8
Remove the unneeded Sized bound on TypeId creation

This bound is probably unintentional and is unnecessarily
constricting.

To facilitate this change, it was also necessary to modify
resolve to recurse on and resolve type parameters in extern { }
blocks. This fixes an ICE when using bounds on type parameters
during the declaration of intrinsics.

This also adds tests for TypeId on both Sized and Unsized
tests as well as a test for using type parameters and bounds
in extern { } blocks.
src/libcore/intrinsics.rs
src/libcoretest/intrinsics.rs [new file with mode: 0644]
src/librustc_resolve/lib.rs
src/test/compile-fail/extern-with-type-bounds.rs [new file with mode: 0644]