Commit Graph

41346 Commits

Author SHA1 Message Date
Steve Klabnik
7644ef8c2b Rollup merge of - achanda:move_test, r=alexcrichton
- Also move common functions to test.rs
- Leaves out Socket address related tests in addr.rs
2015-04-15 17:26:09 -04:00
Steve Klabnik
438011dc48 Rollup merge of - brettcannon:patch-3, r=steveklabnik
"as an library" -> "as a library"
2015-04-15 17:26:09 -04:00
Steve Klabnik
ff7c991305 Rollup merge of - andrewseidl:master, r=alexcrichton
Use external instead of relative link for rustbyexample.com in generated `src/doc/index.md`. (http://doc.rust-lang.org/nightly/index.html)

Previous: http://doc.rust-lang.org/nightly/rustbyexample.com
Desired: http://rustbyexample.com/
2015-04-15 17:26:09 -04:00
Steve Klabnik
68648fe0da Rollup merge of - brettcannon:patch-2, r=alexcrichton
Link spanned a line and was missing the actual link target.
2015-04-15 17:26:08 -04:00
Steve Klabnik
f4647ac3b7 Rollup merge of - brettcannon:patch-1, r=alexcrichton
Had a newline in middle of a link, causing the link text to be shown with `[]`.
2015-04-15 17:26:08 -04:00
Steve Klabnik
df54719be0 Rollup merge of - steveklabnik:intoiteratordocfix, r=alexcrichton 2015-04-15 17:26:08 -04:00
Steve Klabnik
111404fc21 Rollup merge of - bytewiseand:master, r=alexcrichton
Closes 
Closes 

These ICEs are fixed on nightly.
2015-04-15 17:26:08 -04:00
Steve Klabnik
79e5c0051c Rollup merge of - Ms2ger:more-typos, r=alexcrichton 2015-04-15 17:26:07 -04:00
Steve Klabnik
b5378f452e Rollup merge of - richo:typo, r=alexcrichton
Spotted a typo, opened a tiny PR.
2015-04-15 17:26:07 -04:00
Steve Klabnik
68a9e6a933 Rollup merge of - nham:improve_enumerate_doc, r=alexcrichton
I found that the current description of `enumerate()` doesn't actually tell you what, specifically, the method does, and you have to look at the example to figure it out. Here's a description that I think is better.
2015-04-15 17:26:07 -04:00
Steve Klabnik
63d524d4ab Rollup merge of - nrc:tuple-span, r=sfackler 2015-04-15 17:26:07 -04:00
Steve Klabnik
71156035cc Rollup merge of - killercup:patch-9, r=steveklabnik
The link works on the `std/ptr/index.html` docs page, but not the `std/primitive.pointer.html` page. Instead of leaving it half-broken, it is removed.

I tried fixing this in , but @alexcrichton mentioned that this doc string was used in two places (with different base paths unfortunately).

r? @alexcrichton
2015-04-15 17:26:07 -04:00
Steve Klabnik
031619f5af Rollup merge of - dhuseby:bitrig_fixing_tests_3, r=alexcrichton
the code block in the no-stdlib.md file caused test failure on bitrig and openbsd.

Closes 
2015-04-15 17:26:06 -04:00
bors
07f807d01f Auto merge of - pnkfelix:issue-24267, r=nikomatsakis
Extend rustc::middle::dataflow to allow filtering kills from flow-exits.

Fix borrowck analysis so that it will not treat a break that pops through an assignment
```rust
x = { ... break; ... }
```
as a kill of the "moved-out" bit for `x`.

Fix .

[breaking-change], but really, its only breaking code that was already buggy.
2015-04-15 21:05:16 +00:00
Abhishek Chanda
63e5848cc6 Move IP related tests to ip.rs
- Also move common functions to test.rs
- Leaves out Socket address related tests in addr.rs
2015-04-15 13:53:10 -07:00
Brett Cannon
9ce73d40d4 Grammar fix
"as an library" -> "as a library"
2015-04-15 15:56:01 -04:00
Thomas Jespersen
3a203636e9 Make sure to disambiguate obtained out from expected output 2015-04-15 21:47:33 +02:00
Ariel Ben-Yehuda
fd8c592757 Always type-check the index of an IndexExpr
Fixes .
2015-04-15 22:36:07 +03:00
Ariel Ben-Yehuda
9c1dfed2ba Use node_ty instead of expr_ty in binary expr fixup 2015-04-15 22:36:06 +03:00
Ariel Ben-Yehuda
9e1a07883b clean visit_expr 2015-04-15 22:36:06 +03:00
Ariel Ben-Yehuda
6a95d90b86 make Repr of TraitRef more useful 2015-04-15 22:36:06 +03:00
Nick Hamann
2b86f1f428 Describe the Iterator enumerate() method more clearly. 2015-04-15 13:38:23 -05:00
Andrew Seidl
86ec4571d5 doc: Fix link to rustbyexample.com 2015-04-15 13:05:52 -05:00
Brett Cannon
40c7350407 Fix link to stack/heap page
Link spanned a line and was mising the actual link target.
2015-04-15 12:57:22 -04:00
Brett Cannon
09236bcb07 Fix link formatting error
Had a newline in middle of a link, causing the link text to be shown with `[]`.
2015-04-15 12:51:34 -04:00
bors
ce27d024ff Auto merge of - fhahn:fix-small-typo, r=steveklabnik 2015-04-15 16:19:00 +00:00
Felix S. Klock II
77bf827968 Regression test. 2015-04-15 18:16:56 +02:00
Felix S. Klock II
1702098e6f Dataflow changes and associated borrowck fix.
Revise rustc::middle::dataflow: one must select kill-kind when calling
add_kill. The current kill-kinds are (1.) kills associated with
ends-of-scopes and (2.) kills associated with the actual action of the
expression/pattern.

Then, use this to fix borrowck analysis so that it will not treat a
break that pops through an assignment `x = { ... break; ... }` as a
kill of the "moved-out" bit for `x`.

Fix .

(incorporated review feedback.)
2015-04-15 18:16:40 +02:00
Alex Crichton
3e57c6c3ba std: Fix thread_local! in non-PIE binaries
One of the parameters to the magical "register a thread-local destructor"
function is called `__dso_handle` and largely just passed along (this seems to
be what other implementations do). Currently we pass the *value* of this symbol,
but apparently the correct piece of information to pass is the *address* of the
symbol.

In a PIE binary the symbol actually contains an address to itself which is why
we've gotten away with what we're doing as long as we have. In a non-PIE binary
the symbol contains the address `NULL`, causing a segfault in the runtime
library if it keeps going.

Closes 
2015-04-15 09:14:48 -07:00
Steve Klabnik
e7e7c0fc85 Fix link in intoiterator docs 2015-04-15 11:43:43 -04:00
Theo Belaire
e4b3faca51 Added a test for include_bytes! dep info
This tests that both include_str! and include_bytes!  mark their input
file as a dependancy, and it's correctly outputted when you run
`rustc --emit dep-info`.
2015-04-15 10:40:04 -04:00
Andreas Martens
14f2dce532 Add tests for "ident only path should have been covered"-ICE 2015-04-15 14:18:47 +02:00
Ms2ger
9a5a47eddc Fix some typos. 2015-04-15 13:37:55 +02:00
Adolfo Ochagavía
9891ea74d6 Implement traits for parser error structs
Implement `Debug`, `Display` and `Error` for `FatalError` and `ExplicitBug`
2015-04-15 11:17:58 +02:00
bors
a691f1eefe Auto merge of - alexcrichton:windows-pipes, r=aturon
This commit removes the last remnants of file descriptors from the Windows
implementation of `std::sys` by using `CreatePipe` to create anonymous pipes
instead of the `pipe` shim provided in msvcrt.
2015-04-15 08:21:43 +00:00
Tobias Bucher
53b7a06faf Remove one allocation for the file path in file opening
Fixes .
2015-04-15 09:52:08 +02:00
Richo Healey
cf43761de4 rustc: fix a typo in letter to rustc 2015-04-15 00:07:25 -07:00
bors
af1c39cbd9 Auto merge of - alexcrichton:windows-wsa-flag-overlapped, r=aturon
This commit modifies the socket creation functions on windows to always specify
the `WSA_FLAG_OVERLAPPED` and `WSA_FLAG_NO_HANDLE_INHERIT` flags by default. The
overlapped flag enables IOCP APIs on Windows to be used with the socket at no
cost, enabling better interoperation with external libraries. The no handle
inherit flag mirrors the upcoming change to Unix to set CLOEXEC by default for
all handles.

Closes 
2015-04-15 06:18:51 +00:00
bors
c7734429ea Auto merge of - ruud-v-a:explain, r=alexcrichton
This resolves part of .
2015-04-15 04:14:50 +00:00
Tamir Duberstein
c55ae1dc30 Fill in missing implementation 2015-04-14 20:26:04 -07:00
Tamir Duberstein
10f15e72e6 Negative case of len() -> is_empty()
`s/([^\(\s]+\.)len\(\) [(?:!=)>] 0/!$1is_empty()/g`
2015-04-14 20:26:03 -07:00
Tamir Duberstein
29ac04402d Positive case of len() -> is_empty()
`s/(?<!\{ self)(?<=\.)len\(\) == 0/is_empty()/g`
2015-04-14 20:26:03 -07:00
bors
16e1fcead1 Auto merge of - alexcrichton:rollup, r=alexcrichton 2015-04-15 01:05:03 +00:00
Alex Crichton
e053571df2 Test fixes and rebase conflicts, round 2 2015-04-14 17:40:37 -07:00
Nick Cameron
f37365ea92 Fix the span for tuple expressions 2015-04-15 11:20:17 +12:00
Thomas Jespersen
5e1505f823 Remove -o flag from build command
It generates a warning that --outdir argument is ignored, which is
captured and spoils the output

Also ensure that test output is captured in a different file than the
expected output file
2015-04-14 23:43:09 +02:00
Florian Hahn
7350ce8439 Strip configuration before checking feature gates of macros
closes 
2015-04-14 23:39:45 +02:00
Florian Hahn
4f3d400b3d Remove superfluous the from custom_attribute feature gate message 2015-04-14 23:27:16 +02:00
Pascal Hertleif
cbe9a1a6f4 Remove Incorrect Link from std::ptr::null Docs
The link works on the std::ptr docs page, but not the primitive.ptr.html page.
Instead of leaving it half-broken, it is removed.
2015-04-14 23:22:37 +02:00
Alex Crichton
d3da5a7e9b Merge remote-tracking branch 'origin/master' into rollup
Conflicts:
	src/librustc/middle/stability.rs
2015-04-14 14:13:42 -07:00