mitaa
ea83349c9f
Retire rustdocs ANALYSISKEY
...
The thread-local isn't needed and consists of mostly empty fields which
were just used to move the data into `html::render::CACHE_KEY`.
2016-04-13 19:39:17 +02:00
Jeffrey Seyfried
8f32fdecfb
Remove LastPrivate
2016-02-26 00:37:27 +00:00
Vadim Petrochenkov
c1ad5af4a6
Changes to data produced by privacy pass
2015-11-19 14:16:35 +03:00
Niko Matsakis
e91bef2e05
fallout from moving def-id
2015-08-24 05:35:34 -04:00
Nick Cameron
0dd0925f57
Tidying up and reformatting
2015-04-01 14:07:19 +13:00
Eduard Burtescu
5a6a9ed792
rustc: combine partial_def_map and last_private_map into def_map.
2015-02-24 14:16:02 +02:00
Jorge Aparicio
788181d405
s/Show/Debug/g
2015-01-29 07:49:02 -05:00
Alex Crichton
a9decbdc44
rustc: Move the privacy pass to its own crate
2015-01-16 08:38:24 -08:00
Eduard Burtescu
2cdc86c180
syntax: add fully qualified UFCS expressions.
2015-01-15 18:51:14 +02: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
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
Jorge Aparicio
8570f0acc7
rustc: remove remaining boxed closures
2015-01-05 17:22:13 -05:00
Flavio Percoco
8b883ab268
Add syntax for negative implementations of traits
...
This commit introduces the syntax for negative implmenetations of traits
as shown below:
`impl !Trait for Type {}`
cc #13231
Part of RFC #3
2015-01-04 23:16:13 +01: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
06408b4dd3
rustc: unbox closures used in let bindings
2014-12-31 22:50:26 -05:00
Aaron Turon
6abfac083f
Fallout from stabilization
2014-12-30 17:06:08 -08:00
Nick Cameron
e656081b70
Accept ?Sized
as well as Sized?
...
Includes a bit of refactoring to store `?` unbounds as bounds with a modifier, rather than in their own world, in the AST at least.
2014-12-26 10:16:24 +13:00
Alex Crichton
082bfde412
Fallout of std::str stabilization
2014-12-21 23:31:42 -08:00
bors
c141f223d4
auto merge of #19953 : sanxiyn/rust/privacy-span, r=alexcrichton
...
Fix #19062 .
2014-12-21 13:22:48 +00:00
Jared Roesch
e0cac488ac
Add parser support for generalized where clauses
...
Implement support in the parser for generalized where clauses,
as well as the conversion of ast::WherePredicates to
ty::Predicate in `collect.rs`.
2014-12-20 02:48:17 -08:00
Eduard Burtescu
a74a050c44
rustc: middle: move some types from resolve to privacy.
2014-12-20 07:28:47 +02:00
Eduard Burtescu
d9504d4a47
rustc: middle: move Export and ExportMap from resolve to def.
2014-12-20 07:28:46 +02:00
Eduard Burtescu
fb1d6f24fc
middle: resolve: fix inconsistencies around ExportMap and remove the 2 suffix.
2014-12-20 07:11:03 +02:00
Seo Sanghyeon
3e0cdb6339
Correct span in privacy error
2014-12-17 23:23:20 +09:00
Niko Matsakis
22f777ba2e
Parse unsafe impl
but don't do anything particularly interesting with the results.
2014-12-14 11:11:55 -05:00
Niko Matsakis
5686a91914
Parse unsafe trait
but do not do anything with it beyond parsing and integrating into rustdoc etc.
2014-12-14 11:11:55 -05:00
Nick Cameron
ce4318ad86
Reviewer comments
2014-12-12 19:29:17 +13:00
Nick Cameron
397dda8aa0
Add support for equality constraints on associated types
2014-12-12 19:11:59 +13:00
Niko Matsakis
7c44561ad6
Move various data structures out of typeck and into ty.
2014-12-04 10:04:26 -05:00
jfager
232ffa039d
Replace some verbose match statements with their if let
equivalent.
...
No semantic changes, no enabling `if let` where it wasn't already enabled.
2014-11-29 16:41:21 -05:00
Niko Matsakis
c4a3be6bd1
Rote changes due to the fact that ast paths no longer carry this extraneous bounds.
2014-11-26 11:42:06 -05:00
Adolfo Ochagavía
35316972ff
Remove type parameters from ExprField and ExprTupField
2014-11-23 12:17:43 +01:00
Eduard Burtescu
9f7aa7fa76
rustc: middle: remove obsolete ty::get.
2014-11-19 06:24:35 +02:00
Eduard Burtescu
5bc98954d5
rustc: fix fallout of adding the 'tcx
lifetime to Ty
.
2014-11-19 06:24:34 +02:00
Eduard Burtescu
9706d8f602
rustc: middle: rename ty::t
to Ty
and use it unqualified everywhere.
2014-11-19 06:24:34 +02:00
Steven Fackler
3dcd215740
Switch to purely namespaced enums
...
This breaks code that referred to variant names in the same namespace as
their enum. Reexport the variants in the old location or alter code to
refer to the new locations:
```
pub enum Foo {
A,
B
}
fn main() {
let a = A;
}
```
=>
```
pub use self::Foo::{A, B};
pub enum Foo {
A,
B
}
fn main() {
let a = A;
}
```
or
```
pub enum Foo {
A,
B
}
fn main() {
let a = Foo::A;
}
```
[breaking-change]
2014-11-17 07:35:51 -08:00
bors
edfb83c9e2
auto merge of #18914 : Gankro/rust/cloned, r=aturon
...
Part of #18424 . r? @aturon
[breaking-change]
2014-11-17 09:26:57 +00:00
Alexis Beingessner
dfb7a811ae
fallout from deprecating find_copy and get_copy
2014-11-16 10:40:25 -05:00
Steven Fackler
579c65da1b
Un-feature gate struct variants
...
Struct variant field visibility is now inherited. Remove `pub` keywords
from declarations.
Closes #18641
[breaking-change]
2014-11-15 18:15:27 -08:00
bors
221115ceee
auto merge of #18792 : sfackler/rust/struct-variants, r=alexcrichton
...
We need a snapshot before the parser can be adjusted.
2014-11-10 11:06:54 +00:00
Steven Fackler
00741a2c27
First stage of struct variant field visibility changes
...
We need a snapshot before the parser can be adjusted.
2014-11-09 00:30:04 -08:00
Niko Matsakis
244231720d
Update parser with for
syntax
2014-11-07 15:51:30 -05:00
Alex Crichton
76d2abe0e7
rollup merge of #18630 : nikomatsakis/purge-the-bars
2014-11-06 13:31:18 -08:00
Alexis Beingessner
eec145be3f
Fallout from collection conventions
2014-11-06 12:26:08 -05:00
Niko Matsakis
221edbae38
Support parenthesized paths Foo(A,B) -> C
that expand to Foo<(A,B),C>
. These paths also bind anonymous regions (or will, once HRTB is fully working).
...
Fixes #18423 .
2014-11-06 06:48:23 -05:00
Niko Matsakis
319d778ed3
Restructure AST so that the associated type definition carries
...
bounds like any other "type parameter".
2014-11-03 17:41:00 -05:00
Jakub Bukaj
4380e96c04
Overhaul typechecking of patterns
...
Instead of checking patterns in a top-down fashion with a known
expected type on entry, this changes makes typeck establish
appropriate constraints between a pattern and the expression
it destructures, and lets inference compute the final types
or produce good error messages if it's impossible.
2014-10-24 19:43:47 +02:00