about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2018-06-06Auto merge of #50699 - Zoxc:blocking-queries, r=mwbors-24/+25
Blocking Rayon queries r? @michaelwoerister
2018-06-06Auto merge of #51263 - cramertj:futures-in-core, r=aturonbors-0/+95
Add Future and task system to the standard library This adds preliminary versions of the `std::future` and `std::task` modules in order to unblock development of async/await (https://github.com/rust-lang/rust/issues/50547). These shouldn't be considered as final forms of these libraries-- design questions about the libraries should be left on https://github.com/rust-lang/rfcs/pull/2418. Once that RFC (or a successor) is merged, these APIs will be adjusted as necessary. r? @aturon
2018-06-06Add Future and task system to the standard libraryTaylor Cramer-0/+95
2018-06-06Auto merge of #51201 - estebank:dotdot, r=petrochenkovbors-9/+34
Accept `..` in incorrect position to avoid further errors We currently give a specific message when encountering a `..` anywhere other than the end of a pattern. Modify the parser to accept it (while still emitting the error) so that we don't also trigger "missing fields in pattern" errors afterwards. Add suggestions to either remove trailing `,` or moving the `..` to the end. Follow up to #49268.
2018-06-06Create thread-poolJohn Kåre Alsaker-24/+25
2018-06-06Auto merge of #51316 - oli-obk:const_err, r=nikomatsakisbors-163/+593
Refactor the const eval diagnostic API * no longer report "const eval error" for things that have typeck errors * errors and lints have saner spans and messages * unified the diagnostic logic (const eval errors were slightly different depending on where they were reported, and there was also code duplication between the different reporters) * report errors if an erroneous constant is used inside a promoted (fixes most of #50814)
2018-06-06Auto merge of #50844 - bjorn3:adhoc_compiller_calls, r=nrcbors-12/+15
Add AdHocCalls and pass self to build_controller as Box<Self> This makes it easier to write custom drivers.
2018-06-05Rebase falloutOliver Schneider-3/+12
2018-06-05Satisfy the untiring tidyOliver Schneider-2/+2
2018-06-05Properly report transitive errorsOliver Schneider-9/+208
2018-06-05Referring to erroneous constants in promoteds must abort the buildOliver Schneider-31/+277
2018-06-05Refactor the const eval diagnostic APIOliver Schneider-131/+107
2018-06-05Add AdHocCalls and pass self to build_controller as Box<Self>bjorn3-12/+15
2018-06-05Account for comma in suggestionEsteban Küber-3/+3
2018-06-05Improve diagnostics for incorrect `..` usageEsteban Küber-3/+35
When using `..` somewhere other than the end, parse the rest of the pattern correctly while still emitting an error. Add suggestions to either remove trailing `,` or moving the `..` to the end.
2018-06-05Accept `..` in incorrect position to avoid further errorsEsteban Küber-8/+1
We currently give a specific message when encountering a `..` anywhere other than the end of a pattern. Modify the parser to accept it (while still emitting the error) so that we don't also trigger "missing fields in pattern" errors afterwards.
2018-06-05Rollup merge of #51358 - barzamin:tests-39963, r=oli-obkMark Simulacrum-0/+29
Tests that #39963 is fixed on MIR borrowck As title. fixes #39963
2018-06-05Rollup merge of #51343 - glaubitz:sparc64-tests, r=shepmasterMark Simulacrum-8/+29
test: Ignore some problematic tests on sparc and sparc64 This updates the list of tests which can be safely ignored on sparc and sparc64.
2018-06-05Rollup merge of #51308 - fanzier:const-prop-array-bounds-check, r=oli-obkMark Simulacrum-12/+28
Check array indices in constant propagation Previously, uses of constant weren't correctly propagated. This fixes #48920. r? @oli-obk because you suggested it
2018-06-05Rollup merge of #51256 - GuillaumeGomez:fix-rustdoc-crate-name, ↵Mark Simulacrum-0/+13
r=QuietMisdreavus Fix crate-name option in rustdoc Fixes #51229. r? @QuietMisdreavus
2018-06-05Auto merge of #51140 - GuillaumeGomez:doc-keyword, r=QuietMisdreavusbors-0/+48
rustdoc: introduce the #[doc(keyword="")] attribute for documenting keywords Part of #34601. r? @QuietMisdreavus
2018-06-05Fix testsFabian Zaiser-2/+7
2018-06-05Fix tidyFabian Zaiser-1/+1
2018-06-05Propagate uses of constants correctly so that array index checks workFabian Zaiser-10/+21
2018-06-05Auto merge of #51242 - ytausky:mut-ref, r=estebankbors-2/+47
Suggest not mutably borrowing a mutable reference This PR would (hopefully) solve #45392. I deviated a bit from @estebank's instructions since the error span only included the borrowed expression (e.g. the `b` in `&mut b`). I also didn't check the mutability of the local binding, since this whole case is concerned with an immutable local. I can see two outstanding questions: 1. `note_immutability_blame` is called in two places, but I only have one test case. I think it covers the call in `report_bckerror`, but I'm not sure how to trigger the call from `report_aliasability_violation`. 2. There is one failing test, where the local binding is `self: &mut Self`. I'm not entirely sure what the correct output should be, but I think the new message should also apply. Unfortunately, since this parameter is parsed differently, its `let_span` covers both the pattern and the type, leading to a wrong suggestion text. I'm not sure how to correctly identify this case.
2018-06-04tests that #39963 is fixed on MIR borrowckErin Moon-0/+29
2018-06-04Auto merge of #51307 - oli-obk:miri_fixes, r=eddybbors-0/+41
ScalarPairs are offset==0 field + other non-zst field r? @eddyb fixes #51300
2018-06-04test: Ignore some problematic tests on sparc and sparc64John Paul Adrian Glaubitz-8/+29
2018-06-04Fix crate-name option in rustdocGuillaume Gomez-0/+13
2018-06-04Auto merge of #51328 - oli-obk:no_union_promotion, r=eddybbors-48/+49
Do not promote union field accesses r? @eddyb technically a breaking change, but the code errored on the previous stable and produces UB + a warning on the current stable. I don't think we need a crater run in that case.
2018-06-04Add missing ui testsGuillaume Gomez-0/+24
2018-06-04Add even more testsGuillaume Gomez-0/+3
2018-06-04Put doc keyword behind feature flagGuillaume Gomez-0/+2
2018-06-04Add doc keyword supportGuillaume Gomez-0/+19
2018-06-04Auto merge of #51334 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-0/+32
Rollup of 6 pull requests Successful merges: - #51288 (Remove rustdoc-specific is_import field from HIR) - #51299 (const fn integer operations) - #51317 (Allow enabling incremental via config.toml) - #51323 (Generate br for all two target SwitchInts) - #51326 (Various minor slice iterator cleanups) - #51329 (Remove the unused `-Z trans-time-graph` flag.) Failed merges:
2018-06-03Rollup merge of #51299 - faern:const-int-ops, r=oli-obkMark Simulacrum-0/+32
const fn integer operations A follow up to #51171 Fixes #51267 Makes a lot of the integer methods (`swap_bytes`, `count_ones` etc) `const fn`s. See #51267 for a discussion about why this is wanted and the solution used.
2018-06-03Auto merge of #51111 - kennytm:intralink-resolution-failure-line-numbers, ↵bors-1/+36
r=GuillaumeGomez Point to the rustdoc attribute where intralink resolution failed.
2018-06-03turn run-make test into a run-make-fulldeps testJorge Aparicio-0/+0
2018-06-03Deduplicate and fix a testOliver Schneider-48/+11
2018-06-03Do not promote union field accessesOliver Schneider-0/+38
2018-06-03add more testsJorge Aparicio-0/+115
2018-06-03reject `fn panic_impl<T>(_: &PanicInfo) -> !`Jorge Aparicio-0/+23
2018-06-03implement #[panic_implementation]Jorge Aparicio-9/+159
2018-06-03Show which line the link is coming from.kennytm-0/+15
2018-06-03Ignore i128 test on asmjsLinus Färnstrand-4/+9
2018-06-03Point to the rustdoc attribute where intralink resolution failed.kennytm-1/+21
2018-06-03Auto merge of #51319 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-5/+5
Rollup of 6 pull requests Successful merges: - #51143 (Specify that packed types must derive, not implement, Copy) - #51226 (Make Layout's align a NonZeroUsize) - #51297 (Fix run button style) - #51306 (impl Default for &mut str) - #51312 (Clarify the difference between get_mut and into_mut for OccupiedEntry) - #51313 (use type name in E0599 enum variant suggestion) Failed merges:
2018-06-02Rollup merge of #51313 - euclio:variant-name-suggestion-fix, r=oli-obkMark Simulacrum-2/+2
use type name in E0599 enum variant suggestion Also, rename the variable from "type_str" to "item_kind" to avoid the ambiguity that caused this bug.
2018-06-02Rollup merge of #51143 - Mark-Simulacrum:issue-50826, r=cramertjMark Simulacrum-3/+3
Specify that packed types must derive, not implement, Copy
2018-06-03Pass literal through black_boxLinus Färnstrand-4/+8