about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2018-06-10create separate dep-nodes for predicates_of and explicit_predicates_oftoidiu-0/+22
2018-06-10Auto merge of #51320 - tmccombs:step-by, r=SimonSapinbors-3/+0
Stabilize Iterator::step_by Fixes #27741
2018-06-09Auto merge of #51068 - Crazycolorz5:pluseqsplitting, r=petrochenkovbors-0/+20
parser: Split `+=` into `+` and `=` where `+` is explicitly requested (such as generics) Added functions in tokens to check whether a token leads with `+`. Used them when parsing to allow for token splitting of `+=` into `+` and `=`. Fixes https://github.com/rust-lang/rust/issues/47856
2018-06-09Auto merge of #51400 - xfix:patch-6, r=kennytmbors-16/+19
Increase number of usages of `u8` in weird expressions u8 test
2018-06-09Auto merge of #51042 - matthewjasper:reenable-trivial-bounds, r=nikomatsakisbors-40/+240
Re-enable trivial bounds cc #50825 Remove implementations from global bounds in winnowing when there is ambiguity. This results in the reverse of #24066 happening sometimes. I'm not sure if anything can be done about that though. cc #48214 r? @nikomatsakis
2018-06-08Auto merge of #51448 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-263/+704
Rollup of 13 pull requests Successful merges: - #50143 (Add deprecation lint for duplicated `macro_export`s) - #51099 (Fix Issue 38777) - #51276 (Dedup auto traits in trait objects.) - #51298 (Stabilize unit tests with non-`()` return type) - #51360 (Suggest parentheses when a struct literal needs them) - #51391 (Use spans pointing at the inside of a rustdoc attribute) - #51394 (Use scope tree depths to speed up `nearest_common_ancestor`.) - #51396 (Make the size of Option<NonZero*> a documented guarantee.) - #51401 (Warn on `repr` without hints) - #51412 (Avoid useless Vec clones in pending_obligations().) - #51427 (compiletest: autoremove duplicate .nll.* files (#51204)) - #51436 (Do not require stage 2 compiler for rustdoc) - #51437 (rustbuild: generate full list of dependencies for metadata) Failed merges:
2018-06-08Rollup merge of #51401 - estebank:warn-repr, r=cramertjMark Rousskov-202/+318
Warn on `repr` without hints Fix #51376.
2018-06-08Rollup merge of #51391 - estebank:docspan, r=GuillaumeGomezMark Rousskov-27/+131
Use spans pointing at the inside of a rustdoc attribute Follow up to #51111. Point to the link in a rustdoc attribute where intralink resolution failed, instead of the full rustdoc attribute's span. r? @GuillaumeGomez cc @kennytm
2018-06-08Rollup merge of #51360 - estebank:braces-around-literal-structs, r=nikomatsakisMark Rousskov-2/+60
Suggest parentheses when a struct literal needs them When writing a struct literal in an expression that expects a block to be started afterwards (like an `if` statement), do not suggest using the same struct literal: ``` did you mean `S { /* fields * /}`? ``` Instead, suggest surrounding the expression with parentheses: ``` did you mean `(S { /* fields * /})`? ``` Fix #47360, #50090. Leaving #42982 open to come back to this problem with a better solution.
2018-06-08Rollup merge of #51298 - Dylan-DPC:stabilise/termination-test, r=nikomatsakisMark Rousskov-28/+2
Stabilize unit tests with non-`()` return type References #48854
2018-06-08Rollup merge of #51276 - Havvy:dyn-trait-send-send, r=nikomatsakisMark Rousskov-0/+94
Dedup auto traits in trait objects. Fixes #47010 Note that the test file `run-pass/trait-object-auto-dedup.rs` passes before and after this change. It's the `ui` test that changed from compiling to not compiling. Which does make this a breaking change, but I cannot imagine anybody actually being broken by it.
2018-06-08Rollup merge of #51099 - Crazycolorz5:expectedcloseparen, r=estebankMark Rousskov-12/+54
Fix Issue 38777 When looking through for a closing bracket in the loop condition, adds them to expecteds. https://github.com/rust-lang/rust/issues/38777
2018-06-08Rollup merge of #50143 - petrochenkov:mexuniq, r=nikomatsakisMark Rousskov-2/+55
Add deprecation lint for duplicated `macro_export`s cc https://github.com/rust-lang/rust/issues/35896#issuecomment-381370556
2018-06-08Built, corrected, and run tests. Added expected stderr files.Crazycolorz5-1/+43
2018-06-08Auto merge of #51247 - ↵bors-38/+68
pnkfelix:issue-51190-report-type-moved-from-behind-borrow, r=nikomatsakis NLL: report type moved from behind borrow of array/slice When NLL has illegal move due to borrowed content in an array or slice, provide feedback about why the move wasn't a copy. Drive by: While comparing the resulting `.nll.stderr` files to their old borrowck variants, I noticed that the test for borrowck-vec-pattern-nesting.rs was not signaling some errors under NLL due to the test assuming lexical lifetimes. So I fixed that too. Fix #51190
2018-06-08Normalize associated types when checking global boundsMatthew Jasper-0/+40
2018-06-08Fix a typoMatthew Jasper-2/+2
2018-06-08 Test that object bounds are preferred over global where clause boundsMatthew Jasper-0/+28
2018-06-08Add tests for associated types and inconsistent boundsMatthew Jasper-0/+166
2018-06-08Reenable trivial boundsMatthew Jasper-38/+4
Removes extra global bounds at the winnowing stage rather than when normalizing the param_env. This avoids breaking inference when there is a global bound.
2018-06-08Rollup merge of #51417 - pietroalbini:revert-49719, r=nikomatsakiskennytm-50/+89
Revert #49719 This also needs to be backported into beta. Fixes #51416. r? @nikomatsakis
2018-06-08Rollup merge of #51389 - ollie27:rustdoc_cross_macro_src_stab, r=QuietMisdreavuskennytm-0/+49
rustdoc: Fix missing stability and src links for inlined external macros Fixes #38951 r? @QuietMisdreavus
2018-06-08Rollup merge of #51368 - varkor:panic_implementation-closures, r=eddybkennytm-0/+21
Fix the use of closures within #[panic_implementation] Fixes #51365.
2018-06-08Rollup merge of #51283 - ↵kennytm-0/+84
kennytm:fix-51279-preempt-the-warning-song-and-dance, r=nikomatsakis Deny #[cfg] and #[cfg_attr] on generic parameters. Fix #51279. Attributes on generic parameters are not expanded, meaning `#[cfg]`, `#[cfg_attr]` and attribute proc macros are entirely ignored on them. This PR makes using the first two attributes an error, because if they are correctly expanded will affect the AST and change code behavior. I'm beta-nominating this, because generic parameter attributes are stabilizing in 1.27, and if we did not reserve their usage, we may never be able to repurpose the meaning of these attributes in the Rust 2015 edition.
2018-06-08Rollup merge of #51186 - pnkfelix:remove-unneccessary-nll-stderr-files, ↵kennytm-45/+0
r=oli-obk Remove two redundant .nll.stderr files It turns out that the diagnostics generated from NLL for these cases are now exactly the same as that produced by AST borrowck, and thus we can just fallback on those `.stderr` files that already exist for AST-borrowck. Bravo! (it is a good idea to remove these files, because it slightly reduces the amount of time humans will spend reviewing the .nll.stderr fileset...) ((it *might* be worthwhile trying to change the `compiletest` code to even issue a warning when two such files have equivalent contents... but I am not going so far as to try to implement that right now...))
2018-06-07Revert "Auto merge of #49719 - mark-i-m:no_sep, r=petrochenkov"Pietro Albini-50/+89
This reverts commit d6ba1b9b021c408fcad60ee52acf8af5e1b2eb00, reversing changes made to 8de5353f75dcde04abe947e0560dc5edd861cf3a.
2018-06-06Do not account for inner/outer attrEsteban Küber-2/+2
2018-06-06Use consistent span for repr attr suggestionEsteban Küber-5/+6
2018-06-06Auto merge of #50699 - Zoxc:blocking-queries, r=mwbors-24/+25
Blocking Rayon queries r? @michaelwoerister
2018-06-06Change repr documentation linkEsteban Küber-8/+8
2018-06-06Add `transparent` as valid `repr` hintEsteban Küber-8/+8
2018-06-06Turn warning into lintEsteban Küber-214/+227
2018-06-06Update the expected error output to reflect changes in this PR.Felix S. Klock II-38/+63
2018-06-06Drive-by: Make assignment conflict tests in borrowck-vec-pattern-nesting.rs ↵Felix S. Klock II-0/+5
robust for NLL.
2018-06-06It turns out that the diagnostics generated from NLL for these cases are now ↵Felix S. Klock II-45/+0
exactly the same as that produced by AST borrowck. Bravo!
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-06Expand output and suggestions, fix testsEsteban Küber-142/+244
2018-06-06Add Future and task system to the standard libraryTaylor Cramer-0/+95
2018-06-06Increase number of usages of `u8` in weird expressions u8 testKonrad Borowski-16/+19
2018-06-06When unable to sinthesize link span, fallback to previous behaviorEsteban Küber-15/+114
2018-06-06Use spans pointing at the inside of a rustdoc attributeEsteban Küber-33/+38
2018-06-06fix stderrsdylan_DPC-2/+2
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-06rustdoc: Fix missing stability and src links for inlined external macrosOliver Middleton-0/+49
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