Commit Graph

52574 Commits

Author SHA1 Message Date
Eduard Burtescu
a563711b6a mir: print the scope and span for variables. 2016-04-11 20:49:07 +03:00
Seo Sanghyeon
2fd1f3e24a Do not encode name when encoding DefKey 2016-04-12 01:35:26 +09:00
Alex Crichton
42bcb4047d rustdoc: Fix testing no_run code blocks
This was a regression introduced by #31250 where the compiler deferred returning
the results of compilation a little too late (after the `Stop` check was looked
at). This commit alters the stop point to first try to return an erroneous
`result` and only if it was successful return the sentinel `Err(0)`.

Closes #31576
2016-04-11 09:26:59 -07:00
Alex Crichton
552eda70d3 std: Stabilize APIs for the 1.9 release
This commit applies all stabilizations, renamings, and deprecations that the
library team has decided on for the upcoming 1.9 release. All tracking issues
have gone through a cycle-long "final comment period" and the specific APIs
stabilized/deprecated are:

Stable

* `std::panic`
* `std::panic::catch_unwind` (renamed from `recover`)
* `std::panic::resume_unwind` (renamed from `propagate`)
* `std::panic::AssertUnwindSafe` (renamed from `AssertRecoverSafe`)
* `std::panic::UnwindSafe` (renamed from `RecoverSafe`)
* `str::is_char_boundary`
* `<*const T>::as_ref`
* `<*mut T>::as_ref`
* `<*mut T>::as_mut`
* `AsciiExt::make_ascii_uppercase`
* `AsciiExt::make_ascii_lowercase`
* `char::decode_utf16`
* `char::DecodeUtf16`
* `char::DecodeUtf16Error`
* `char::DecodeUtf16Error::unpaired_surrogate`
* `BTreeSet::take`
* `BTreeSet::replace`
* `BTreeSet::get`
* `HashSet::take`
* `HashSet::replace`
* `HashSet::get`
* `OsString::with_capacity`
* `OsString::clear`
* `OsString::capacity`
* `OsString::reserve`
* `OsString::reserve_exact`
* `OsStr::is_empty`
* `OsStr::len`
* `std::os::unix::thread`
* `RawPthread`
* `JoinHandleExt`
* `JoinHandleExt::as_pthread_t`
* `JoinHandleExt::into_pthread_t`
* `HashSet::hasher`
* `HashMap::hasher`
* `CommandExt::exec`
* `File::try_clone`
* `SocketAddr::set_ip`
* `SocketAddr::set_port`
* `SocketAddrV4::set_ip`
* `SocketAddrV4::set_port`
* `SocketAddrV6::set_ip`
* `SocketAddrV6::set_port`
* `SocketAddrV6::set_flowinfo`
* `SocketAddrV6::set_scope_id`
* `<[T]>::copy_from_slice`
* `ptr::read_volatile`
* `ptr::write_volatile`
* The `#[deprecated]` attribute
* `OpenOptions::create_new`

Deprecated

* `std::raw::Slice` - use raw parts of `slice` module instead
* `std::raw::Repr` - use raw parts of `slice` module instead
* `str::char_range_at` - use slicing plus `chars()` plus `len_utf8`
* `str::char_range_at_reverse` - use slicing plus `chars().rev()` plus `len_utf8`
* `str::char_at` - use slicing plus `chars()`
* `str::char_at_reverse` - use slicing plus `chars().rev()`
* `str::slice_shift_char` - use `chars()` plus `Chars::as_str`
* `CommandExt::session_leader` - use `before_exec` instead.

Closes #27719
cc #27751 (deprecating the `Slice` bits)
Closes #27754
Closes #27780
Closes #27809
Closes #27811
Closes #27830
Closes #28050
Closes #29453
Closes #29791
Closes #29935
Closes #30014
Closes #30752
Closes #31262
cc #31398 (still need to deal with `before_exec`)
Closes #31405
Closes #31572
Closes #31755
Closes #31756
2016-04-11 08:57:53 -07:00
Steve Klabnik
55e90bbd5e Rollup merge of #32873 - jethrogb:patch-2, r=steveklabnik
Match signed/unsigned integer type docs

* Copy documentation from signed implementation to unsigned implementation, where necessary.

A few functions had elaborate docs in the signed version but not in the unsigned version. This probably happenned because the signed version is at the top and the author didn't realize they had to update the documentation in both locations.

* Use signed integers in signed documentation, where possible.

r? @steveklabnik
2016-04-11 10:31:28 -04:00
Steve Klabnik
24c5c27702 Rollup merge of #32870 - jethrogb:patch-1, r=GuillaumeGomez
Fix Windows UNC paths in std::path docs
2016-04-11 10:31:28 -04:00
Steve Klabnik
c5842837b8 Rollup merge of #32862 - raphlinus:master, r=bluss
Bit-magic for faster is_char_boundary

The asm generated for b < 128 || b >= 192 is not ideal, as it computes
both sub-inequalities. This patch replaces it with bit magic.

Fixes #32471
2016-04-11 10:31:28 -04:00
Steve Klabnik
7ba7e02b5e Rollup merge of #32854 - GuillaumeGomez:result_doc, r=steveklabnik
Add some missing commas and missing titles/formatting

Fixes #29373.

r? @steveklabnik
2016-04-11 10:31:28 -04:00
Steve Klabnik
c9c850997e Rollup merge of #32849 - jseyfried:import_resolution_diagnostics, r=eddyb
resolve: import resolution diagnostics

This improves the diagnostics for failing import resolutions (fixes #32833).
r? @eddyb
2016-04-11 10:31:28 -04:00
Steve Klabnik
9989a95fd2 Rollup merge of #32823 - pravic:target-json, r=alexcrichton
Read "is-like-msvc" target option from JSON

This is in reference to #32818.
2016-04-11 10:31:27 -04:00
Steve Klabnik
b5fc27cc81 Rollup merge of #32815 - allonsy:master, r=GuillaumeGomez
Adds data race in docs

Thanks for all your hard work!
This is in reference to #32733
I know there has been a discussion about this on PR #32538 so you are welcome to keep the code as is or merge my documentation in.
Let me know what you think and/or if you want me to modify anything!
2016-04-11 10:31:27 -04:00
Steve Klabnik
47cc036948 Rollup merge of #32802 - nikomatsakis:issue-32505, r=eddyb
add regression test for #32505

Fixes #32505

r? @eddyb
2016-04-11 10:31:27 -04:00
Steve Klabnik
7eeb8c4eb8 Rollup merge of #32768 - GuillaumeGomez:slice_doc, r=steveklabnik
Add doc examples for Iter and IterMut

Fixes #29374.

r? @steveklabnik
2016-04-11 10:31:27 -04:00
bors
b622c3e085 Auto merge of #32850 - jseyfried:add_tests, r=alexcrichton
resolve: Add regression tests for fixed issues

This adds regression tests for fixed issues in resolve (closes #22146, closes #24883, closes #26930).
r? @eddyb
2016-04-11 06:11:31 -07:00
bors
87e2eb1443 Auto merge of #32880 - Manishearth:fix, r=GuillaumeGomez
Review fixes for #32878

This contains review fixes for the PR.
2016-04-11 03:09:41 -07:00
Manish Goregaokar
69095bb023 Tibet does not have a space program. Peru does. 2016-04-11 15:30:22 +05:30
Manish Goregaokar
4805e1291a Review fixes for #32878 (which was accidentally merged) 2016-04-11 15:23:35 +05:30
Guillaume Gomez
49be3dd380 Add E0520 error code explanation 2016-04-11 11:31:51 +02:00
Oliver Schneider
d38a58d46d don't report errors in constants at every use site 2016-04-11 10:41:48 +02:00
Dave Huseby
fb8a808ab7 i386-unknown-freebsd snap 235d774 2016-04-11 01:14:30 -07:00
jethrogb
ed218f62b7 Match signed/unsigned integer type docs
* Copy documentation from signed implementation to unsigned implementation, where necessary.
* Use signed integers in signed documentation, where possible.
2016-04-10 22:34:37 -07:00
bors
23a7d30fc2 Auto merge of #32806 - brson:fix-features, r=alexcrichton
Set the version number for stabilization of braced_empty_structs

and augmented_assignment to 1.8.0.

Per the comments, the numbers in this table reflect the "current
status".

cc @rust-lang/libs @rust-lang/lang

Discovered this while hunting for 1.8 features. I'm afraid there may be more of these that are incorrect and we may have created a mess.
2016-04-10 19:37:40 -07:00
bors
924da295c3 Auto merge of #32816 - eddyb:variadic-fn-item, r=Aatch
Blacklist fn item types from being used with variadic functions.

Fixes #32201 by adding fn types to the variadic blacklist which currently includes `bool`, `i8`, `u8`, `i16`, `u16` and `f32`.
2016-04-10 16:36:28 -07:00
jethrogb
0fa0a6b679 Fix Windows UNC paths in std::path docs 2016-04-10 14:51:23 -07:00
Ulrik Sverdrup
f0a1ea27cc Add test for is_char_boundary 2016-04-10 20:09:26 +02:00
Matt Kraai
43a0f4119b Remove an extra command from the usage message 2016-04-10 06:59:19 -07:00
Nick Platt
7dd0bebff4 Remove redundant assignment 2016-04-10 00:50:16 -04:00
Nick Platt
3632278c84 Add rustbuild option to use Ninja for LLVM build 2016-04-10 00:34:05 -04:00
Raph Levien
b2db97347b Bit-magic for faster is_char_boundary
The asm generated for b < 128 || b >= 192 is not ideal, as it computes
both sub-inequalities. This patch replaces it with bit magic.

Fixes #32471
2016-04-09 17:16:54 -07:00
Doug Goldstein
a4579c54b9 librustc_back: fix incorrect comment about RUST_TARGET_PATH
The path `/etc/rustc/` is not the default last entry in
RUST_TARGET_PATH. This was in RFC131 but was never implemented in rustc
so it was removed as part of #31117 and rust-lang/rfcs#1473.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2016-04-09 09:41:31 -05:00
Tobias Müller
a3329f5452 Don't read past limit for in BufRead instance of Take 2016-04-09 14:23:11 +02:00
bors
526f2bf5c5 Auto merge of #32786 - brson:cargotest, r=alexcrichton
Fix cargotest

Tested in dev.
2016-04-09 04:44:43 -07:00
bors
42ea682fc4 Auto merge of #32781 - michaelwoerister:dont-use-svh-in-debuginfo, r=alexcrichton
Use crate name/disambiguator instead of SVH for debuginfo typeid.
2016-04-09 00:31:49 -07:00
bors
c22302f53f Auto merge of #32773 - mitaa:rdoc-ttfn-json, r=alexcrichton
rustdoc: Remove the json-{input, output} format

(for reference #32698)

fixes #25108

r? @alexcrichton
2016-04-08 20:24:34 -07:00
Jeffrey Seyfried
6dd809e792 Add regression test for #26930 2016-04-09 02:38:50 +00:00
Jeffrey Seyfried
1707de2dca Add regression test for #24883 2016-04-09 02:35:38 +00:00
Jeffrey Seyfried
d1f28f62c7 Add regression test for #22146 2016-04-09 02:35:29 +00:00
Jeffrey Seyfried
44ddaa2cd5 Add regression test 2016-04-09 02:12:18 +00:00
Jeffrey Seyfried
178c396326 Update tests 2016-04-09 02:12:18 +00:00
Jeffrey Seyfried
2944fab398 Improve import resolution diagnostics 2016-04-09 02:12:15 +00:00
Vadim Chugunov
cc3b6f24b7 Added a test 2016-04-08 17:14:05 -07:00
Guillaume Gomez
ca966b68e6 Add some missing commas and missing titles/formatting 2016-04-09 02:00:12 +02:00
Andrea Canciani
3fc5d2746e Test target feature computation 2016-04-09 00:41:23 +02:00
Andrea Canciani
358e41cee4 Introduce the init_llvm function
Extract the code that performs the initialization of the LLVM backend
and invoke it before computing the available features. The
initialization is required to happen before the features are added to
the configuration, because they are computed by LLVM, therefore is is
now performed when creating the `Session` object.
2016-04-09 00:41:23 +02:00
Andrea Canciani
92e24b9516 Expose the features computed from LLVM in cfg!
Instead of relying on the features explicitly passed through the
command line, compute them from the LLVM `TargetMachine`.
2016-04-09 00:41:23 +02:00
Andrea Canciani
c883463e94 Implement feature extraction from TargetMachine
Add the `LLVMRustHasFeature` function to check whether a
`TargetMachine` has a given feature.
2016-04-09 00:39:04 +02:00
Andrea Canciani
64a35f9d23 Reintroduce rustc_llvm dependency in rustc
The dependency was removed in
352b44d1fa, but it is needed in order to
compute the target features.
2016-04-09 00:39:04 +02:00
bors
1779057037 Auto merge of #32751 - alexcrichton:dist-docs, r=brson
rustbuild: Support cross rust-docs packages

Right now if you configure multiple hosts rustbuild will only build
documentation for the build triple, but we've got all the support necessary to
build documentation for different architectures as well. This commit
reinterprets the `target` field of doc `Step` instances to be the target of the
documentation rather than the target of the rustdoc/tool being run.

This should enable `make dist` to start producing a bunch of `rust-docs`
packages for all the cross architectures that rustbuild is producing now.
2016-04-08 15:36:34 -07:00
bors
bf44003c97 Auto merge of #32810 - brson:relnotes, r=brson
Release notes for 1.8

cc @steveklabnik to me the highlights are compound assignment overloading, 32-bit MSVC builds being ready for use, and the cargo improvements.

[Rendered](https://github.com/brson/rust/blob/relnotes/RELEASES.md).
2016-04-08 12:22:11 -07:00
Brian Anderson
94a387e326 Release notes for 1.8 2016-04-08 18:12:17 +00:00