Erick Tryzelaar
bd8dac8f75
rustup: rewrite to protect against truncation
...
This closes #19168 . It's possible that if the downloading of `rustup.sh`
is interrupted, bad things could happen, such as running a naked
"rm -rf /" instead of "rm -rf /path/to/tmpdir". This wraps rustup.sh's
functionality in a function that gets called at the last time that should
protect us from these truncation errors.
2014-12-03 15:18:52 -08:00
Erick Tryzelaar
8ca8e6fa4d
rustup: factor out installing packages into a function
2014-12-03 15:17:36 -08:00
Erick Tryzelaar
b388dc61a5
rustup: factor out downloading and extracting the snapshot tarballs
2014-12-03 15:17:32 -08:00
Corey Richardson
2e1a50121e
syntax: support ES6-style unicode escapes
...
First half of bootstrapping https://github.com/rust-lang/rfcs/pull/446
2014-12-03 15:10:51 -08:00
bors
daa0745886
auto merge of #18749 : nikomatsakis/rust/builtin-bounds-like-other-traits, r=pcwalton
...
Treat builtin bounds like all other kinds of trait matches. Introduce a simple hashset in the fulfillment context to catch cases where we register the exact same obligation twice. This helps prevent duplicate error reports but also handles the recursive obligations created by builtin bounds.
r? @pcwalton
cc @FlaPer87
2014-12-03 22:57:40 +00:00
Erick Tryzelaar
4f65d97bf8
rustup: factor out the install flags into a CFG_INSTALL_FLAGS variable
2014-12-03 14:40:33 -08:00
Erick Tryzelaar
fcb31e8347
rustup: rename TMP_DIR to CFG_TMP_DIR
2014-12-03 14:40:33 -08:00
Erick Tryzelaar
e688eb3b4f
rustup: add a RUST_ prefix to the rust-specific variables
2014-12-03 14:40:33 -08:00
Erick Tryzelaar
98f01f1f54
rustup: probe for the existance of tar
2014-12-03 14:40:33 -08:00
Erick Tryzelaar
3b4ad726f1
rustup: make rustup executable
2014-12-03 14:40:33 -08:00
Erick Tryzelaar
c7ae4a9664
whitespace cleanup
2014-12-03 14:40:33 -08:00
bors
dbc379a66e
auto merge of #19502 : alexcrichton/rust/issue-19501, r=sfackler
...
I don't have enough time to investigate this thoroughly, so for now let's get
the queue moving by ignoring this test.
cc #19501
2014-12-03 18:52:48 +00:00
Alexander Light
e621116b86
make fmt_macros and rustdoc have standard doc attributes
2014-12-03 12:49:59 -05:00
Nick Cameron
c200ae5a8a
Remove feature gates for if let
, while let
, and tuple indexing
...
Closes #19469
2014-12-03 09:45:08 -08:00
Alex Crichton
719c36c9b9
test: Ignore issue-19501 pretty for now
...
I don't have enough time to investigate this thoroughly, so for now let's get
the queue moving by ignoring this test.
cc #19501
2014-12-03 09:22:13 -08:00
Kang Seonghoon
1068855925
rustdoc: Avoid rendering foreign items to the sidebar.
...
Otherwise the generated documentation is 30% larger. The sidebar
renders an entry for each item to all items, so large modules have
O(n^2) items rendered in the sidebars. Not a correct solution, but
at least it works.
2014-12-04 01:00:01 +09:00
Kang Seonghoon
1cb1f00d40
rustdoc: Removed Foreign{Function,Static} item types.
...
They are just (unsafe) functions and static items to most users
and even compilers! The metadata doesn't distinguish them, so Rustdoc
ended up producing broken links (generated `ffi.*.html`, links to
`fn.*.html`). It would be best to avoid this pitfall at all.
2014-12-04 01:00:01 +09:00
Kang Seonghoon
a3bb8585e8
rustdoc: Refactored various uses of ItemType.
...
In particular, ItemType variants are no longer reexported. Since
we already do namespace them via `item_type` mod, it's fine.
2014-12-04 00:59:52 +09:00
Kang Seonghoon
131d4ed018
rustdoc: Fixed a missing rendering of ForeignStaticItems.
2014-12-04 00:58:09 +09:00
Jorge Aparicio
5cfac94201
Deprecate Equiv
2014-12-03 10:41:48 -05:00
Jorge Aparicio
09707d70a4
Fix fallout
2014-12-03 10:41:48 -05:00
Jorge Aparicio
eac635de01
Remove unused transmutes from tests
2014-12-03 10:41:48 -05:00
Jorge Aparicio
b32b24d13a
Replace equiv
method calls with ==
operator sugar
2014-12-03 10:41:48 -05:00
Jorge Aparicio
2840d58dab
Overload the ==
operator
...
- String == &str == CowString
- Vec == &[T] == &mut [T] == [T, ..N] == CowVec
- InternedString == &str
2014-12-03 10:41:42 -05:00
Steve Klabnik
861e11ceeb
Remove outdated comment.
...
https://github.com/rust-lang/rust/pull/19472#issuecomment-65370278
2014-12-03 03:29:57 -05:00
Steve Klabnik
7213704812
New Guide: Ownership
...
This replaces the previous "Lifetimes guide," since we are discussing
things from an owernship perspective now.
2014-12-03 03:27:17 -05:00
Oliver Schneider
ea6f628709
libtest: get rid of dependency to ToJson
...
deriving encodable + using json::PrettyEncoder removes the only ToJson trait implementation in the rust repository outside of libserialize
2014-12-03 09:16:00 +01:00
Clark Gaebel
851c7b5e0f
Fixed out of date comment on copy_memory
2014-12-02 17:50:26 -08:00
Niko Matsakis
931758c88a
FIXME( #19481 ) -- workaround valgrind cleanup failure (but the code is nicer this way anyhow)
2014-12-02 20:17:55 -05:00
Niko Matsakis
594e21f19b
Correct various compile-fail tests. Most of the changes are because we
...
now don't print duplicate errors within one context, so I sometimes
had to break functions into two functions.
2014-12-02 19:05:14 -05:00
Niko Matsakis
d85ff16173
Treat builtin bounds like all other kinds of trait matches. Introduce a simple hashset in the fulfillment context to catch cases where we register the exact same obligation twice. This helps prevent duplicate error reports but also handles the recursive obligations created by builtin bounds.
2014-12-02 19:05:14 -05:00
Jorge Aparicio
2578de9d60
Test PartialEq multidispatch
2014-12-02 18:52:50 -05:00
Jorge Aparicio
b258de7bda
libcore: add Rhs
input parameter to comparison traits
2014-12-02 18:52:50 -05:00
Luqman Aden
89d0995373
gdb: Fix pretty printer for nullable-opt enums with fat pointers.
2014-12-02 18:28:43 -05:00
Luqman Aden
886ff4f3c3
lldb: Fix pretty printer for nullable-opt enums with fat pointers.
2014-12-02 17:33:52 -05:00
Victor van den Elzen
d8c5269dd2
Update comment to current file path for intrinsics
2014-12-02 20:57:00 +01:00
Victor van den Elzen
6182084e58
Improve documentation of checked_* functions
2014-12-02 20:56:41 +01:00
bors
3a325c666d
auto merge of #19460 : steveklabnik/rust/conf_fixes, r=alexcrichton
2014-12-02 17:47:14 +00:00
Matej Lach
ebf22cbf6a
replace 'but' with 'and'
2014-12-02 16:45:57 +00:00
Steve Klabnik
5a2048f7bb
remove two unneccesary directories from configure
2014-12-02 09:21:28 -05:00
Matej Lach
5bbe5d6d93
better wording
2014-12-02 13:40:18 +00:00
bors
738d9803ac
auto merge of #19443 : nodakai/rust/another-missing-extracflags, r=alexcrichton
...
rust-lang/rust@102b1a5bf1 was not enough!
2014-12-02 12:02:06 +00:00
bors
2b35e6fa08
auto merge of #19357 : michaelwoerister/rust/fix-issue-18791, r=alexcrichton
...
One negative side-effect of this change is that there might be quite a bit of copying strings out of the codemap, i.e. one copy for every block that gets translated, just for taking a look at the last character of the block. If this turns out to cause a performance problem then `CodeMap::span_to_snippet()` could be changed return `Option<&str>` instead of `Option<String>`.
Fixes #18791
2014-12-02 10:06:58 +00:00
bors
8dbe63200d
auto merge of #19427 : scialex/rust/doc-attr-macros, r=sfackler
...
this allows one to, for example, use #[doc = $macro_var ] in macros.
2014-12-02 07:22:02 +00:00
Paul Collier
e407472f90
rustdoc: Check for href when prepending rootPath
...
Fixes #18354 .
2014-12-01 20:53:32 -08:00
bors
8a210af7e5
auto merge of #19450 : jbapple/rust/pq-pop-time, r=Gankro
...
pop calls siftdown, siftdown calls siftdown_range, and siftdown_range
loops on an index that can start as low as 0 and approximately doubles
each iteration.
2014-12-02 02:52:15 +00:00
Jim Apple
0212dff902
Pop on binary heaps does not have constant time complexity.
...
pop calls siftdown, siftdown calls siftdown_range, and siftdown_range
loops on an index that can start as low as 0 and approximately doubles
each iteration.
2014-12-01 18:12:48 -08:00
Michael Woerister
61a0a7f0a3
debuginfo: Fix multi-byte character related bug in cleanup scope handling.
...
Also see issue #18791 .
2014-12-01 16:22:00 -08:00
bors
5484d6f6d2
auto merge of #19439 : nodakai/rust/liblibc-getsid, r=acrichto
...
```
#include <unistd.h>
pid_t getsid(pid_t pid);
CONFORMING TO
SVr4, POSIX.1-2001.
```
2014-12-02 00:22:00 +00:00
bors
21ba1d5e58
auto merge of #19405 : jfager/rust/de-match-pyramid, r=bstrie
...
No semantic changes, no enabling `if let` where it wasn't already enabled.
2014-12-01 21:56:53 +00:00