Eduard Burtescu
da47c2e2ac
rustc_typeck: save the type cache for rustdoc and save-analysis.
2016-11-28 04:18:10 +02:00
Eduard-Mihai Burtescu
962633cdbb
rustc: embed path resolutions into the HIR instead of keeping DefMap.
2016-11-28 04:18:10 +02:00
Eduard-Mihai Burtescu
bc096549e8
rustc: desugar use a::{b,c};
into use a::b; use a::c;
in HIR.
2016-11-28 04:18:10 +02:00
Eduard Burtescu
6ebc6d8154
rustc: track hir::{TraitRef, Visibility} in the HIR map.
2016-11-28 04:18:10 +02:00
Eduard Burtescu
16b5c2cfef
rustc: desugar UFCS as much as possible during HIR lowering.
2016-11-28 04:18:10 +02:00
Eduard Burtescu
34d1352f0e
rustc: encode the optionality of type parameters in HIR paths.
2016-11-28 04:18:10 +02:00
bors
03bdaade2a
Auto merge of #38022 - arthurprs:micro-opt-hm, r=bluss
...
Use displacement instead of initial bucket in HashMap code
Use displacement instead of initial bucket in HashMap code. It makes the code a bit cleaner and also saves a few instructions (handy since it'll be using some to do some sort of adaptive behavior soon).
2016-11-27 17:06:58 -06:00
arthurprs
178e29df7d
Use displacement instead of initial bucket in HashMap code
2016-11-27 21:38:46 +01:00
bors
9ca50bd4d5
Auto merge of #38027 - rkruppe:llvm-printpasses-fwdcompat, r=alexcrichton
...
[LLVM 4.0] LLVMRustPrintPasses
Adapt `LLVMRustPrintPasses` to LLVM 4.0 preferring `StringRef` over `char *`
cc #37609
2016-11-27 13:51:40 -06:00
Stefan Schindler
28b64dc1b9
Use keywords::Invalid
2016-11-27 17:59:36 +01:00
bors
2008732975
Auto merge of #37983 - GuillaumeGomez:tcp_listener_doc, r=frewsxcv
...
Add examples for TcpListener struct
r? @frewsxcv
2016-11-27 10:39:41 -06:00
Stefan Schindler
2dc3fdf2bd
Resolve visibility issues
...
use syntax::ast::Name; is a reexport of syntax::symbol::Symbol(u32);
2016-11-27 16:45:09 +01:00
Stefan Schindler
0bcb05cf50
Finishing d2f8fb0a0a
from @jseyfried
2016-11-27 15:34:32 +01:00
Robin Kruppe
cb0e24eafa
Adapt LLVMRustPrintPasses to LLVM 4.0 preferring StringRef
over char *
2016-11-27 14:48:47 +01:00
bors
0e17ba5ffc
Auto merge of #38007 - alygin:err-expl-fix, r=eddyb
...
Fix error explanation formatting
Errors E0101, E0458, E0535 and E0537 have incorrectly formatted bulleted lists in their explanations. As the result, they are not rendered as lists in the documentation.
The fix applies the correct formatting to those lists.
2016-11-27 06:04:18 -06:00
Guillaume Gomez
f216f1fc53
Add examples for TcpListener struct
2016-11-27 13:00:31 +01:00
bors
f3930aab46
Auto merge of #38023 - arielb1:constant-evil-x2, r=eddyb
...
don't double-apply variant padding to const enums
`build_const_struct` already returns the struct with padding - don't double-apply it in the `General` case.
This should hopefully be the last time we have this sort of bug.
Fixes #38002 .
Beta-nominating because regression.
r? @eddyb
2016-11-26 21:49:41 -06:00
Ariel Ben-Yehuda
fcebf3beab
don't double-apply variant padding to const enums
...
Fixes #38002 .
2016-11-27 02:57:55 +02:00
bors
f8614c3973
Auto merge of #36340 - sfackler:slice-get-slice, r=alexcrichton
...
Implement RFC 1679
cc #35729
r? @alexcrichton
2016-11-26 18:47:06 -06:00
bors
9a8657925b
Auto merge of #38004 - GuillaumeGomez:tcp_stream_doc, r=frewsxcv
...
Add missing urls and examples to TcpStream
r? @frewsxcv
2016-11-26 15:37:34 -06:00
Guillaume Gomez
ebcc6d2571
Add part of missing UdpSocket's urls and examples
2016-11-26 21:35:41 +01:00
bors
9003e1ab6a
Auto merge of #38008 - bluss:rustbuild-benches, r=alexcrichton
...
Add rustbuild command `bench`
Add command bench to rustbuild, so that `./x.py bench <path>` can compile and run benchmarks.
`./x.py bench --stage 1 src/libcollections` and `./x.py bench --stage 1 src/libstd` should both compile well. Just `./x.py bench` runs all benchmarks for the libstd crates.
Fixes #37897
2016-11-26 12:32:19 -06:00
Andrew Lygin
984c039e4e
Fix error explanation formatting
2016-11-26 21:20:20 +03:00
Andrew Lygin
9fb81b92f9
Fix error explanation formatting
2016-11-26 21:20:20 +03:00
Steven Fackler
5377b5e9c4
Overload get{,_mut}{,_unchecked}
2016-11-26 10:07:39 -08:00
Martin Pool
591c134456
Clearer description of std::path::MAIN_SEPARATOR.
2016-11-26 09:24:48 -08:00
bors
7e39c0ede5
Auto merge of #38015 - sanxiyn:rollup, r=sanxiyn
...
Rollup of 7 pull requests
- Successful merges: #37962 , #37963 , #37967 , #37978 , #37985 , #38001 , #38010
- Failed merges:
2016-11-26 07:40:43 -06:00
Seo Sanghyeon
44b926a6bb
Rollup merge of #38010 - frewsxcv:lock-creations, r=GuillaumeGomez
...
Document how lock 'guard' structures are created.
2016-11-26 22:02:15 +09:00
Seo Sanghyeon
f9f92e12c7
Rollup merge of #38001 - vickenty:patch-1, r=steveklabnik
...
Follow our own recommendations in the examples
Remove exclamation marks from the the example error descriptions:
> The description [...] should not contain newlines or sentence-ending punctuation
2016-11-26 22:02:14 +09:00
Seo Sanghyeon
18f4006e09
Rollup merge of #37985 - frewsxcv:completed-fixme, r=petrochenkov
...
Remove completed FIXME.
https://github.com/rust-lang/rust/issues/30530
2016-11-26 22:02:14 +09:00
Seo Sanghyeon
eeac361f52
Rollup merge of #37978 - fkjogu:master, r=sfackler
...
Define `bound` argument in std::sync::mpsc::sync_channel in the documentation
The `bound` argument in `std::sync::mpsc::sync:channel(bound: usize)` was not defined in the documentation.
2016-11-26 22:02:14 +09:00
Seo Sanghyeon
6ffcdff06c
Rollup merge of #37967 - sfackler:enumset-issue, r=sfackler
...
Add a tracking issue for enum_set
I totally forgot this even existed!
2016-11-26 22:02:14 +09:00
Seo Sanghyeon
5aceedf4d8
Rollup merge of #37963 - bluss:iterator-docs, r=alexcrichton
...
Fix two small issues in iterator docs
- `collect()` is a regular method, not an adaptor (does not return an Iterator). I just randomly picked `filter` as a third common adaptor to mention instead.
- Fix example in `Map`'s docs so that it uses the DoubleEndedIterator implementation
2016-11-26 22:02:14 +09:00
Seo Sanghyeon
a809749fdf
Rollup merge of #37962 - GuillaumeGomez:socket-v6, r=frewsxcv
...
Add missing examples to SocketAddrV6
r? @steveklabnik
cc @frewsxcv
2016-11-26 22:02:13 +09:00
bors
73e98a0210
Auto merge of #37961 - samestep:radices, r=frewsxcv
...
Use "radices" instead of "radicum"
The correct plural of "radix" is "radices" or "radixes", not "radicum".
2016-11-25 23:31:42 -06:00
bors
d64b703065
Auto merge of #37960 - samestep:five, r=frewsxcv
...
Use literal 5 instead of five in book section 4.1
The other two code snippets in this sentence are valid code, so it makes more sense to use the literal `5` rather than the invalid symbol `five`.
2016-11-25 20:19:47 -06:00
Corey Farwell
6075af4ac0
Document how the MutexGuard
structure is created.
...
Also, end sentence with a period.
2016-11-25 19:08:26 -05:00
Corey Farwell
6b4de8bf91
Document how the RwLockWriteGuard
structure is created.
2016-11-25 18:57:11 -05:00
Corey Farwell
276d91d8cb
Document how the RwLockReadGuard
structure is created.
2016-11-25 18:57:09 -05:00
Ulrik Sverdrup
17cb7bdd83
rustbuild: Add bench = false to std shim crates
2016-11-26 00:26:44 +01:00
bors
2217bd771c
Auto merge of #38000 - rkruppe:llvm-dinamespace-fwdcompat, r=alexcrichton
...
[LLVM 4.0] Pass new argument ExportSymbol to DIBuilder::createNameSpace
cc #37609
2016-11-25 16:57:37 -06:00
Guillaume Gomez
56529cd286
Add missing urls and examples to TcpStream
2016-11-25 23:45:43 +01:00
Ulrik Sverdrup
42e66344b5
rustbuild: Point to core and collections's external benchmarks.
2016-11-25 23:10:43 +01:00
Ulrik Sverdrup
b1566baa0b
rustbuild: Add bench subcommand
...
Add command `./x.py bench`; use `./x.py bench --help -v` to list all
available benchmark targets.
2016-11-25 22:15:52 +01:00
bors
dad5cdea2a
Auto merge of #37987 - plietar:cross-proc-macro, r=jseyfried
...
Delay error reporting of filename mismatch.
When cross compiling with procedural macros, the crate loader starts by
looking for a target crate, before trying with a host crate.
Rather than emitting an error immediately if the host and target
extension differ, the compiler should delay it until both attempts have
failed.
Fixes #37899
2016-11-25 13:48:08 -06:00
Vickenty Fesunov
a3ce39898c
Follow our own recommendations in the examples
...
Remove exclamation marks from the the example error descriptions:
> The description [...] should not contain newlines or sentence-ending punctuation
2016-11-25 17:59:04 +01:00
Robin Kruppe
2e6d49de07
Pass new argument ExportSymbol to DIBuilder::createNameSpace
2016-11-25 17:23:25 +01:00
bors
ebc0373909
Auto merge of #37982 - rkruppe:llvm-diagnostic-fwdcompat, r=alexcrichton
...
[LLVM 4.0] OptimizationDiagnostic FFI forward compatibility
- getMsg() changed to return std::string by-value. Fix: copy the data to a rust String during unpacking.
- getPassName() changed to return StringRef
cc #37609
2016-11-25 09:01:33 -06:00
bors
c78cc52afd
Auto merge of #37979 - nnethercote:Ty-super_fold_with, r=eddyb
...
Avoid more unnecessary mk_ty calls in Ty::super_fold_with.
This speeds up several rustc-benchmarks by 1--5%.
This PR is the lovechild of #37108 and #37705 .
```
futures-rs-test 4.059s vs 4.011s --> 1.012x faster (variance: 1.016x, 1.026x)
helloworld 0.236s vs 0.239s --> 0.986x faster (variance: 1.051x, 1.014x)
html5ever-2016- 3.831s vs 3.824s --> 1.002x faster (variance: 1.020x, 1.019x)
hyper.0.5.0 4.928s vs 4.936s --> 0.998x faster (variance: 1.003x, 1.012x)
inflate-0.1.0 4.135s vs 4.104s --> 1.007x faster (variance: 1.026x, 1.028x)
issue-32062-equ 0.309s vs 0.303s --> 1.017x faster (variance: 1.019x, 1.084x)
issue-32278-big 1.818s vs 1.797s --> 1.011x faster (variance: 1.011x, 1.008x)
jld-day15-parse 1.304s vs 1.271s --> 1.026x faster (variance: 1.018x, 1.012x)
piston-image-0. 10.938s vs 10.921s --> 1.002x faster (variance: 1.025x, 1.016x)
reddit-stress 2.327s vs 2.208s --> 1.054x faster (variance: 1.016x, 1.006x)
regex-0.1.80 8.796s vs 8.727s --> 1.008x faster (variance: 1.012x, 1.019x)
regex.0.1.30 2.294s vs 2.249s --> 1.020x faster (variance: 1.013x, 1.026x)
rust-encoding-0 1.914s vs 1.886s --> 1.015x faster (variance: 1.027x, 1.026x)
```
2016-11-25 00:22:49 -06:00
Nick Cameron
5787643800
save-analysis: redirect a module decl to the start of the defining file
2016-11-25 16:50:47 +13:00