about summary refs log tree commit diff
path: root/src/test/run-pass
AgeCommit message (Collapse)AuthorLines
2015-04-21rollup merge of #24651: tamird/old-referencesAlex Crichton-24/+9
r? @alexcrichton
2015-04-21rollup merge of #24563: kwantam/rfc_1054Alex Crichton-3/+1
For now, words() is left in (but deprecated), and Words is a type alias for struct SplitWhitespace. Also cleaned up references to str.words() throughout codebase. Closes #15628
2015-04-21rollup merge of #24162: pnkfelix/fsk-detect-duplicate-loop-labelsAlex Crichton-0/+13
Check for duplicate loop labels in function bodies. See also: http://internals.rust-lang.org/t/psa-rejecting-duplicate-loop-labels/1833 The change, which we are putting in as future-proofing in preparation for future potential additions to the language (namely labeling arbitrary blocks and using those labels in borrow expressions), means that code like this will start emitting warnings: ```rust fn main() { { 'a: loop { break; } } { 'a: loop { break; } } } ``` To make the above code compile without warnings, write this instead: ```rust fn main() { { 'a: loop { break; } } { 'b: loop { break; } } } ``` Since this change is only introducing a new warnings, this change is non-breaking. Fix #21633
2015-04-21implement rfc 1054: split_whitespace() fn, deprecate words()kwantam-3/+1
For now, words() is left in (but deprecated), and Words is a type alias for struct SplitWhitespace. Also cleaned up references to s.words() throughout codebase. Closes #15628
2015-04-21add notes clarifying introduction of warnings for a pair of run-pass tests.Felix S. Klock II-0/+13
2015-04-21Remove references to `old_{path,io}`Tamir Duberstein-24/+9
2015-04-21Auto merge of #24620 - pczarn:model-lexer-issues, r=cmrbors-29/+0
Fixes #15679 Fixes #15878 Fixes #15882 Closes #15883
2015-04-21Model lexer: Fix remaining issuesPiotr Czarnecki-29/+0
2015-04-19test: Add an assertion to the #16745 testcaseRicho Healey-6/+7
2015-04-18test: Add testcase for #16745Richo Healey-0/+19
2015-04-17Auto merge of #24422 - pnkfelix:typeck-highlevel-before-bodies, r=nikomatsakisbors-0/+43
typeck: Do high-level structural/signature checks before function body checks. This avoids various ICEs, e.g. premature calls to cat_expr that yield the dreaded "cat_expr Errd" ICE. However, it also means that some early error feedback is now not provided. This may be for the best, because the error feedback were were providing in some of those cases were false positives -- it was spurious feedback and a distraction from the real problem. So it is not 100% clear whether we actually want to put this change in or not. I think its a net win, but others might disagree. (Kudos to @arielb1 for suggesting this modification.)
2015-04-17Auto merge of #24420 - pnkfelix:oflo-api, r=alexcrichtonbors-0/+236
Fill in missing parts of Integer overflow API See todo list at #22020
2015-04-17Fix test for 32-bit targets.Felix S. Klock II-2/+2
(The cast from the 64-bit value to isize was using the lower 32-bits, which led to it being treated as a large positive value rather than a smallish negative one. The fix was to use the same bits for the upper- and lower- 32 bits.)
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-14Regression tests for `wrapping_*` operations for integer types.Felix S. Klock II-0/+236
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-14Fallout from this change.Felix S. Klock II-0/+43
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