Alex Crichton
175d6a7435
rollup merge of #18332 : jbcrail/fix-comments
2014-10-27 15:12:30 -07:00
Alex Crichton
0c756de6c5
rollup merge of #18235 : nikomatsakis/issue-18209
2014-10-27 12:53:01 -07:00
Joseph Crail
30403204d6
Fix spelling mistakes in comments.
2014-10-25 23:11:17 -04:00
P1start
ead6c4b9d4
Add a lint for not using field pattern shorthands
...
Closes #17792 .
2014-10-24 15:44:18 +13:00
Niko Matsakis
de06faf889
Use local cache when there are unbound type variables and where clauses in scope.
...
Fixes #18209 .
2014-10-22 11:35:53 -04:00
Niko Matsakis
646ec7d9a9
Address nits by @pcwalton
2014-10-21 12:32:37 -04:00
Niko Matsakis
e6a1936d26
Implement "method matching". Similar to trait matching, but with the twist that we
...
have to take the transformed self type into account, and allow for coercion between
the receiver and the actual type declared on the impl.
2014-10-21 11:49:38 -04:00
Alex Crichton
9d5d97b55d
Remove a large amount of deprecated functionality
...
Spring cleaning is here! In the Fall! This commit removes quite a large amount
of deprecated functionality from the standard libraries. I tried to ensure that
only old deprecated functionality was removed.
This is removing lots and lots of deprecated features, so this is a breaking
change. Please consult the deprecation messages of the deleted code to see how
to migrate code forward if it still needs migration.
[breaking-change]
2014-10-19 12:59:40 -07:00
Niko Matsakis
590a61f788
Only consider impliciy unboxed closure impl if the obligation is
...
actually for `Fn`, `FnMut`, or `FnOnce`.
Fixes #18019
2014-10-13 19:55:42 -04:00
Boris Egorov
6e29f86bc8
Remove into_vec method from &[T]
...
[breaking-change]
Closes #17916
2014-10-11 16:22:43 +07:00
Niko Matsakis
7a07f2a780
Add a few more debug statements
2014-10-09 17:19:53 -04:00
Niko Matsakis
389ef6601d
Implement multidispatch and conditional dispatch. Because we do not
...
attempt to preserve crate concatenation, this is a backwards compatible
change.
Conflicts:
src/librustc/middle/traits/select.rs
2014-10-09 17:19:50 -04:00
Eduard Burtescu
8a91d33ee7
rustc: remove support for Gc.
2014-10-02 16:59:31 +03:00
Nick Cameron
1c36d1c71d
Emit an error rather than ICEing for a missing built-in bound lang item.
...
closes #17392
2014-09-30 11:30:08 +13:00
Niko Matsakis
c31623b0e4
Integrate caching of results. Measurements show approx 90% hit rate.
2014-09-25 07:06:27 -04:00
Niko Matsakis
effb3636cc
Integrate builtin bounds fully into the trait checker
2014-09-25 07:06:27 -04:00
Nick Cameron
ce0907e46e
Add enum variants to the type namespace
...
Change to resolve and update compiler and libs for uses.
[breaking-change]
Enum variants are now in both the value and type namespaces. This means that
if you have a variant with the same name as a type in scope in a module, you
will get a name clash and thus an error. The solution is to either rename the
type or the variant.
2014-09-19 15:11:00 +12:00
Niko Matsakis
c5754f3971
Guts of the new trait matching algorithm, not yet in use
2014-09-15 14:58:49 -04:00