Steve Klabnik
c411897e38
Rollup merge of #31762 - tshepang:in-which-case, r=steveklabnik
...
doc: there is no case that is shown, so something was likely missing …
…from the change
2016-04-06 12:12:07 -07:00
Tobias Bucher
3e9b859af2
Add Copy
to the traits that are automatically implemented for tuples
2016-04-06 20:10:33 +02:00
Niko Matsakis
22b4bb051a
rebase over the hir rename
2016-04-06 14:04:50 -04:00
Amanieu d'Antras
4d71712a4e
Fix LLVM assert when handling bad intrinsic monomorphizations
2016-04-06 18:49:10 +01:00
Niko Matsakis
ec47b59c24
remove svh module
2016-04-06 13:38:18 -04:00
Niko Matsakis
4914b5fc6d
patch name in incremental's Cargo.toml
2016-04-06 12:43:17 -04:00
Niko Matsakis
f2051212c2
remove use of rbml and just use opaque encoder
2016-04-06 12:42:47 -04:00
Niko Matsakis
e9ec282df8
Fix another call to bug into the macro
2016-04-06 12:42:47 -04:00
Niko Matsakis
82f4361155
FIXME for lockfile
2016-04-06 12:42:47 -04:00
Niko Matsakis
50a40e1c37
add FIXME #32753 markers: SVH vs ICH
2016-04-06 12:42:47 -04:00
Niko Matsakis
a2e0cbc6fc
rebase: get bug!
macro
2016-04-06 12:42:47 -04:00
Niko Matsakis
098571797c
Address nits.
2016-04-06 12:42:47 -04:00
Niko Matsakis
a5236e9da0
add some comments
2016-04-06 12:42:46 -04:00
Niko Matsakis
068142a2e6
add incremental test runner and some tests
2016-04-06 12:42:46 -04:00
Niko Matsakis
3fb40c1d95
add code to persist graph and for unit-testing
2016-04-06 12:42:46 -04:00
Niko Matsakis
d8263c4758
add function to retrace a DefPath to a DefId
...
used after loading state from previous compilation
2016-04-06 12:42:46 -04:00
Niko Matsakis
a9b6205aff
break dep-graph into modules, parameterize DepNode
...
it is useful later to customize how change the type we use for reference
items away from DefId
2016-04-06 12:42:46 -04:00
Niko Matsakis
b1e68b9e2d
make an incremental crate
...
for now, this houses `svh` and the code to check `assert_dep_graph` is
sane
2016-04-06 12:42:02 -04:00
Niko Matsakis
fe47ca0d0b
restructure rustc options relating to incr. comp.
...
You can now pass `-Z incremental=dir` as well as saying `-Z
query-dep-graph` if you want to enable queries for some other
purpose. Accessor functions take the place of computed boolean flags.
2016-04-06 12:35:15 -04:00
bors
943ec3bdfc
Auto merge of #32767 - Manishearth:breakingbatch, r=eddyb
...
Batch up all plugin breaking changes
https://github.com/rust-lang/rust/pull/32688 already landed so we should get this into the same nightly.
cc https://github.com/rust-lang/rust/issues/31645
2016-04-06 05:04:15 -07:00
Manish Goregaokar
552af51ffb
Rollup merge of #32570 - eddyb:tis-but-a-front, r=nikomatsakis
...
r? @nikomatsakis
Conflicts:
src/librustc_save_analysis/lib.rs
src/libsyntax/ast_util.rs
2016-04-06 17:31:16 +05:30
Manish Goregaokar
af7b00b68f
Rollup merge of #32682 - petrochenkov:field3, r=Manishearth
...
The AST part of https://github.com/rust-lang/rust/pull/31937
Unlike HIR, AST still uses `Option` for field names because parser can't know field indexes reliably due to constructions like
```
struct S(#[cfg(false)] u8, u8); // The index of the second field changes from 1 during parsing to 0 after expansion.
```
and I wouldn't like to put the burden of renaming fields on expansion passes and syntax extensions.
plugin-[breaking-change] cc https://github.com/rust-lang/rust/issues/31645
r? @Manishearth
2016-04-06 17:15:31 +05:30
Eduard Burtescu
e8a8dfb056
rustc: retire hir::map's paths.
2016-04-06 13:51:55 +03:00
Guillaume Gomez
669edfaef4
Update to last rustdoc version
2016-04-06 12:40:23 +02:00
Ulrik Sverdrup
a6c27be0b1
slice: Use doc(hidden) on private traits
...
This should avoid the trait impls showing up in rustdoc.
2016-04-06 12:19:19 +02:00
Niko Matsakis
b27b3e1278
change constant patterns to have a warning cycle
...
This was the original intention :(
2016-04-06 05:37:08 -04:00
Vadim Petrochenkov
8fe4290f1c
Move span into StructField
2016-04-06 11:19:10 +03:00
Vadim Petrochenkov
7f3744f07f
Get rid of ast::StructFieldKind
2016-04-06 10:33:15 +03:00
Eduard Burtescu
20f0f3c1f1
rustc: move some maps from ty to hir.
2016-04-06 09:14:21 +03:00
Eduard Burtescu
ffca6c3e15
rustc: move middle::{def,def_id,pat_util} to hir.
2016-04-06 09:14:21 +03:00
Eduard Burtescu
7bebe80bc2
syntax: dismantle ast_util.
2016-04-06 09:04:15 +03:00
Eduard Burtescu
ef4c7241f8
rustc: dismantle hir::util, mostly moving functions to methods.
2016-04-06 09:01:55 +03:00
Eduard Burtescu
8b0937293b
rustc: move rustc_front to rustc::hir.
2016-04-06 09:01:55 +03:00
James Miller
73790f02e3
Move ReturnDest creation into a method
...
It's quite a large amount of code, and moving it into a method allowed
for some refactoring to make the logic a little easier to understand
2016-04-06 17:57:42 +12:00
Tshepang Lekhonkhobe
922e666820
avoid "==" in assert! when one of the values is a bool
2016-04-06 06:24:19 +02:00
bors
772c600d4d
Auto merge of #32688 - jseyfried:ast_groundwork_for_1422, r=pnkfelix
...
[breaking-batch] Add support for `pub(restricted)` syntax in the AST
This PR allows the AST to represent the `pub(restricted)` syntax from RFC 1422 (cc #32409 ).
More specifically, it makes `ast::Visibility` non-`Copy` and adds two new variants, `Visibility::Crate` for `pub(crate)` and `Visitibility::Restricted { path: P<Path>, id: NodeId }` for `pub(path)`.
plugin-[breaking-change] cc #31645
r? @pnkfelix
2016-04-05 18:58:24 -07:00
JP Sugarbroad
4883824dc5
Fix typos in atomic compare_exchange.
2016-04-05 17:08:23 -07:00
bors
241a9d0ddf
Auto merge of #32415 - alexcrichton:android-signal, r=alexcrichton
...
std: Fix linking against `signal` on Android
Currently the minimum supported Android version of the standard library is
API level 18 (android-18). Back in those days [1] the `signal` function was
just an inline wrapper around `bsd_signal`, but starting in API level
android-20 the `signal` symbols was introduced [2]. Finally, in android-21
the API `bsd_signal` was removed [3].
Basically this means that if we want to be binary compatible with multiple
Android releases (oldest being 18 and newest being 21) then we need to check
for both symbols and not actually link against either.
This was first discovered in rust-lang/libc#236 with a fix proposed in
rust-lang/libc#237 . I suspect that we'll want to accept rust-lang/libc#237 so
Rust crates at large continue to be compatible with newer releases of Android
and crates, like the standard library, that want to opt into older support can
continue to do so via similar means.
Closes rust-lang/libc#236
[1]: https://chromium.googlesource.com/android_tools/+/20ee6d20/ndk/platforms/android-18/arch-arm/usr/include/signal.h
[2]: https://chromium.googlesource.com/android_tools/+/fbd420/ndk_experimental/platforms/android-20/arch-arm/usr/include/signal.h
[3]: https://chromium.googlesource.com/android_tools/+/20ee6d/ndk/platforms/android-21/arch-arm/usr/include/signal.h
2016-04-05 14:19:28 -07:00
Ariel Ben-Yehuda
832b7075b6
clean the note-reporting code in report_selection_error
2016-04-05 23:25:09 +03:00
Ariel Ben-Yehuda
b23648fe4a
improve the printing of substs and trait-refs
2016-04-05 22:56:23 +03:00
Ariel Ben-Yehuda
31247e5a0b
remove obsolete tests
...
the meaning of these tests had changed completely over the years and now they
are only a maintenance burden.
2016-04-05 20:58:58 +03:00
Ariel Ben-Yehuda
728d20f7cc
improve error message
2016-04-05 20:58:58 +03:00
Ariel Ben-Yehuda
8a461d940c
suggest adding a where-clause when that can help
...
suggest adding a where-clause when there is an unmet trait-bound that
can be satisfied if some type can implement it.
2016-04-05 20:58:58 +03:00
Ariel Ben-Yehuda
513d9f208c
remove workaround that prints error messages with TyErr
...
now that normalize_to_error no longer creates these, it is unnecessary.
2016-04-05 20:58:58 +03:00
bors
57e5d43c77
Auto merge of #32743 - Manishearth:rollup, r=Manishearth
...
Rollup of 11 pull requests
- Successful merges: #32403 , #32596 , #32675 , #32678 , #32685 , #32686 , #32692 , #32710 , #32712 , #32714 , #32715
- Failed merges: #32488
2016-04-05 10:55:38 -07:00
Varun Vats
a7d15ce6a6
Doc fix: list all module files Rust looks for.
...
1. In the English/Japanese phrases example in the "Multiple File
Crates" section of the "Crates and Modules" chapter, there are a total
of 8 module files that Rust looks for, while only four were
listed. This commit lists all 8 explicitly.
2. Title case fix.
2016-04-05 12:09:55 -05:00
Varun Vats
d841c15704
Doc fix: function takes argument by reference.
2016-04-05 12:09:55 -05:00
Aaron Turon
9ba3d5e921
Reinstate fast_reject for overlap checking
...
The initial implementation of specialization did not use the
`fast_reject` mechanism when checking for overlap, which caused a
serious performance regression in some cases.
This commit modifies the specialization graph to use simplified types
for fast rejection when possible, and along the way refactors the logic
for building the specialization graph.
Closes #32499
2016-04-05 09:07:14 -07:00
Tshepang Lekhonkhobe
8f463ea98e
doc: make env::consts summaries less confusing
2016-04-05 17:55:14 +02:00
Amanieu d'Antras
af047d9c10
Fix infinite loop in Arc::downgrade
2016-04-05 14:00:17 +01:00