]>
git.lizzy.rs Git - rust.git/log
Alex Crichton [Fri, 9 Jan 2015 21:26:21 +0000 (13:26 -0800)]
syntax: Add #[allow(unstable)] to --test expansion
This will temporarily prevent warnings generated from expanding to code that the
test harness itself uses. This solution will require tweaking around the beta
cycle, but it will prevent spurious warnings for now.
Closes #20823
bors [Fri, 9 Jan 2015 17:35:11 +0000 (17:35 +0000)]
Merge pull request #20800 from jroesch/add-regression-for-issue-20414
Add test for issue #20414
Reviewed-by: alexcrichton
bors [Fri, 9 Jan 2015 17:35:11 +0000 (17:35 +0000)]
Merge pull request #20799 from kud1ing/patch-1
Link to http://rustbyexample.com/
Reviewed-by: steveklabnik
bors [Fri, 9 Jan 2015 17:35:10 +0000 (17:35 +0000)]
Merge pull request #20793 from ktossell/rustdoc-fixedvector-syntax
Make rustdoc use the `[_; N]` syntax instead of `[_, ..N]`
Reviewed-by: sfackler
bors [Fri, 9 Jan 2015 17:35:09 +0000 (17:35 +0000)]
Merge pull request #20699 from vhbit/ios-archs
Better iOS support
Reviewed-by: alexcrichton
Valerii Hiora [Fri, 9 Jan 2015 16:25:01 +0000 (18:25 +0200)]
iOS: preliminary 64-bit archs support
Valerii Hiora [Fri, 9 Jan 2015 08:54:10 +0000 (10:54 +0200)]
Updated compiler-rt
Valerii Hiora [Wed, 7 Jan 2015 10:24:18 +0000 (12:24 +0200)]
iOS: makefiles and runtime for new archs
Valerii Hiora [Fri, 9 Jan 2015 16:18:23 +0000 (18:18 +0200)]
iOS: cabi fixes
Changed alignment according to official Apple docs
Valerii Hiora [Mon, 5 Jan 2015 09:54:41 +0000 (11:54 +0200)]
iOS: fixed test build
Now it is possible to run tests on a jailbroken device
Valerii Hiora [Thu, 8 Jan 2015 08:19:52 +0000 (10:19 +0200)]
iOS: updated targets
- target_word_size -> target_pointer_width
- added armv7 and armv7s targets
- enabled building binaries so tests could be run on a jailbroken device
bors [Fri, 9 Jan 2015 09:50:06 +0000 (09:50 +0000)]
auto merge of #20788 : Zoxc/rust/loader, r=huonw
Fixes #19907
Jared Roesch [Fri, 9 Jan 2015 07:35:17 +0000 (23:35 -0800)]
Add test for issue #20414
kud1ing [Fri, 9 Jan 2015 07:25:42 +0000 (08:25 +0100)]
Link to http://rustbyexample.com/
bors [Fri, 9 Jan 2015 04:14:53 +0000 (04:14 +0000)]
auto merge of #20786 : brson/rust/rustdocwarnings, r=huonw
Because we are warning about unstable APIs and there are many
of these yet, this creates a high likelyhood doc tests will
fail.
This doesn't seem right as a blanket policy to me anyway, though
certainly we want it in std. Probably more appropriate to add
a rustdoc option.
John Kåre Alsaker [Fri, 9 Jan 2015 01:14:10 +0000 (02:14 +0100)]
Make the metadata loader use the appropriate Target structure
Fixes #19907
Ken Tossell [Fri, 9 Jan 2015 03:35:08 +0000 (22:35 -0500)]
Make rustdoc use the `[_; N]` syntax instead of `[_, ..N]`
Brian Anderson [Fri, 9 Jan 2015 02:13:20 +0000 (18:13 -0800)]
rustdoc: Stop adding #[deny(warnings)] to all tests
Because we are warning about unstable APIs and there are many
of these yet, this creates a high likelyhood doc tests will
fail.
This doesn't seem right as a blanket policy to me anyway, though
certainly we want it in std. Probably more appropriate to add
a rustdoc option.
bors [Fri, 9 Jan 2015 01:19:54 +0000 (01:19 +0000)]
Merge pull request #20779 from brson/prerel
mk: Update prerelase versioning to conform to semver
Reviewed-by: alexcrichton
bors [Fri, 9 Jan 2015 01:19:54 +0000 (01:19 +0000)]
Merge pull request #20741 from mneumann/dragonfly-pthread-mutex
Fix assertion in Mutex::destroy() on DragonFly (#20698)
Reviewed-by: alexcrichton
bors [Fri, 9 Jan 2015 01:19:53 +0000 (01:19 +0000)]
Merge pull request #20718 from tshepang/bench-fix-some-warnings
bench: fix a few compiler warnings
Reviewed-by: alexcrichton
Brian Anderson [Fri, 9 Jan 2015 01:03:40 +0000 (17:03 -0800)]
mk: Add rustbook to source dist
Brian Anderson [Thu, 8 Jan 2015 23:33:31 +0000 (15:33 -0800)]
mk: Update prerelase versioning to conform to semver
bors [Thu, 8 Jan 2015 20:59:48 +0000 (20:59 +0000)]
Merge pull request #20766 from tsurai/patch-1
doc: Fix unresolved import in Bitv example
Reviewed-by: alexcrichton
bors [Thu, 8 Jan 2015 20:59:48 +0000 (20:59 +0000)]
Merge pull request #20735 from squidpickles/master
Spelling fix compatibel -> compatible
Reviewed-by: Gankro
bors [Thu, 8 Jan 2015 18:40:04 +0000 (18:40 +0000)]
auto merge of #20760 : alexcrichton/rust/rollup, r=alexcrichton
Alex Crichton [Thu, 8 Jan 2015 18:27:03 +0000 (10:27 -0800)]
Fix dead links in the guide and reorganize
Cristian Kubis [Thu, 8 Jan 2015 18:25:53 +0000 (19:25 +0100)]
doc: Fix unresolved import in Bitv example
Michael Neumann [Thu, 8 Jan 2015 18:04:34 +0000 (19:04 +0100)]
Fix destroy assertions in mutex/rwlock/condvar
On DragonFly pthread_{mutex,rwlock,condvar}_destroy() returns EINVAL
when called on a pthread_{mutex,rwlock,condvar}_t that was just
initialized via PTHREAD_{MUTEX,RWLOCK,CONDVAR}_INITIALIZER and not used
in the meantime or initialized via pthread_{mutex,rwlock,condvar}_init().
Change the code to treat a return value of EINVAL on DragonFly as success.
Alex Crichton [Thu, 8 Jan 2015 17:32:06 +0000 (09:32 -0800)]
rollup merge of #20757: nikomatsakis/issue-20624-assoc-types-coherence
Niko Matsakis [Thu, 8 Jan 2015 17:30:13 +0000 (12:30 -0500)]
Remove silly long line.
Alex Crichton [Thu, 8 Jan 2015 17:24:08 +0000 (09:24 -0800)]
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
Alex Crichton [Thu, 8 Jan 2015 17:22:10 +0000 (09:22 -0800)]
rollup merge of #20751: nikomatsakis/issue-20232
Issue #20232. Fun.
r? @eddyb you prob know this system best
Alex Crichton [Thu, 8 Jan 2015 17:22:08 +0000 (09:22 -0800)]
rollup merge of #20746: dotdash/fix_indent
Most of the file lost one level of indentation in a recent rollup. Most
likely an accident during merge conflict resolution.
Alex Crichton [Thu, 8 Jan 2015 17:22:06 +0000 (09:22 -0800)]
rollup merge of #20740: FlaPer87/remove-opt-out-copy
[breaking-change] code using this feature will break.
Alex Crichton [Thu, 8 Jan 2015 17:22:03 +0000 (09:22 -0800)]
rollup merge of #20738: brson/feature-staging2
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.
Alex Crichton [Thu, 8 Jan 2015 17:21:59 +0000 (09:21 -0800)]
rollup merge of #20736: akiss77/pr-u8-c_char
Alex Crichton [Thu, 8 Jan 2015 17:21:57 +0000 (09:21 -0800)]
rollup merge of #19897: steveklabnik/trpl
An updated version of https://github.com/rust-lang/rust/pull/19461
This version vendors aturon/rust-book@
731f7bf and builds it when building the docs. This is almost great, except my `make`-foo is poor, so I have my own personal paths in `mk/docs.mk`. How should I best get around that?
/cc @brson
Niko Matsakis [Thu, 8 Jan 2015 17:02:34 +0000 (12:02 -0500)]
Add another test using projection types in impls.
Niko Matsakis [Thu, 8 Jan 2015 17:02:15 +0000 (12:02 -0500)]
Normalize types bottom up. Fixes #20666.
Steve Klabnik [Tue, 2 Dec 2014 14:20:48 +0000 (09:20 -0500)]
"The Rust Programming Language"
This pulls all of our long-form documentation into a single document,
nicknamed "the book" and formally titled "The Rust Programming
Language."
A few things motivated this change:
* People knew of The Guide, but not the individual Guides. This merges
them together, helping discoverability.
* You can get all of Rust's longform documentation in one place, which
is nice.
* We now have rustbook in-tree, which can generate this kind of
documentation. While its style is basic, the general idea is much
better: a table of contents on the left-hand side.
* Rather than a almost 10,000-line guide.md, there are now smaller files
per section.
Niko Matsakis [Thu, 8 Jan 2015 16:26:42 +0000 (11:26 -0500)]
Adjust tests to be clearer about the type that results from a shift expression.
Niko Matsakis [Thu, 8 Jan 2015 15:49:05 +0000 (10:49 -0500)]
Rename test to fit naming convention.
Niko Matsakis [Thu, 8 Jan 2015 15:45:56 +0000 (10:45 -0500)]
Normalize types in supertraits when checking that impls are valid during wf.
Fixes #20559.
Niko Matsakis [Thu, 8 Jan 2015 11:58:41 +0000 (06:58 -0500)]
Normalize types in impls, add test for coherence failure.
Fixes #20624.
bors [Thu, 8 Jan 2015 16:15:03 +0000 (16:15 +0000)]
auto merge of #20032 : Manishearth/rust/plugin-loader, r=cmr
`rustc something.rs -L folder_with_plugin_dylib/ -Z extra-plugins=foo` works via this
My way of testing this is by cloning https://github.com/Manishearth/rust-clippy, `cargo build`ing it, and then running `rustc examples/box_vec.rs -L target/ -Z extra-plugins=rust_clippy` after editing out the `exern crate rust_clippy` from `box_vec.rs`
r? @huonw
fixes #15446
Niko Matsakis [Thu, 8 Jan 2015 15:59:40 +0000 (10:59 -0500)]
Wrap long line
Niko Matsakis [Thu, 8 Jan 2015 15:56:56 +0000 (10:56 -0500)]
Modify lifetime-infereence-give-expl-lifetime-param-3 to use a shorter
type name so that messages do not wrap.
Niko Matsakis [Thu, 8 Jan 2015 15:28:59 +0000 (10:28 -0500)]
Allow shift operator to take any integral type (and add a test).
Felix S. Klock II [Thu, 8 Jan 2015 14:19:12 +0000 (15:19 +0100)]
Update graphviz tests to accommodate new isize/usize types and is/us suffixes.
Felix S. Klock II [Thu, 8 Jan 2015 14:09:03 +0000 (15:09 +0100)]
Update the compile-fail-fulldeps tests with new isize/usize literal suffixes.
Felix S. Klock II [Thu, 8 Jan 2015 14:05:17 +0000 (15:05 +0100)]
Accommodate the "int literal is too large" error message currently embedded in rustc.
Huon Wilson [Thu, 8 Jan 2015 12:36:24 +0000 (23:36 +1100)]
Test fixes.
Huon Wilson [Thu, 8 Jan 2015 11:05:56 +0000 (22:05 +1100)]
Update compile-fail tests to use is/us, not i/u.
Huon Wilson [Thu, 8 Jan 2015 11:02:42 +0000 (22:02 +1100)]
Update compile fail tests to use usize.
Huon Wilson [Thu, 8 Jan 2015 10:54:35 +0000 (21:54 +1100)]
Update compile fail tests to use isize.
Huon Wilson [Thu, 8 Jan 2015 10:45:49 +0000 (21:45 +1100)]
Remove warning from the libraries.
This adds the int_uint feature to *every* library, whether or not it
needs it.
Huon Wilson [Thu, 8 Jan 2015 10:16:35 +0000 (21:16 +1100)]
Add a warning feature gate for int/uint in types and i/u suffixes.
Huon Wilson [Thu, 8 Jan 2015 09:13:14 +0000 (20:13 +1100)]
Store deprecated status of i/u-suffixed literals.
Manish Goregaokar [Thu, 8 Jan 2015 12:52:43 +0000 (18:22 +0530)]
Ignore extra error from test for now
Niko Matsakis [Thu, 8 Jan 2015 14:18:55 +0000 (09:18 -0500)]
Add new test for #20232.
Niko Matsakis [Thu, 8 Jan 2015 14:13:40 +0000 (09:13 -0500)]
Update regionck to discharge the binder safely (using
`assert_no_late_bound_regions`) and to give more helpful debug output.
Niko Matsakis [Thu, 8 Jan 2015 14:13:08 +0000 (09:13 -0500)]
Fix the actual bug for #20232: when creating the cmt for the implicit
deref that is associated with an overloaded index, we should not
consult the method lookup table. This deref is *always* a deref of an
`&T` and hence is never overloaded (and is also not present in the
tables; it has no "id" or other associated key).
Niko Matsakis [Thu, 8 Jan 2015 14:12:06 +0000 (09:12 -0500)]
Update the "English-language" to-string function of a `cmt` to use
more modern terminology and update tests accordingly.
Niko Matsakis [Wed, 7 Jan 2015 15:53:09 +0000 (10:53 -0500)]
Add comments to autoderef() helper and refactor it to take
an `Option<&Expr>` like everything else.
bors [Thu, 8 Jan 2015 12:39:56 +0000 (12:39 +0000)]
auto merge of #20744 : huonw/rust/fix-string-slicing, r=pnkfelix
Flavio Percoco [Thu, 8 Jan 2015 11:01:48 +0000 (12:01 +0100)]
Remove the deprecated opt_out_copy feature
Björn Steinbrink [Thu, 8 Jan 2015 12:14:07 +0000 (13:14 +0100)]
Restore indentation in common.rs
Most of the file lost one level of indentation in a recent rollup. Most
likely an accident during merge conflict resolution.
Huon Wilson [Thu, 8 Jan 2015 11:48:32 +0000 (22:48 +1100)]
Let ToString work with unsized types, importantly, `str`.
Brian Anderson [Wed, 7 Jan 2015 23:48:16 +0000 (15:48 -0800)]
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.
Manish Goregaokar [Sat, 20 Dec 2014 02:39:43 +0000 (08:09 +0530)]
Add test for -Z extra-plugins
bors [Thu, 8 Jan 2015 09:04:49 +0000 (09:04 +0000)]
auto merge of #20737 : aturon/rust/stab-stragglers, r=alexcrichton
Marks `vec`, `char` and `fmt` as stable module names.
Aaron Turon [Thu, 8 Jan 2015 08:26:21 +0000 (00:26 -0800)]
Add missing module stability attributes
Manish Goregaokar [Wed, 10 Dec 2014 20:18:23 +0000 (01:48 +0530)]
libsyntax: add COMMAND_LINE_SP and use it for spans generated from the command line
Manish Goregaokar [Tue, 9 Dec 2014 17:25:37 +0000 (22:55 +0530)]
librustc_driver: Add support for loading plugins via command line (fixes #15446)
Manish Goregaokar [Tue, 9 Dec 2014 16:44:08 +0000 (22:14 +0530)]
librustc::plugin : make PluginLoader usable for loading argument-specified plugins
Manish Goregaokar [Tue, 9 Dec 2014 16:03:05 +0000 (21:33 +0530)]
librustc::metadata : Allow passing a string to read_plugin_metadata
Manish Goregaokar [Tue, 9 Dec 2014 09:55:49 +0000 (15:25 +0530)]
librustc::session : Make DebuggingOpts use the options! macro
Manish Goregaokar [Tue, 9 Dec 2014 09:44:01 +0000 (15:14 +0530)]
librustc::session : Make cgoptions macro more generic
Akos Kiss [Thu, 8 Jan 2015 07:03:00 +0000 (08:03 +0100)]
Fix: `libc::c_char` is not always `i8`
Tshepang Lekhonkhobe [Wed, 7 Jan 2015 21:39:05 +0000 (23:39 +0200)]
bench: fix a few compiler warnings
Kevin Rauwolf [Thu, 8 Jan 2015 05:47:15 +0000 (21:47 -0800)]
Spelling fix compatibel -> compatible
bors [Thu, 8 Jan 2015 05:35:51 +0000 (05:35 +0000)]
auto merge of #20733 : alexcrichton/rust/rollup, r=alexcrichton
Alex Crichton [Thu, 8 Jan 2015 04:06:37 +0000 (20:06 -0800)]
More test fixes and rebase conflicts
Alex Crichton [Thu, 8 Jan 2015 03:30:20 +0000 (19:30 -0800)]
rollup merge of #20731: nick29581/assoc-inherant
Alex Crichton [Thu, 8 Jan 2015 02:53:58 +0000 (18:53 -0800)]
Test fixes and rebase conflicts
Nick Cameron [Thu, 8 Jan 2015 02:07:15 +0000 (15:07 +1300)]
Forbid associated items in inherent impls
Closes #20359
Alex Crichton [Thu, 8 Jan 2015 01:44:24 +0000 (17:44 -0800)]
rollup merge of #20707: nikomatsakis/issue-20582
Alex Crichton [Thu, 8 Jan 2015 01:42:47 +0000 (17:42 -0800)]
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
Felix S. Klock II [Thu, 8 Jan 2015 01:41:23 +0000 (02:41 +0100)]
fallout: part of changes to compile-fail tests. (follows same pattern as prior two commits.)
Alex Crichton [Thu, 8 Jan 2015 01:38:03 +0000 (17:38 -0800)]
rollup merge of #20720: nick29581/assoc-ice-missing
Felix S. Klock II [Thu, 8 Jan 2015 01:37:58 +0000 (02:37 +0100)]
fallout: run-fail tests that use box. (many/all could be ported to `Box::new` instead.)
Alex Crichton [Thu, 8 Jan 2015 01:36:16 +0000 (17:36 -0800)]
rollup merge of #20657: alexcrichton/stabilize-macros
Nick Cameron [Thu, 8 Jan 2015 01:33:57 +0000 (14:33 +1300)]
Remove String impls and fix for make tidy
Alex Crichton [Thu, 8 Jan 2015 01:35:00 +0000 (17:35 -0800)]
rollup merge of #20706: nikomatsakis/assoc-types-projections-in-structs-issue-20470
Conflicts:
src/librustc_trans/trans/expr.rs
Alex Crichton [Thu, 8 Jan 2015 01:33:41 +0000 (17:33 -0800)]
rollup merge of #20665: nikomatsakis/assoc-types-method-dispatch-projection
Conflicts:
src/librustc/middle/ty.rs
Felix S. Klock II [Thu, 8 Jan 2015 01:25:56 +0000 (02:25 +0100)]
fallout: run-pass tests that use box. (many could be ported to `Box::new` instead in the future.)
Alex Crichton [Thu, 8 Jan 2015 01:30:15 +0000 (17:30 -0800)]
rollup merge of #20728: huonw/type-param-shadowing
Conflicts:
src/librustc_typeck/check/wf.rs
Alex Crichton [Thu, 8 Jan 2015 01:28:38 +0000 (17:28 -0800)]
rollup merge of #20631: huon/no-drop-and-copy
Huon Wilson [Thu, 8 Jan 2015 00:39:45 +0000 (11:39 +1100)]
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.