summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2015-05-11fallout to run-pass tests.Felix S. Klock II-3/+3
2015-05-12Squeeze the last bits of `task`s in documentation in favor of `thread`Barosl Lee-14/+14
An automated script was run against the `.rs` and `.md` files, subsituting every occurrence of `task` with `thread`. In the `.rs` files, only the texts in the comment blocks were affected.
2015-05-07test: update run-pass tests to not use mutable transmutingSean McArthur-2/+2
2015-04-30Regression test for issue 24687.Felix S. Klock II-0/+21
use visible characters for the multibyte character filler.
2015-04-30Fix #20616York Xiang-0/+52
Conflicts: src/libsyntax/parse/parser.rs
2015-04-23Test fixes and rebase conflicts, round 1Alex Crichton-4/+1
Conflicts: src/test/run-pass/task-stderr.rs
2015-04-23test: Fix fallout in testsAlex Crichton-232/+96
2015-04-23std: Add Default/IntoIterator/ToOwned to the preludeAlex Crichton-3/+3
This is an implementation of [RFC 1030][rfc] which adds these traits to the prelude and additionally removes all inherent `into_iter` methods on collections in favor of the trait implementation (which is now accessible by default). [rfc]: https://github.com/rust-lang/rfcs/pull/1030 This is technically a breaking change due to the prelude additions and removal of inherent methods, but it is expected that essentially no code breaks in practice. [breaking-change] Closes #24538
2015-04-23Fallout from this change.Felix S. Klock II-0/+43
2015-04-22add notes clarifying introduction of warnings for a pair of run-pass tests.Felix S. Klock II-0/+13
2015-04-16Auto merge of #24437 - fhahn:issue-24434, r=alexcrichtonbors-0/+16
closes #24434 This PR changes executes `syntax::config::strip_unconfigured_items` before `syntax::feature_gate::check_crate_macros(sess.codemap()`. As far as I know, `strip_unconfigured_items` should be independent of `check_crate_macros`.
2015-04-16Auto merge of #23682 - tamird:DRY-is-empty, r=alexcrichtonbors-6/+6
r? @alexcrichton
2015-04-16Auto merge of #24485 - brson:is, r=alexcrichtonbors-5/+5
It was an oversight that this was not done in the great int upheaval. [breaking-change]
2015-04-15Forbid is/us suffixes. Fixes #22496Brian Anderson-5/+5
It was an oversight that this was not done in the great int upheaval. [breaking-change]
2015-04-15Fix some typos.Ms2ger-1/+1
2015-04-14Negative case of `len()` -> `is_empty()`Tamir Duberstein-2/+2
`s/([^\(\s]+\.)len\(\) [(?:!=)>] 0/!$1is_empty()/g`
2015-04-14Positive case of `len()` -> `is_empty()`Tamir Duberstein-4/+4
`s/(?<!\{ self)(?<=\.)len\(\) == 0/is_empty()/g`
2015-04-14Test fixes and rebase conflicts, round 2Alex Crichton-69/+0
2015-04-14Strip configuration before checking feature gates of macrosFlorian Hahn-0/+16
closes #24434
2015-04-14Test fixes and rebase conflictsAlex Crichton-381/+0
2015-04-14rollup merge of #24385: aturon/unstable-scopedAlex Crichton-57/+465
Conflicts: src/libstd/thread/mod.rs src/test/bench/shootout-mandelbrot.rs src/test/bench/shootout-reverse-complement.rs src/test/run-pass/capturing-logging.rs src/test/run-pass/issue-9396.rs src/test/run-pass/tcp-accept-stress.rs src/test/run-pass/tcp-connect-timeouts.rs src/test/run-pass/tempfile.rs
2015-04-14rollup merge of #24379: rkruppe/fmt-negative-zeroAlex Crichton-1/+7
Fixes #20596 by making `Debug` render negative zero with a `-` without affecting the behavior of `Display`. While I was at it, I also removed some dead code from `float_to_str_bytes_common` (the one from `libcore/fmt/float.rs`, not the function of the same name in `libstd/num/strconv.rs`). It had support for different bases, and for negative numbers, but the function is internal to core and the couple places that call it (all in `libcore/fmt/mod.rs`) never use those features: They pass in `num.abs()` and base 10.
2015-04-14rollup merge of #24371: dotdash/24353Alex Crichton-0/+16
Fixes #24353
2015-04-14More test fixesAlex Crichton-45/+27
2015-04-14test: Fix fallout in run-pass testsAlex Crichton-718/+141
2015-04-14Fallout: move from scoped to spawnAaron Turon-64/+96
2015-04-14Auto merge of #24312 - rprichard:destabilize-format-args, r=alexcrichtonbors-13/+0
Fixes #22953.
2015-04-14eddyb's refactoring of coercions/adjustmentsEduard Burtescu-26/+0
2015-04-13Fix ICE when returning a variable whose declaration is unreachableBjörn Steinbrink-0/+16
Fixes #24353
2015-04-12Remove pretty-expanded from tests that use format_args!Ryan Prichard-13/+0
Now that the internals of `format_args!` are unstable, tests that use it don't compile after pretty-printing (unless they also declare the necessary feature).
2015-04-12Make Debug include the - in -0.0Robin Kruppe-1/+7
2015-04-12Rollup merge of #24321 - lstat:16602-needstest, r=pnkfelixManish Goregaokar-0/+70
Closes #16602
2015-04-12Auto merge of #23011 - nagisa:the-war-of-symbol-and-symbol, r=pnkfelixbors-3/+0
We provide tools to tell what exact symbols to emit for any fn or static, but don’t quite check if that won’t cause any issues later on. Some of the issues include LLVM mangling our names again and our names pointing to wrong locations, us generating dumb foreign call wrappers, linker errors, extern functions resolving to different symbols altogether (`extern {fn fail();} fail();` in some cases calling `fail1()`), etc. Before the commit we had a function called `note_unique_llvm_symbol`, so it is clear somebody was aware of the issue at some point, but the function was barely used, mostly in irrelevant locations. Along with working on it I took liberty to start refactoring trans/base into a few smaller modules. The refactoring is incomplete and I hope I will find some motivation to carry on with it. This is possibly a [breaking-change] because it makes dumbly written code properly invalid. This fixes all those issues about incorrect use of #[no_mangle] being not reported/misreported/ICEd by the compiler. NB. This PR does not attempt to tackle the parallel codegen issue that was mentioned in https://github.com/rust-lang/rust/pull/22811, but I believe it should be very straightforward in a follow up PR by modifying `trans::declare::get_defined_value` to look at all the contexts. cc @alexcrichton @huonw @nrc because you commented on the original RFC issue. EDIT: wow, this became much bigger than I initially intended.
2015-04-11Rollup merge of #24236 - aturon:issue-19097, r=alexcrichtonManish Goregaokar-0/+22
Closes #19097
2015-04-11Rollup merge of #24268 - pnkfelix:regression-tests, r=alexcrichtonManish Goregaokar-0/+152
A pair of regression tests for issues that seem to have been fixed since they were originally filed.
2015-04-11Auto merge of #24155 - chris-chambers:stmt_macros, r=sfacklerbors-0/+61
Statement macros are now treated somewhat like item macros, in that a statement macro can now expand into a series of statements, rather than just a single statement. This allows statement macros to be nested inside other kinds of macros and expand properly, where previously the expansion would only work when no nesting was present. See: - `src/test/run-pass/macro-stmt_macro_in_expr_macro.rs` - `src/test/run-pass/macro-nested_stmt_macro.rs` This changes the interface of the MacResult trait. make_stmt has become make_stmts and now returns a vector, rather than a single item. Plugin writers who were implementing MacResult will have breakage, as well as anyone using MacEager::stmt. See: - `src/libsyntax/ext/base.rs` This also causes a minor difference in behavior to the diagnostics produced by certain malformed macros. See: - `src/test/compile-fail/macro-incomplete-parse.rs`
2015-04-11Add tests for #16602Luke Gallagher-0/+70
Closes #16602
2015-04-11Auto merge of #24254 - aturon:join-handle-debug, r=alexcrichtonbors-0/+17
Make `Box<Any + Send>` implement `Debug`. Fixes #21291
2015-04-11Auto merge of #24186 - richo:pad-pointers, r=alexcrichtonbors-3/+16
This pads out the printing of pointers to their native width. Extracted from and rebased on top of #24144
2015-04-10Auto merge of #24270 - pnkfelix:use-disr-val-for-derive-ord, r=brsonbors-4/+176
Use `discriminant_value` intrinsic for `derive(PartialOrd)` [breaking-change] This is a [breaking-change] because it can change the result of comparison operators when enum discriminants have been explicitly assigned. Notably in a case like: ```rust #[derive(PartialOrd)] enum E { A = 2, B = 1} ``` Under the old deriving, `A < B` held, because `A` came before `B` in the order of declaration. But now we use the ordering according to the provided values, and thus `A > B`. (However, this change is very unlikely to break much, if any, code, since the orderings themselves should all remain well-defined, total, etc.) Fix #15523
2015-04-11Remove pretty-expanded from 2 tests; deriving(Ord) uses unstable intrinsic.Felix S. Klock II-4/+0
2015-04-10Test case for 64-bit corner cases where truncation occurred before prior commit.Felix S. Klock II-0/+50
2015-04-10Test case for new `derive(PartialOrd)` expansion.Felix S. Klock II-0/+49
2015-04-10Rebase discriminant_value test. Add case for a specialized repr.Felix S. Klock II-0/+15
2015-04-10Regression test for Issue 21486.Felix S. Klock II-0/+86
Fix #21486
2015-04-10Regression test for Issue 21400.Felix S. Klock II-0/+66
Fix #21400.
2015-04-10Add test for discriminant_value resultsJames Miller-0/+62
2015-04-10std: Unconditionally close all file descriptorsAlex Crichton-0/+1
The logic for only closing file descriptors >= 3 was inherited from quite some time ago and ends up meaning that some internal APIs are less consistent than they should be. By unconditionally closing everything entering a `FileDesc` we ensure that we're consistent in our behavior as well as robustly handling the stdio case.
2015-04-09fmt: Assume that we'll only ever see 32 or 64 bit pointersRicho Healey-4/+2
2015-04-09test: Unignore test for fixed issue #20676Richo Healey-3/+2