about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-03-12Move comment describing test caseDouglas Creager-9/+10
2019-03-12Forward `max` and `min` to `max_by` and `min_by` respectivelyTim Vermeulen-4/+2
2019-03-12Remove compiletest comments from testsvarkor-4/+4
2019-03-12Auto merge of #58015 - icefoxen:tryfrom-docs, r=SimonSapinbors-6/+72
Expand docs for `TryFrom` and `TryInto`. The examples are still lacking for now, both for module docs and for methods/impl's. Will be adding those in further pushes. Should hopefully resolve the doc concern in #33417 when finished?
2019-03-12resolve: Simplify import resolution for mixed 2015/2018 edition modeVadim Petrochenkov-111/+11
2019-03-12Add NLL test error outputvarkor-0/+11
2019-03-12Remove invalid ASM testsvarkor-41/+0
These still fail on some architectures.
2019-03-12Ignore WASM on asm testsvarkor-2/+8
2019-03-12Update test for issue #55731varkor-3/+2
2019-03-12Add a test for #27054varkor-0/+6
2019-03-12Add a test for #26577varkor-0/+27
2019-03-12Add a test for #28587varkor-0/+18
2019-03-12Add a test for #22892varkor-0/+17
2019-03-12Add a test for #57781varkor-0/+20
2019-03-12Add a test for #55731varkor-0/+64
2019-03-12Add a test for #46101varkor-0/+18
2019-03-12Add a test for #44255varkor-0/+29
2019-03-12Add a test for #44127varkor-0/+17
2019-03-12Add a test for #26619varkor-0/+36
2019-03-12Add tests for #26448varkor-0/+59
2019-03-12Add a test for #10876varkor-0/+19
2019-03-12Add tests to ensure that Iterator::min and Iterator::max are stableTim Vermeulen-0/+28
2019-03-12Fix commentTim Vermeulen-1/+1
2019-03-12Remove the projection part of select_fold1Tim Vermeulen-56/+21
2019-03-12Fix the bench_max and bench_max_by_key benchmarksTim Vermeulen-2/+2
2019-03-12Remove stabilized feature gate in doctestSimon Sapin-1/+0
2019-03-12Unregress using scalar unions in constants.Oliver Scherer-13/+24
2019-03-12Auto merge of #58330 - GuillaumeGomez:rustdoc-js-non-std, ↵bors-39/+482
r=QuietMisdreavus,Mark-Simulacrum Add rustdoc JS non-std tests @QuietMisdreavus: You asked it, here it is! r? @QuietMisdreavus
2019-03-12ignore higher-ranked WF requirements for trait objectsNiko Matsakis-2/+60
In the `issue-53548` test added in this commit, the `Box<dyn Trait>` type is expanded to `Box<dyn Trait + 'static>`, but the generator "witness" that results is `for<'r> { Box<dyn Trait + 'r> }`. The WF code was encountering an ICE (when debug-assertions were enabled) and an unexpected compilation error (without debug-asserions) when trying to process this `'r` region bound. In particular, to be WF, the region bound must meet the requirements of the trait, and hence we got `for<'r> { 'r: 'static }`. This would ICE because the `Binder` constructor we were using was assering that no higher-ranked regions were involved (because the WF code is supposed to skip those). The error (if debug-asserions were disabled) came because we obviously cannot prove that `'r: 'static` for any region `'r`. Pursuant with our "lazy WF" strategy for higher-ranked regions, the fix is not to require that `for<'r> { 'r: 'static }` holds (this is also analogous to what we would do for higher-ranked regions appearing within the trait in other positions).
2019-03-12add a useful debug printoutNiko Matsakis-0/+2
2019-03-12Document the precomputation algorithm's purposeOliver Scherer-0/+7
2019-03-12Explain the bits of `UndefMask`Oliver Scherer-0/+2
2019-03-12fix typoArtyom Pavlov-1/+1
2019-03-12expandRalf Jung-1/+2
2019-03-12Note that NonNull does not launder shared references for mutationRalf Jung-0/+9
2019-03-12Visit impl Trait for dead_code lintSeo Sanghyeon-1/+44
2019-03-12Auto merge of #58608 - ↵bors-73/+345
pnkfelix:warning-period-for-detecting-nested-impl-trait, r=zoxc Warning period for detecting nested impl trait Here is some proposed code for making a warning period for the new checking of nested impl trait. It undoes some of the corrective effects of PR #57730, by using boolean flags to track parts of the analysis that were previously skipped prior to PRs #57730 and #57981 landing. Cc #57979
2019-03-12Addressed review feedback regarding comment phrasing.Felix S. Klock II-2/+2
2019-03-12Address review commentsVadim Petrochenkov-2/+6
2019-03-12syntax: Optimize `maybe_whole`/`maybe_whole_expr` slightlyVadim Petrochenkov-14/+14
2019-03-12syntax: Better recovery for `$ty::AssocItem` and `ty!()::AssocItem`Vadim Petrochenkov-77/+198
2019-03-12Replace assert with assert_eq for better debuggingSayan Nandan-118/+118
2019-03-11impl FromIterator for Result: Use assert_eq! instead of assert!Chris Gregory-1/+1
2019-03-11Fix RangeBounds documentation to include inclusive operationsChris Gregory-1/+1
2019-03-11Standardize `Range*` documentationChris Gregory-26/+42
This updates the final example in the documentation for the types `Range`, `RangeFrom`, `RangeFull`, `RangeInclusive`, `RangeTo`, `RangeToInclusive`.
2019-03-11Add run-make-fulldeps test caseDouglas Creager-0/+82
2019-03-11Be more discerning on when to attempt suggesting a comma in a macro invocationEsteban Küber-9/+27
2019-03-11Auto merge of #59044 - petrochenkov:uiui, r=davidtwcobors-7548/+7506
Filter away test annotations from UI test output If you worked with UI tests for some time you could notice one issue affecting their readability and also readability of diffs when the tests change. Look at the output of this test. ```rust fn main() { let 1 = 2; //~ ERROR refutable pattern in local binding } ``` ``` error[E0005]: refutable pattern in local binding: `-2147483648i32..=0i32` not covered --> src/main.rs:2:9 | 2 | let 1 = 2; //~ ERROR refutable pattern in local binding | ^ pattern `-2147483648i32..=0i32` not covered error: aborting due to previous error For more information about this error, try `rustc --explain E0005`. ``` You can see that the "refutable pattern in local binding" is duplicated. One instance is the actual error, and the second instance is the expected error annotation. This annotation is useful in the test input, but in the output it clutters the text and makes it harder to see what text refers to actual errors and what is just comments, especially if there are many errors in a single test file. @estebank [reported](https://github.com/rust-lang/rust/pull/57379#discussion_r245523361) using the next trick to avoid the clutter ```rust fn main() { let 1 = 2; //~^ ERROR refutable pattern in local binding } ``` ``` error[E0005]: refutable pattern in local binding: `-2147483648i32..=0i32` not covered --> src/main.rs:2:9 | 2 | let 1 = 2; | ^ pattern `-2147483648i32..=0i32` not covered error: aborting due to previous error For more information about this error, try `rustc --explain E0005`. ``` , i.e. using `//~^` and placing the annotation one line below will remove the annotation from the output. However, this doesn't always works (consider errors with multi-line spans), and shouldn't be necessary in general! `compiletest` could automatically filter away its own annotations from the output instead. This is exactly what this PR does. r? @davidtwco
2019-03-11Update tests that don't run on my platformVadim Petrochenkov-51/+3
2019-03-11Update NLL testsVadim Petrochenkov-794/+794