Commit Graph

36733 Commits

Author SHA1 Message Date
Brian Anderson
a728b4c9b8 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.
2015-01-08 18:13:20 -08:00
Brian Anderson
44a287e6eb mk: Add rustbook to source dist 2015-01-08 17:03:40 -08:00
bors
6354d60ede Merge pull request #20766 from tsurai/patch-1
doc: Fix unresolved import in Bitv example

Reviewed-by: alexcrichton
2015-01-08 20:59:48 +00:00
bors
bc6e080df5 Merge pull request #20735 from squidpickles/master
Spelling fix compatibel -> compatible

Reviewed-by: Gankro
2015-01-08 20:59:48 +00:00
bors
00b112c45a auto merge of #20760 : alexcrichton/rust/rollup, r=alexcrichton 2015-01-08 18:40:04 +00:00
Alex Crichton
7541f82fab Fix dead links in the guide and reorganize 2015-01-08 10:27:03 -08:00
Cristian Kubis
018730b39a doc: Fix unresolved import in Bitv example 2015-01-08 19:25:53 +01:00
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
6a09aa208f 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.
2015-01-08 09:22:08 -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
Alex Crichton
e40f62d9bf 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.
2015-01-08 09:22:03 -08:00
Alex Crichton
6a48b181bd rollup merge of #20736: akiss77/pr-u8-c_char 2015-01-08 09:21:59 -08:00
Alex Crichton
cdc75bc34c 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
2015-01-08 09:21:57 -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
Steve Klabnik
16a6ebd1f6 "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.
2015-01-08 12:02:11 -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
bors
a8a210b57e 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
2015-01-08 16:15:03 +00: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
4f5a57e80e Remove warning from the libraries.
This adds the int_uint feature to *every* library, whether or not it
needs it.
2015-01-08 11:02:23 -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
Huon Wilson
e95779554e Store deprecated status of i/u-suffixed literals. 2015-01-08 11:02:23 -05:00
Manish Goregaokar
6342aa62ef Ignore extra error from test for now 2015-01-08 20:20:31 +05:30
Niko Matsakis
ba87b540a4 Add new test for #20232. 2015-01-08 09:19:56 -05:00
Niko Matsakis
9b5fb6091a Update regionck to discharge the binder safely (using
`assert_no_late_bound_regions`) and to give more helpful debug output.
2015-01-08 09:19:56 -05:00
Niko Matsakis
92425496e5 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).
2015-01-08 09:19:27 -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
Niko Matsakis
0a32010e43 Add comments to autoderef() helper and refactor it to take
an `Option<&Expr>` like everything else.
2015-01-08 09:19:07 -05:00
bors
2f99a41fe1 auto merge of #20744 : huonw/rust/fix-string-slicing, r=pnkfelix 2015-01-08 12:39:56 +00:00
Flavio Percoco
0d0869ad73 Remove the deprecated opt_out_copy feature 2015-01-08 13:39:14 +01:00
Björn Steinbrink
114d2bdad1 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.
2015-01-08 13:14:07 +01:00
Huon Wilson
3155b31011 Let ToString work with unsized types, importantly, str. 2015-01-08 22:48:32 +11: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
Manish Goregaokar
f4a2672600 Add test for -Z extra-plugins 2015-01-08 14:47:27 +05:30
bors
5364c4853f auto merge of #20737 : aturon/rust/stab-stragglers, r=alexcrichton
Marks `vec`, `char` and `fmt` as stable module names.
2015-01-08 09:04:49 +00:00