Alex Crichton
1506b34e0c
rollup merge of #22286 : nikomatsakis/variance-4b
...
Conflicts:
src/librustc/middle/infer/combine.rs
src/librustc_typeck/check/wf.rs
2015-02-18 15:52:01 -08:00
Niko Matsakis
872ce47955
Fallout: tests. As tests frequently elide things, lots of changes
...
here. Some of this may have been poorly rebased, though I tried to be
careful and preserve the spirit of the test.
2015-02-18 10:25:28 -05:00
Niko Matsakis
362d713026
Fix remaining bench/debuginfo tests (and a few stragglers)
2015-02-18 09:11:02 -05:00
bors
6c065fc8cb
Auto merge of #21774 - ejjeong:enable-test-for-android, r=alexcrichton
...
- Now "make check-stage2-T-aarch64-linux-android-H-x86_64-unknown-linux-gnu" works (#21773 )
- Fix & enable debuginfo tests for android (#10381 )
- Fix & enable more tests for android (both for arm/aarch64)
- Enable many already-pass tests on android (both for arm/aarch64)
2015-02-17 19:35:12 +00:00
Manish Goregaokar
cdf0cb0a16
Rollup merge of #22360 - wg:master, r=alexcrichton
2015-02-17 06:23:36 +05:30
Eduard Burtescu
b49f5281c2
tests: debuginfo: use static mut to avoid constant folding globals.
2015-02-16 17:13:48 +02:00
Will
42f5ac568a
Fix tests that fail on FreeBSD
2015-02-15 17:18:55 +09:00
Felix S. Klock II
edabfe2912
opt into box_patterns in debuginfo tests.
2015-02-11 11:47:14 +01:00
Eunji Jeong
b1af8648a7
Enable test/debuginfo on android
2015-02-10 15:48:07 +09:00
Michael Woerister
93edb7c17b
debuginfo: Fix problem with debug locations of constants in match patterns.
2015-02-06 21:24:06 +01:00
Jorge Aparicio
17bc7d8d5b
cleanup: replace as[_mut]_slice() calls with deref coercions
2015-02-05 13:45:01 -05:00
Jorge Aparicio
571cc7f8e9
remove all kind annotations from closures
2015-02-04 20:06:08 -05:00
Aaron Turon
3e39f0bc0e
Rename std::path to std::old_path
...
As part of [RFC 474](https://github.com/rust-lang/rfcs/pull/474 ), this
commit renames `std::path` to `std::old_path`, leaving the existing path
API in place to ease migration to the new one. Updating should be as
simple as adjusting imports, and the prelude still maps to the old path
APIs for now.
[breaking-change]
2015-02-03 14:34:42 -08:00
Jorge Aparicio
fd702702ee
for x in xs.into_iter() -> for x in xs
...
Also `for x in option.into_iter()` -> `if let Some(x) = option`
2015-02-02 13:40:18 -05:00
Jorge Aparicio
d5d7e6565a
for x in xs.iter() -> for x in &xs
2015-02-02 13:40:18 -05:00
Alex Crichton
e8fd9d3d0b
Merge remote-tracking branch 'origin/master' into rollup
2015-01-30 19:55:37 -08:00
Tobias Bucher
7f64fe4e27
Remove all i suffixes
2015-01-30 04:38:54 +01:00
Jorge Aparicio
7d661af9c8
for x in range(a, b) -> for x in a..b
...
sed -i 's/in range(\([^,]*\), *\([^()]*\))/in \1\.\.\2/g' **/*.rs
2015-01-29 07:47:37 -05:00
Jorge Aparicio
c300d681bd
range(a, b).foo() -> (a..b).foo()
...
sed -i 's/ range(\([^,]*\), *\([^()]*\))\./ (\1\.\.\2)\./g' **/*.rs
2015-01-29 07:46:44 -05:00
Manish Goregaokar
c709ed2faf
Merge remote-tracking branch 'origin/master' into rollup
...
Conflicts:
src/libcollections/slice.rs
src/libcore/nonzero.rs
src/libcore/ops.rs
2015-01-28 23:31:03 +05:30
Brian Anderson
7122305053
Merge remote-tracking branch 'rust-lang/master'
...
Conflicts:
src/libcore/cell.rs
src/librustc_driver/test.rs
src/libstd/old_io/net/tcp.rs
src/libstd/old_io/process.rs
2015-01-27 15:05:04 -08:00
Manish Goregaokar
51ff9e82ec
Rollup merge of #21602 - japaric:derive-copy, r=alexcrichton
2015-01-27 22:24:02 +05:30
Alex Crichton
5d836cdf86
std: Rename Writer::write to Writer::write_all
...
In preparation for upcoming changes to the `Writer` trait (soon to be called
`Write`) this commit renames the current `write` method to `write_all` to match
the semantics of the upcoming `write_all` method. The `write` method will be
repurposed to return a `usize` indicating how much data was written which
differs from the current `write` semantics. In order to head off as much
unintended breakage as possible, the method is being deprecated now in favor of
a new name.
[breaking-change]
2015-01-26 16:01:58 -08:00
Alex Crichton
3a07f859b8
Fallout of io => old_io
2015-01-26 16:01:16 -08:00
Brian Anderson
d179ba3b8e
Merge remote-tracking branch 'rust-lang/master'
...
Conflicts:
src/libcore/cmp.rs
src/libcore/fmt/mod.rs
src/libcore/iter.rs
src/libcore/marker.rs
src/libcore/num/f32.rs
src/libcore/num/f64.rs
src/libcore/result.rs
src/libcore/str/mod.rs
src/librustc/lint/builtin.rs
src/librustc/lint/context.rs
src/libstd/sync/mpsc/mod.rs
src/libstd/sync/poison.rs
2015-01-25 22:14:06 -08:00
Jorge Aparicio
bff462302b
cleanup: s/impl Copy/#[derive(Copy)]/g
2015-01-25 11:20:38 -05:00
Brian Anderson
63fcbcf3ce
Merge remote-tracking branch 'rust-lang/master'
...
Conflicts:
mk/tests.mk
src/liballoc/arc.rs
src/liballoc/boxed.rs
src/liballoc/rc.rs
src/libcollections/bit.rs
src/libcollections/btree/map.rs
src/libcollections/btree/set.rs
src/libcollections/dlist.rs
src/libcollections/ring_buf.rs
src/libcollections/slice.rs
src/libcollections/str.rs
src/libcollections/string.rs
src/libcollections/vec.rs
src/libcollections/vec_map.rs
src/libcore/any.rs
src/libcore/array.rs
src/libcore/borrow.rs
src/libcore/error.rs
src/libcore/fmt/mod.rs
src/libcore/iter.rs
src/libcore/marker.rs
src/libcore/ops.rs
src/libcore/result.rs
src/libcore/slice.rs
src/libcore/str/mod.rs
src/libregex/lib.rs
src/libregex/re.rs
src/librustc/lint/builtin.rs
src/libstd/collections/hash/map.rs
src/libstd/collections/hash/set.rs
src/libstd/sync/mpsc/mod.rs
src/libstd/sync/mutex.rs
src/libstd/sync/poison.rs
src/libstd/sync/rwlock.rs
src/libsyntax/feature_gate.rs
src/libsyntax/test.rs
2015-01-25 01:20:55 -08:00
Michael Woerister
612ded78e3
debuginfo: Extend option-like-enum test case to contain nested discriminants.
2015-01-24 15:02:38 +01:00
Steve Klabnik
07fb31a099
Rollup merge of #21471 - michaelwoerister:associated-types, r=alexcrichton
...
This should fix issue #20797 (but I don't want to close it automatically).
As the actual fix is very small this would be a perfect candidate for a rollup.
2015-01-22 18:09:59 -05:00
Alex Crichton
90af72378d
Make diagnostic ordering deterministic
2015-01-21 20:25:19 -08:00
Brian Anderson
7b73ec4698
Tie stability attributes to feature gates
2015-01-21 16:16:21 -08:00
Michael Woerister
3a44107f9e
debuginfo: Fix issue with associated types and struct fields
2015-01-21 18:25:53 +01:00
Alex Crichton
953f294ea3
rustc: Remove deprecated flags
...
This commit removes a number of deprecated flags from the compiler:
* opt-level => -C opt-level
* debuginfo => -C debuginfo
* print-crate-name => --print crate-name
* print-file-name => --print file-names
* no-trans => -Z no-trans
* no-analysis => -Z no-analysis
* parse-only => -Z parse-only
* dep-info => --emit dep-info
This commit also moves the --pretty flag behind `-Z unstable-options` as the
pretty printer will likely not be stable for 1.0
cc #19051
2015-01-20 11:16:26 -08:00
Alex Crichton
6dc94f744e
rollup merge of #21197 : michaelwoerister/linestablesonly-forloop
...
Fixes #21067 .
2015-01-15 14:12:06 -08:00
Michael Woerister
45c6423cbc
debuginfo: Fix ICE when compiling for-loops with lines-tables-only.
2015-01-15 15:22:56 +01:00
Niko Matsakis
2479dfcbf7
Revert "rustc_trans: Fix type projection debuginfo" -- it potentially papers over a lack
...
of normalization that should have taken place.
This reverts commit f7745a9be3 .
2015-01-14 16:35:14 -05:00
Erick Tryzelaar
f7745a9be3
rustc_trans: Fix type projection debuginfo
...
Closes #20797
2015-01-11 21:39:03 -08: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
0dc48b47a8
Test fixes and rebase conflicts
2015-01-07 19:27:27 -08:00
Jorge Aparicio
ed4bebda96
remove some slicing_syntax feature gates
2015-01-07 18:37:04 -05:00
Alex Crichton
a64000820f
More test fixes
2015-01-06 21:26:48 -08:00
Alex Crichton
f358dbf1e7
rollup merge of #20557 : cactorium/prettyprinters
...
As per https://github.com/rust-lang/rust/issues/20405 . To be more precise, the changes just the processing of enums when the name is "RUST$ENCODED$ENUM$..." so it correctly parses when there is more than one number encoding the location of the field it's looking for to determine state of the enum
2015-01-06 15:24:52 -08:00
Alex Crichton
5f27b50080
rollup merge of #20609 : cmr/mem
2015-01-06 15:07:48 -08:00
Nick Cameron
77ed497456
Tests
2015-01-07 10:49:00 +13:00
Corey Richardson
5a4ca31918
test fallout from isize/usize
2015-01-06 16:48:33 -05:00
Nick Cameron
f7ff37e4c5
Replace full slice notation with index calls
2015-01-07 10:46:33 +13:00
Alex Crichton
7975fd9cee
rollup merge of #20482 : kmcallister/macro-reform
...
Conflicts:
src/libflate/lib.rs
src/libstd/lib.rs
src/libstd/macros.rs
src/libsyntax/feature_gate.rs
src/libsyntax/parse/parser.rs
src/libsyntax/show_span.rs
src/test/auxiliary/macro_crate_test.rs
src/test/compile-fail/lint-stability.rs
src/test/run-pass/intrinsics-math.rs
src/test/run-pass/tcp-connect-timeouts.rs
2015-01-05 19:01:17 -08:00
Keegan McAllister
c2e26972e3
Un-gate macro_rules
2015-01-05 18:21:14 -08:00
Jorge Aparicio
ef726591f8
fix debuginfo tests
2015-01-05 17:22:17 -05:00
Kelvin Ly
d33857208f
Fixed tests
2015-01-05 15:28:19 -05:00