Commit Graph

44180 Commits

Author SHA1 Message Date
Steve Klabnik
4b19be3631 Not literally all of concurrency is a library
Fixes #26344
2015-07-07 09:29:04 -04:00
bors
26f0cd5de7 Auto merge of #26844 - steveklabnik:rollup, r=steveklabnik
- Successful merges: #26599, #26761, #26807, #26809, #26825, #26827, #26828, #26832, #26834, #26835
- Failed merges: #26796
2015-07-07 02:26:31 +00:00
bors
6d71ce5364 Auto merge of #26599 - richo:richo-stage-info, r=brson
This will add information about the stage that a rustc was built with to the verbose version info

I have symlinks into $(HOST)/stage{0,1,2} into the rust version switcher thing I use, and occasionally need to know which stage a given rustc is.
2015-07-06 22:55:07 +00:00
Steve Klabnik
04a85c538a Rollup merge of #26835 - tshepang:copy-or-not, r=steveklabnik 2015-07-06 18:06:31 -04:00
Steve Klabnik
c4ee2e5c01 Rollup merge of #26834 - tshepang:space, r=brson 2015-07-06 18:06:31 -04:00
Steve Klabnik
8d94bbf106 Rollup merge of #26832 - steveklabnik:doc_rustc_cycle_time, r=huonw 2015-07-06 18:06:30 -04:00
Steve Klabnik
3e62e20b61 Rollup merge of #26828 - steveklabnik:gh25765, r=bluss
Each formatting trait now has an example of implementation, as well as a
fuller description of what it's supposed to output.

It also contains a link to the module-level documentation which

Fixes #25765
2015-07-06 18:06:30 -04:00
Steve Klabnik
015441bd5d Rollup merge of #26827 - steveklabnik:gh25786, r=alexcrichton
Fixes #25786
2015-07-06 18:06:30 -04:00
Steve Klabnik
29aabcc7c4 Rollup merge of #26825 - steveklabnik:gh24802, r=alexcrichton
Fixes #24802
2015-07-06 18:06:30 -04:00
Steve Klabnik
58d0f28057 Rollup merge of #26809 - cmr:libc-ioctl, r=alexcrichton
None
2015-07-06 18:06:29 -04:00
Steve Klabnik
539cc55018 Rollup merge of #26807 - eddyb:trans-normalize, r=cmr
Fixes #26805. f? @jroesch.
2015-07-06 18:06:29 -04:00
Steve Klabnik
aef38ef819 Rollup merge of #26761 - steveklabnik:actually_ub, r=alexcrichton
I incorrectly stated that it's an abort.

r? @Gankro
2015-07-06 18:06:29 -04:00
Steve Klabnik
b959f256bf Rollup merge of #26599 - richo:richo-stage-info, r=brson
This will add information about the stage that a rustc was built with to the verbose version info

I have symlinks into $(HOST)/stage{0,1,2} into the rust version switcher thing I use, and occasionally need to know which stage a given rustc is.
2015-07-06 18:06:29 -04:00
Steve Klabnik
3a6cd649b4 Significantly improve formatter trait docs
Each formatting trait now has an example of implementation, as well as a
fuller description of what it's supposed to output.

It also contains a link to the module-level documentation which

Fixes #25765
2015-07-06 17:26:59 -04:00
bors
9d9e2678f5 Auto merge of #26757 - oli-obk:style_fixes, r=brson
the indentation has always been a thorn in my eye.

If it's preferred I'll leave the `unsafe` where it was and change it to

```rust
unsafe { match e.node {
    ...
} } // unsafe { match e.node {
```

so there's no unnecessary indent
2015-07-06 21:22:20 +00:00
Steve Klabnik
720da310a9 Add note about special make targets 2015-07-06 17:01:04 -04:00
Richo Healey
e66ac43ea4 rustc_driver: Omit stage info for stage2+ 2015-07-06 13:42:10 -07:00
Tshepang Lekhonkhobe
dd78ffe828 reference: make 'Move and copied types' section more simple 2015-07-06 22:10:35 +02:00
Tshepang Lekhonkhobe
c2f4f11443 reference: do not display the extra space 2015-07-06 22:01:20 +02:00
Steve Klabnik
ee43c5e2f0 FFI panic is UB
I incorrectly stated that it's an abort.
2015-07-06 16:00:31 -04:00
bors
2ceaa77ae2 Auto merge of #26741 - alexcrichton:noinline-destructors, r=brson
This PR was originally going to be a "let's start running tests on MSVC" PR, but it didn't quite get to that point. It instead gets us ~80% of the way there! The steps taken in this PR are:

* Landing pads are turned on by default for 64-bit MSVC. The LLVM support is "good enough" with the caveat the destructor glue is now marked noinline. This was recommended [on the associated bug](https://llvm.org/bugs/show_bug.cgi?id=23884) as a stopgap until LLVM has a better representation for exception handling in MSVC. The consequence of this is that MSVC will have a bit of a perf hit, but there are possible routes we can take if this workaround sticks around for too long.
* The linker (`link.exe`) is now looked up in the Windows Registry if it's not otherwise available in the environment. This improves using the compiler outside of a VS shell (e.g. in a MSYS shell or in a vanilla cmd.exe shell). This also makes cross compiles via Cargo "just work" when crossing between 32 and 64 bit!
* TLS destructors were fixed to start running on MSVC (they previously weren't running at all)
* A few assorted `run-pass` tests were fixed.
* The dependency on the `rust_builtin` library was removed entirely for MSVC to try to prevent any `cl.exe` compiled objects get into the standard library. This should help us later remove any dependence on the CRT by the standard library.
* I re-added `rust_try_msvc_32.ll` for 32-bit MSVC and ensured that landing pads were turned off by default there as well.

Despite landing pads being enabled, there are still *many* failing tests on MSVC. The two major classes I've identified so far are:

* Spurious aborts. It appears that when optimizations are enabled that landing pads aren't always lined up properly, and sometimes an exception being thrown can't find the catch block down the stack, causing the program to abort. I've been working to reduce this test case but haven't been met with great success just yet.
* Parallel codegen does not work on MSVC. Our current strategy is to take the N object files emitted by the N codegen threads and use `ld -r` to assemble them into *one* object file. The MSVC linker, however, does not have this ability, and this will need to be rearchitected to work on MSVC.

I will fix parallel codegen in a future PR, and I'll also be watching LLVM closely to see if the aborts... disappear!
2015-07-06 19:49:16 +00:00
Richo Healey
555b021c6e rustc_driver: Print stage info in --version --verbose 2015-07-06 12:41:30 -07:00
bors
943b014609 Auto merge of #26824 - arielb1:fix-26812, r=eddyb
Fixes #26812.

r? @eddyb
2015-07-06 18:15:46 +00:00
Steve Klabnik
fb6eeb6ce8 Document _ in bindings
Fixes #25786
2015-07-06 12:27:32 -04:00
bors
20f421cd52 Auto merge of #26822 - tamird:llvm-config, r=alexcrichton
Minor stuff.
2015-07-06 16:22:47 +00:00
Steve Klabnik
8cb1faaa90 Link to test suite information from CONTRIBUTING.md
Fixes #24802
2015-07-06 12:14:49 -04:00
Ariel Ben-Yehuda
78761d64a9 don't use type_parameter_def during astconv
astconv is called when converting the type-parameter, which leads to
a crash.

Fixes #26812.
2015-07-06 18:58:54 +03:00
bors
7b7853897b Auto merge of #26820 - liigo:patch-2, r=steveklabnik
Closes #26801
2015-07-06 14:49:52 +00:00
Tamir Duberstein
1491a8fa01 Remove unused variable 2015-07-06 08:40:40 -04:00
Tamir Duberstein
158fcbbdd6 llconfig is llvm-config 2015-07-06 08:40:40 -04:00
Tamir Duberstein
155c8f9fa8 Simplify 2015-07-06 08:40:40 -04:00
bors
9748574271 Auto merge of #26821 - oli-obk:patch-1, r=sanxiyn 2015-07-06 12:20:23 +00:00
Oliver Schneider
144e44923f typo "struct has is 0-sized" 2015-07-06 13:58:37 +02:00
Oliver Schneider
106f3826e9 lower blanket unsafe block to actual cases of unsafe and adjust indents 2015-07-06 10:08:27 +02:00
Liigo Zhuang
03afbf93ed book: introduce //! doc comment in comments section
Closes #26801
2015-07-06 14:55:06 +08:00
bors
a2b927c5a4 Auto merge of #26817 - cmr:vecdeque-docs, r=Gankro
None
2015-07-06 05:01:21 +00:00
bors
d0fdfbfb0d Auto merge of #26811 - steveklabnik:rollup, r=steveklabnik
- Successful merges: #26464, #26789, #26800, #26806, #26808
- Failed merges: #26796
2015-07-05 23:42:50 +00:00
bors
7809e76eb6 Auto merge of #26464 - Gankro:send, r=alexcrichton
Vec contains `Unique<T>` and some usizes, this is already derived.
2015-07-05 22:10:21 +00:00
bors
5d3b0f1f6b Auto merge of #26473 - Eljay:missing_docs, r=alexcrichton
Fixes #24249

I've tagged all items that were missing docs to allow them to compile for now, the ones in core/num should probably be documented at least.

This is also a breaking change for any crates using `#[deny(missing_docs)]` that have undocumented constants, not sure there is any way to avoid this without making it a separate lint?
2015-07-05 20:37:26 +00:00
Eduard Burtescu
0e714c1983 rustc_trans: always use normalizing_infer_ctxt. 2015-07-05 22:41:23 +03:00
Corey Richardson
f2fc9209d0 liblibc: correct Linux ioctl request type 2015-07-05 15:25:55 -04:00
Steve Klabnik
d1fcb2f502 Rollup merge of #26808 - tshepang:closures, r=steveklabnik 2015-07-05 15:12:21 -04:00
Tshepang Lekhonkhobe
10e762eaad reference: 'inherits' is more clear than 'implies' 2015-07-06 01:01:37 +02:00
Steve Klabnik
8c7fd357e0 Rollup merge of #26806 - cmr:stabilize-drain, r=Gankro
None
2015-07-05 15:12:20 -04:00
Steve Klabnik
4c7c7b7477 Rollup merge of #26800 - tshepang:comma, r=Gankro 2015-07-05 15:12:20 -04:00
Steve Klabnik
8b51b8f181 Rollup merge of #26789 - tshepang:improve-array-examples, r=alexcrichton 2015-07-05 15:12:20 -04:00
Steve Klabnik
2e78d3705f Rollup merge of #26464 - Gankro:send, r=alexcrichton
Vec contains `Unique<T>` and some usizes, this is already derived.
2015-07-05 15:12:19 -04:00
bors
7c1e339f10 Auto merge of #25754 - geofft:remove-compiletest-jit, r=alexcrichton
jit support was removed from rustc in 6b34ba242d
(December 2013), so passing `--jit` wouldn't even work.
2015-07-05 19:05:14 +00:00
bors
281cfb93ab Auto merge of #26798 - steveklabnik:rollup, r=steveklabnik
- Successful merges: #26785, #26787, #26788, #26791, #26792, #26795
- Failed merges: #26796
2015-07-05 17:31:11 +00:00
Corey Richardson
f5ea6208e0 collections: vec_deque: add some notes on how to use VecDeque as a queue effectively 2015-07-05 12:18:57 -04:00