Alex Crichton
483fca9fa5
rollup merge of #20757 : nikomatsakis/issue-20624-assoc-types-coherence
2015-01-08 09:32:06 -08:00
Niko Matsakis
d548f3eade
Remove silly long line.
2015-01-08 12:30:13 -05:00
Alex Crichton
4281bd1932
rollup merge of #20754 : nikomatsakis/int-feature
...
Conflicts:
src/test/compile-fail/borrowck-move-out-of-overloaded-auto-deref.rs
src/test/compile-fail/issue-2590.rs
src/test/compile-fail/lint-stability.rs
src/test/compile-fail/slice-mut-2.rs
src/test/compile-fail/std-uncopyable-atomics.rs
2015-01-08 09:24:08 -08:00
Alex Crichton
8ed88c11af
rollup merge of #20751 : nikomatsakis/issue-20232
...
Issue #20232 . Fun.
r? @eddyb you prob know this system best
2015-01-08 09:22:10 -08:00
Alex Crichton
daee409b60
rollup merge of #20740 : FlaPer87/remove-opt-out-copy
...
[breaking-change] code using this feature will break.
2015-01-08 09:22:06 -08:00
Niko Matsakis
cc1776ef1e
Add another test using projection types in impls.
2015-01-08 12:02:34 -05:00
Niko Matsakis
0d9a11d6ad
Normalize types bottom up. Fixes #20666 .
2015-01-08 12:02:23 -05:00
Niko Matsakis
a661bd6575
Adjust tests to be clearer about the type that results from a shift expression.
2015-01-08 11:26:42 -05:00
Niko Matsakis
75919c554a
Rename test to fit naming convention.
2015-01-08 11:16:07 -05:00
Niko Matsakis
115a443cee
Normalize types in supertraits when checking that impls are valid during wf.
...
Fixes #20559 .
2015-01-08 11:16:07 -05:00
Niko Matsakis
bb0c8ef373
Normalize types in impls, add test for coherence failure.
...
Fixes #20624 .
2015-01-08 11:16:06 -05:00
Niko Matsakis
705b92bdfe
Wrap long line
2015-01-08 11:02:25 -05:00
Niko Matsakis
bf43e8315e
Modify lifetime-infereence-give-expl-lifetime-param-3 to use a shorter
...
type name so that messages do not wrap.
2015-01-08 11:02:24 -05:00
Niko Matsakis
20744c6b85
Allow shift operator to take any integral type (and add a test).
2015-01-08 11:02:24 -05:00
Felix S. Klock II
a0f53b0a5b
Update graphviz tests to accommodate new isize/usize types and is/us suffixes.
2015-01-08 11:02:24 -05:00
Felix S. Klock II
b2e93e2767
Update the compile-fail-fulldeps tests with new isize/usize literal suffixes.
2015-01-08 11:02:24 -05:00
Felix S. Klock II
2259fe1214
Accommodate the "int literal is too large" error message currently embedded in rustc.
2015-01-08 11:02:24 -05:00
Huon Wilson
dc1ba08d16
Test fixes.
2015-01-08 11:02:24 -05:00
Huon Wilson
441044f071
Update compile-fail tests to use is/us, not i/u.
2015-01-08 11:02:24 -05:00
Huon Wilson
85f961e2cc
Update compile fail tests to use usize.
2015-01-08 11:02:24 -05:00
Huon Wilson
0c70ce1424
Update compile fail tests to use isize.
2015-01-08 11:02:24 -05:00
Huon Wilson
d12514bc58
Add a warning feature gate for int/uint in types and i/u suffixes.
2015-01-08 11:02:23 -05:00
Niko Matsakis
ba87b540a4
Add new test for #20232 .
2015-01-08 09:19:56 -05:00
Niko Matsakis
2387651f7d
Update the "English-language" to-string function of a cmt to use
...
more modern terminology and update tests accordingly.
2015-01-08 09:19:27 -05:00
Flavio Percoco
0d0869ad73
Remove the deprecated opt_out_copy feature
2015-01-08 13:39:14 +01:00
Brian Anderson
1f70acbf4c
Improvements to feature staging
...
This gets rid of the 'experimental' level, removes the non-staged_api
case (i.e. stability levels for out-of-tree crates), and lets the
staged_api attributes use 'unstable' and 'deprecated' lints.
This makes the transition period to the full feature staging design
a bit nicer.
2015-01-08 03:07:23 -08:00
Alex Crichton
0abf458348
More test fixes and rebase conflicts
2015-01-07 20:08:37 -08:00
Alex Crichton
ef46caebcc
rollup merge of #20731 : nick29581/assoc-inherant
2015-01-07 19:30:20 -08:00
Alex Crichton
0dc48b47a8
Test fixes and rebase conflicts
2015-01-07 19:27:27 -08:00
Nick Cameron
4d98cbb3f3
Forbid associated items in inherent impls
...
Closes #20359
2015-01-08 15:43:00 +13:00
Alex Crichton
11e265c2e0
rollup merge of #20707 : nikomatsakis/issue-20582
2015-01-07 17:44:24 -08:00
Alex Crichton
373cbab5b0
rollup merge of #20723 : pnkfelix/feature-gate-box-syntax
...
Conflicts:
src/compiletest/compiletest.rs
src/libcollections/lib.rs
src/libserialize/lib.rs
src/libsyntax/feature_gate.rs
2015-01-07 17:42:47 -08:00
Felix S. Klock II
ae4bcd41e8
fallout: part of changes to compile-fail tests. (follows same pattern as prior two commits.)
2015-01-08 02:41:23 +01:00
Alex Crichton
d11bfba71b
rollup merge of #20720 : nick29581/assoc-ice-missing
2015-01-07 17:38:03 -08:00
Felix S. Klock II
d859816715
fallout: run-fail tests that use box. (many/all could be ported to Box::new instead.)
2015-01-08 02:37:58 +01:00
Nick Cameron
68a783a89f
Remove String impls and fix for make tidy
2015-01-08 14:35:53 +13:00
Alex Crichton
bcebec5084
rollup merge of #20706 : nikomatsakis/assoc-types-projections-in-structs-issue-20470
...
Conflicts:
src/librustc_trans/trans/expr.rs
2015-01-07 17:35:00 -08:00
Alex Crichton
51357e04be
rollup merge of #20665 : nikomatsakis/assoc-types-method-dispatch-projection
...
Conflicts:
src/librustc/middle/ty.rs
2015-01-07 17:33:41 -08:00
Felix S. Klock II
a7a2dd96ec
fallout: run-pass tests that use box. (many could be ported to Box::new instead in the future.)
2015-01-08 02:31:37 +01:00
Alex Crichton
6afda64d0d
rollup merge of #20728 : huonw/type-param-shadowing
...
Conflicts:
src/librustc_typeck/check/wf.rs
2015-01-07 17:30:15 -08:00
Alex Crichton
773fdb3dbe
rollup merge of #20631 : huon/no-drop-and-copy
2015-01-07 17:28:38 -08:00
Huon Wilson
92cd8ea96a
Prohibit type parameter shadowing with a clunky hammer.
...
This is a [breaking-change].
Change
impl<T> Foo<T> {
fn bar<T>(...
to (for example)
impl<T> Foo<T> {
fn bar<U>(...
Per RFC 459.
Closes #19390 .
2015-01-08 12:27:28 +11:00
Alex Crichton
6e806bdefd
rollup merge of #20721 : japaric/snap
...
Conflicts:
src/libcollections/vec.rs
src/libcore/fmt/mod.rs
src/librustc/lint/builtin.rs
src/librustc/session/config.rs
src/librustc_trans/trans/base.rs
src/librustc_trans/trans/context.rs
src/librustc_trans/trans/type_.rs
src/librustc_typeck/check/_match.rs
src/librustdoc/html/format.rs
src/libsyntax/std_inject.rs
src/libsyntax/util/interner.rs
src/test/compile-fail/mut-pattern-mismatched.rs
2015-01-07 17:26:58 -08:00
Niko Matsakis
cb98c3d93a
Normalize types of fields in struct literals during type-checking.
...
Fixes #20535 .
2015-01-07 20:26:21 -05:00
Niko Matsakis
18f426e647
Update compile-fail test with new message that is generated as a
...
result of using `ty::type_is_sized`
2015-01-07 20:26:20 -05:00
Niko Matsakis
55c6a68f11
Add rather involved run-pass test case.
2015-01-07 20:26:20 -05:00
Alex Crichton
f6a7dc5528
rollup merge of #20726 : dgrunwald/require-parens-for-chained-comparison
...
[Rendered RFC](https://github.com/rust-lang/rfcs/blob/master/text/0558-require-parentheses-for-chained-comparisons.md )
2015-01-07 17:19:55 -08:00
Alex Crichton
a204dc56c9
rollup merge of #20722 : alexcrichton/audit-show
...
Conflicts:
src/libcollections/vec.rs
src/libcore/fmt/mod.rs
src/librustdoc/html/format.rs
2015-01-07 17:18:59 -08:00
Alex Crichton
dd38f46d71
rollup merge of #20708 : aturon/new-int-modules
...
Conflicts:
src/libserialize/lib.rs
2015-01-07 17:18:01 -08:00
Alex Crichton
b21a0cee19
rollup merge of #20704 : alexcrichton/hopefully-make-tests-less-spurious
...
These tests have all been failing spuroiusly on Windows from time to time, and
one suspicion is that the shilc thread outliving the main thread somehow causes
the problem. Switch all the tests over to using Thread::scoped instead of
Thread::spawn to see if it helps the issue.
cc #19120
2015-01-07 17:17:34 -08:00