about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2016-05-07Auto merge of #33359 - tamird:consolidate-musl, r=alexcrichtonbors-73/+74
rustc_back: use a common musl base extracted from #33327. cc #33189. r? @alexcrichton
2016-05-07Auto merge of #33333 - birkenfeld:issue-30318, r=Manishearthbors-1/+23
parser: show a helpful note on unexpected inner comment Fixes: #30318.
2016-05-07Auto merge of #33328 - nrc:highlight-api, r=alexcrichtonbors-105/+245
rustdoc: refactor rustdoc syntax highlighting for a more flexible API Clients can now use the rustdoc syntax highlighter to classify tokens, then use that info to put together there own HTML (or whatever), rather than just having static HTML output.
2016-05-06Auto merge of #33311 - birkenfeld:issue33262, r=nrcbors-9/+20
parser: fix suppression of syntax errors in range RHS Invalid expressions on the RHS were just swallowed without generating an error. The new version more closely mirrors the code for parsing `..x` in the `parse_prefix_range_expr` method below, where no cancel is done either. Fixes #33262.
2016-05-06Auto merge of #33267 - nagisa:mir-temporary-32959, r=nikomatsakisbors-3/+13
[MIR] Temporary hack for 32959 Gets rid of the warning. This is more elegant that I thought it would be, actually. r? @nikomatsakis cc #32959
2016-05-06remove stray files in auxiliary directoryNiko Matsakis-55/+0
2016-05-06s/aux/auxiliary, because windowsNiko Matsakis-6/+6
For legacy reasons (presumably), Windows does not permit files name aux.
2016-05-06add missing aux filesNiko Matsakis-0/+55
2016-05-06remove unused aux-base argumentNiko Matsakis-1/+0
2016-05-06kill the old auxiliary directoryNiko Matsakis-8804/+3
2016-05-06move auxiliary builds to a test-relative `aux`Niko Matsakis-44/+9641
Instead of finding aux-build files in `auxiliary`, we now search for an `aux` directory relative to the test. So if your test is `compile-fail/foo.rs`, we would look in `compile-fail/aux`. Similarly, we ignore the `aux` directory when searching for tets.
2016-05-06tweak incremental commentNiko Matsakis-9/+9
2016-05-06move free functions in runtest into methodsNiko Matsakis-1732/+1692
Also, promote the for loop iterating over revisions out into the top-level method, whereas before it was pushed down instead each test's method. Not entirely clear that this was the right call.
2016-05-06use methods for EarlyProps and TestPropsNiko Matsakis-214/+220
2016-05-06refactor interface of make_compile_argsNiko Matsakis-21/+26
2016-05-06Auto merge of #33225 - michaelwoerister:fix-debuginfo-struct-ns, r=eddybbors-50/+124
debuginfo: Fix regression in namespace handling for struct types. Fixes a small regression that has been introduced in recent refactorings. Fixes #33193 r? @eddyb
2016-05-06Auto merge of #33138 - arielb1:sized-shortcut, r=nikomatsakisbors-413/+845
Short-cut `T: Sized` trait selection for ADTs Basically avoids all nested obligations when checking whether an ADT is sized - this speeds up typeck by ~15% The refactoring fixed #32963, but I also want to make `Copy` not object-safe (will commit that soon). Fixes #33201 r? @nikomatsakis
2016-05-06Auto merge of #33086 - cardoe:non-blocking-rand-read, r=alexcrichtonbors-3/+20
rand: don't block before random pool is initialized If we attempt a read with getrandom() on Linux the syscall can block before the random pool is initialized unless the GRND_NONBLOCK flag is passed. This flag causes getrandom() to instead return EAGAIN while the pool is uninitialized. To avoid downstream users of crate or std functionality that have no ability to avoid this blocking behavior this change causes Rust to read bytes from /dev/urandom while getrandom() would block and once getrandom() is available to use that. Fixes #32953. Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2016-05-06Auto merge of #33072 - tbu-:pr_duration_new_overflow, r=alexcrichtonbors-1/+7
Panic on overflow in `Duration::new` constructor Panicking on overflow is also done for `+`, and it replaces the currently incorrect overflow behavior of wrapping around, which does not make sense for `Duration`s.
2016-05-05Auto merge of #32835 - brson:alldebug, r=michaelwoeristerbors-9/+9
Distribute both rust-lldb and rust-gdb everywhere Both debuggers are viable in some capacity on all tier-1 platforms, and people often ask for rust-lldb on Linux or rust-gdb on OS X. r? @michaelwoerister I'm still testing locally, but this *looks* like the right thing to change.
2016-05-06Distribute both rust-lldb and rust-gdb everywhere except win-msvcBrian Anderson-9/+9
Both debuggers are viable in some capacity on all tier-1 platforms, and people often ask for rust-lldb on Linux or rust-gdb on OS X.
2016-05-05Auto merge of #32565 - tbu-:pr_cell_as_mut, r=alexcrichtonbors-0/+24
Add `as_mut` methods to the `std::cell` structs This is safe since the borrow checking ensures that we have the only mutable reference to the struct, thus we can safely borrow its interior.
2016-05-06Add `get_mut` methods to the `RefCell` and `Cell`Tobias Bucher-0/+24
This is safe since the borrow checker ensures that we have the only mutable reference to the struct, thus we can safely borrow its interior. Tracking issue is #33444.
2016-05-05Auto merge of #32990 - tbu-:pr_more_defaults_cstr_path, r=alexcrichtonbors-0/+16
Add `Default` implementation for `&CStr`, `CString`, `Path`
2016-05-05Auto merge of #33128 - xen0n:more-confusing-unicode-chars, r=nagisabors-6/+53
Add more aliases for Unicode confusable chars Building upon #29837, this PR: * added aliases for space characters, * distinguished square brackets from parens, and * added common CJK punctuation characters as aliases. This will especially help CJK users who may have forgotten to switch off IME when coding.
2016-05-05Add `Default` implementation for `&CStr` and `CString`Tobias Bucher-0/+16
2016-05-05Auto merge of #33067 - notriddle:wrapping_neg, r=alexcrichtonbors-0/+9
Implement negation for wrapping numerals. Fixes #33037
2016-05-04Auto merge of #33381 - alexcrichton:fix-nightlies, r=nikomatsakisbors-0/+5
mk: Pass CFLAGS for target, not host This changes the CFLAGS and related variables passed to compiletest to be passed for the target, not the host, so we can correctly test 32-bit cross compiles on 64-bit host machines. Hopefuly fixes #33379
2016-05-05fixesAriel Ben-Yehuda-6/+13
2016-05-04rustdoc: refactor rustdoc syntax highlighting for a more flexible APINick Cameron-105/+245
Clients can now use the rustdoc syntax highlighter to classify tokens, then use that info to put together there own HTML (or whatever), rather than just having static HTML output.
2016-05-03mk: Pass CFLAGS for target, not hostAlex Crichton-0/+5
This changes the CFLAGS and related variables passed to compiletest to be passed for the target, not the host, so we can correctly test 32-bit cross compiles on 64-bit host machines. Hopefuly fixes #33379
2016-05-03Make runtest::check_debugger_output() handle wildcards at end.Michael Woerister-47/+51
2016-05-03parser: show a helpful note on unexpected inner commentGeorg Brandl-1/+23
Fixes: #30318.
2016-05-03stop dropping impls from cause backtracesAriel Ben-Yehuda-23/+25
2016-05-03stop using commit_if_ok where no errors can happenAriel Ben-Yehuda-52/+42
2016-05-03change the newly-added errors to warningsAriel Ben-Yehuda-117/+363
this commit should be reverted after a release cycle
2016-05-03improve error message for WF TuplesAriel Ben-Yehuda-1/+10
2016-05-03address review commentsAriel Ben-Yehuda-82/+83
2016-05-03fix breaking changesAriel Ben-Yehuda-1/+1
2016-05-03require the existential bounds of an object type to be object-safeAriel Ben-Yehuda-11/+50
This is required, as Copy and Sized are object-unsafe. As a soundness fix, this is a [breaking-change] Fixes #32963
2016-05-03require the non-last elements of a tuple to be SizedAriel Ben-Yehuda-19/+46
This requirement appears to be missing from RFC1214, but is clearly necessary for translation. The last field of a tuple/enum remains in a state of limbo, compiling but causing an ICE when it is used - we should eventually fix that somehow. this is a [breaking-change] - a soundness fix - and requires a crater run.
2016-05-03refactor the handling of builtin candidatesAriel Ben-Yehuda-203/+112
2016-05-03add comments and testsAriel Ben-Yehuda-13/+73
2016-05-03Short-cut Sized matching on ADTsAriel Ben-Yehuda-83/+225
Put a constraint type on every ADT def, such that the ADT def is sized iff the constraint type is, and use that in selection. This ignores types that are obviously sized. This improves typeck performance by ~15%.
2016-05-03Rollup merge of #33372 - birkenfeld:rustdoc-escape-code, r=cmrManish Goregaokar-3/+19
rustdoc: HTML-escape Rust code (from constants) Especially in cases like the one in the test file, this can blow up the rendering big time if string constants in the code contain HTML. But also other constants can contain special chars (e.g. `&` as an operator in constant expressions).
2016-05-03Rollup merge of #33371 - birkenfeld:issue-33302, r=cmrManish Goregaokar-12/+57
rustdoc: fix inserting source code spans for constant values This will go wrong when the constants partially result from macro expansion. Instead, use the expressions and pretty-print them as Rust code. Fixes: #33302
2016-05-03Rollup merge of #33357 - pcwalton:inline-mem-forget, r=brsonManish Goregaokar-0/+1
libcore: Inline `mem::forget()`. Was causing severe performance problems in WebRender. r? @brson
2016-05-03Rollup merge of #33343 - birkenfeld:issue-32214, r=ManishearthManish Goregaokar-5/+18
parser: change warning into an error on `T<A=B, C>` part of #32214 This seems to be the obvious fix, and the error message is consistent with all the other parser errors ("expected x, found y").
2016-05-03Rollup merge of #33340 - birkenfeld:issue-23716, r=ManishearthManish Goregaokar-11/+54
resolve: print location of static for "static in pattern" error The implementation mirrors the one for "constant defined here" annotation used for constant patterns in the irrefutable-pattern case. Fixes: #23716
2016-05-03Rollup merge of #33339 - oli-obk:fix/const_eval, r=japaricManish Goregaokar-55/+67
fix various const eval errors These were found after const_evaluating arbitrary expressions and linting if the const evaluator failed fixes #33275 (int -> float casts for negative ints) fixes #33291 (int -> char casts (new! wasn't allowed in constants until this PR)) r? @eddyb cc @bluss @japaric