Eduard Burtescu
11ef6f1349
Remove "unboxed" attribute in code referring to new closures.
2015-01-26 04:15:09 +02:00
Alex Crichton
df1cddf20a
rollup merge of #20179 : eddyb/blind-items
...
Conflicts:
src/librustc/diagnostics.rs
src/librustdoc/clean/mod.rs
src/librustdoc/html/format.rs
src/libsyntax/parse/parser.rs
2015-01-21 11:56:00 -08:00
Alex Crichton
4ffde0814f
Test fixes and rebase conflicts
2015-01-21 10:32:56 -08:00
Alex Crichton
5fda9bccad
rollup merge of #21368 : tomjakubowski/rustdoc-miscellany
...
Conflicts:
src/librustdoc/clean/mod.rs
2015-01-21 09:14:30 -08:00
Alex Crichton
5123f75856
rollup merge of #21342 : Diggsey/issue-21310
...
Fixes #21310
2015-01-21 09:13:53 -08:00
Alex Crichton
0c981875e4
rollup merge of #21340 : pshc/libsyntax-no-more-ints
...
Collaboration with @rylev!
I didn't change `int` in the [quasi-quoter](99ae1a30f3/src/libsyntax/ext/quote.rs (L328) ), because I'm not sure if there will be adverse effects.
Addresses #21095 .
2015-01-21 09:13:51 -08:00
Eduard Burtescu
3102b9e19e
rustdoc: fix fallout of merging ast::ViewItem into ast::Item.
2015-01-21 16:27:26 +02:00
Diggory Blake
eb086505b8
Display negative trait implementations correctly in rustdoc
...
Added doc test
2015-01-21 04:35:57 +00:00
Seo Sanghyeon
3f0cc8011a
Make output type in ast::FnDecl optional
2015-01-18 22:49:19 +09:00
Tom Jakubowski
159236a63b
rustdoc: Handle associated types on inlined impls
...
Fix #21348
2015-01-17 22:54:24 -08:00
Tom Jakubowski
e930aeb32b
rustdoc: Accept string source in core::run_core
...
This is wanted by external tooling that uses rustdoc. There are likely
some bugs when actually generating HTML output (which may expect to be
able to read the source) but all I need for now is the cleaned crate and
analysis.
2015-01-17 22:54:23 -08:00
Tom Jakubowski
7b4c50821a
rustdoc: Add Show impls to more clean types
2015-01-17 22:54:23 -08:00
Paul Collier
d5c83652b3
libsyntax: rename functions from uint to usize
2015-01-17 20:47:30 -08:00
Eduard Burtescu
2cdc86c180
syntax: add fully qualified UFCS expressions.
2015-01-15 18:51:14 +02:00
Tom Jakubowski
616db5a501
rustdoc: Show type bindings on object types
...
Fix #20299
2015-01-12 09:43:24 -08:00
Tom Jakubowski
072a89642b
rustdoc: Remove traces of old closures
2015-01-12 09:25:20 -08:00
Tom Jakubowski
8a69d35e1e
rustdoc: Fix where clauses on re-exports
...
Projection predicates on re-exports, for the time being, are rendered as
equality predicates because that's easier. It would be nice to fix this
in the future.
Some gymnastics were needed to remove redundant bounds from the `types`
and `lifetimes` fields, remove implicit `Sized` bounds, and re-create
`?Sized` bounds.
Fix #20203 , fix #20924 , fix #20911 , fix #20534
2015-01-12 09:25:07 -08:00
Huon Wilson
e95779554e
Store deprecated status of i/u-suffixed literals.
2015-01-08 11:02:23 -05:00
Alex Crichton
0dc48b47a8
Test fixes and rebase conflicts
2015-01-07 19:27:27 -08: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
Tom Jakubowski
a0734ff7e0
rustdoc: Render associated type bindings
...
e.g. `Foo<Output=A>`
This does not work cross-crate unfortunately.
Part of #20646
2015-01-07 16:22:04 -08:00
Jorge Aparicio
517f1cc63c
use slicing sugar
2015-01-07 17:35:56 -05:00
Alex Crichton
5c3ddcb15d
rollup merge of #20481 : seanmonstar/fmt-show-string
...
Conflicts:
src/compiletest/runtest.rs
src/libcore/fmt/mod.rs
src/libfmt_macros/lib.rs
src/libregex/parse.rs
src/librustc/middle/cfg/construct.rs
src/librustc/middle/dataflow.rs
src/librustc/middle/infer/higher_ranked/mod.rs
src/librustc/middle/ty.rs
src/librustc_back/archive.rs
src/librustc_borrowck/borrowck/fragments.rs
src/librustc_borrowck/borrowck/gather_loans/mod.rs
src/librustc_resolve/lib.rs
src/librustc_trans/back/link.rs
src/librustc_trans/save/mod.rs
src/librustc_trans/trans/base.rs
src/librustc_trans/trans/callee.rs
src/librustc_trans/trans/common.rs
src/librustc_trans/trans/consts.rs
src/librustc_trans/trans/controlflow.rs
src/librustc_trans/trans/debuginfo.rs
src/librustc_trans/trans/expr.rs
src/librustc_trans/trans/monomorphize.rs
src/librustc_typeck/astconv.rs
src/librustc_typeck/check/method/mod.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/check/regionck.rs
src/librustc_typeck/collect.rs
src/libsyntax/ext/format.rs
src/libsyntax/ext/source_util.rs
src/libsyntax/ext/tt/transcribe.rs
src/libsyntax/parse/mod.rs
src/libsyntax/parse/token.rs
src/test/run-pass/issue-8898.rs
2015-01-06 15:22:24 -08:00
Alex Crichton
5f27b50080
rollup merge of #20609 : cmr/mem
2015-01-06 15:07:48 -08:00
Sean McArthur
44440e5c18
core: split into fmt::Show and fmt::String
...
fmt::Show is for debugging, and can and should be implemented for
all public types. This trait is used with `{:?}` syntax. There still
exists #[derive(Show)].
fmt::String is for types that faithfully be represented as a String.
Because of this, there is no way to derive fmt::String, all
implementations must be purposeful. It is used by the default format
syntax, `{}`.
This will break most instances of `{}`, since that now requires the type
to impl fmt::String. In most cases, replacing `{}` with `{:?}` is the
correct fix. Types that were being printed specifically for users should
receive a fmt::String implementation to fix this.
Part of #20013
[breaking-change]
2015-01-06 14:49:42 -08:00
Nick Cameron
f7ff37e4c5
Replace full slice notation with index calls
2015-01-07 10:46:33 +13:00
Corey Richardson
abcbe27695
syntax/rustc: implement isize/usize
2015-01-06 15:15:07 -05:00
Alex Crichton
bb5e16b4b8
rollup merge of #20554 : huonw/mut-pattern
...
Conflicts:
src/librustc_typeck/check/_match.rs
2015-01-05 18:38:51 -08:00
Jorge Aparicio
714a5b7f5e
remove TyClosure
2015-01-05 17:22:15 -05:00
Jorge Aparicio
5f7f2c9a05
remove ty_closure
2015-01-05 17:22:15 -05:00
Huon Wilson
bf6c007760
Change & pat to only work with &T, and &mut with &mut T.
...
This implements RFC 179 by making the pattern `&<pat>` require matching
against a variable of type `&T`, and introducing the pattern `&mut
<pat>` which only works with variables of type `&mut T`.
The pattern `&mut x` currently parses as `&(mut x)` i.e. a pattern match
through a `&T` or a `&mut T` that binds the variable `x` to have type
`T` and to be mutable. This should be rewritten as follows, for example,
for &mut x in slice.iter() {
becomes
for &x in slice.iter() {
let mut x = x;
Due to this, this is a
[breaking-change]
Closes #20496 .
2015-01-05 16:14:17 +11:00
Huon Wilson
19120209d8
Rename core::char::Char to CharExt to match prelude guidelines.
...
Imports may need to be updated so this is a
[breaking-change]
2015-01-05 12:30:30 +11:00
bors
f1cda51bb4
Merge pull request #20512 from bjz/rustdoc
...
Allow rustdoc to accept vector pattern arguments
Reviewed-by: alexcrichton, alexcrichton
2015-01-04 21:36:40 +00:00
Brendan Zabarauskas
afdddefc10
Allow rustdoc to accept vector pattern arguments
2015-01-04 17:52:08 +11:00
Jorge Aparicio
351409a622
sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rs
2015-01-03 22:54:18 -05:00
Jorge Aparicio
56dcbd17fd
sed -i -s 's/\bmod,/self,/g' **/*.rs
2015-01-03 22:42:21 -05:00
Jorge Aparicio
fb14dad4d6
rustdoc: unbox closures used in let bindings
2014-12-31 22:50:27 -05:00
Niko Matsakis
e186accbc4
Fix rebase conflicts
2014-12-30 12:09:21 -05:00
Niko Matsakis
d62d4953d2
Add a FIXME to patch up rustdoc
2014-12-30 09:36:22 -05:00
Niko Matsakis
2bbd2f9cea
Remove the def-id from type parameters. Having this def-id was bad for several reasons:
...
1. Produced more unique types than is necessary. This increases memory consumption.
2. Linking the type parameter to its definition *seems* like a good idea, but it
encourages reliance on the bounds listing.
3. It made pretty-printing harder and in particular was causing bad error messages
when errors occurred before the `TypeParameterDef` entries were fully stored.
2014-12-30 09:36:22 -05:00
Niko Matsakis
becbd81aaa
Integrate projection bounds to ExistentialBounds but do not use them for anything.
2014-12-30 09:36:21 -05:00
Niko Matsakis
4404592f36
Implement associated type projection and normalization.
2014-12-30 09:36:21 -05:00
Alex Crichton
2a8547783f
rollup merge of #20194 : nick29581/dst-syntax
...
Part of #19607 .
r? @nikomatsakis
2014-12-29 16:35:59 -08:00
Huon Wilson
91db254c81
More rebase fixes.
2014-12-30 00:11:30 +11:00
Huon Wilson
4f2b0f032a
Store Substs in an arena in the tcx.
...
This current inflates memory use more than 3 times.
2014-12-29 23:55:24 +11:00
Nick Cameron
c4640a2a69
Changes to RustDoc
2014-12-26 10:54:24 +13:00
bors
5ba6102657
auto merge of #20180 : jroesch/rust/clean-where-predicate, r=alexcrichton
...
Add support for all variants of ast::WherePredicate in clean/mod.rs. Fixes #20048 , but will need modification when EqualityPredicates are fully implemented in #20041 .
2014-12-25 18:01:36 +00:00
Tom Jakubowski
64b5464f30
rustdoc: Use Fn trait sugar for external paths
...
Fix #19909
2014-12-24 11:18:27 -06:00
Tom Jakubowski
c639cf6ee9
rustdoc: Use unboxed closure sugar
...
This unfortunately leaves sugaring Fn/FnMut/FnOnce on cross-crate
re-exports for future work.
cc #19909
2014-12-24 11:18:27 -06:00
Tom Jakubowski
37225288be
rustdoc: render higher-rank trait bounds
...
Fix #19915
2014-12-24 11:18:27 -06:00