summary refs log tree commit diff
path: root/src/test/ui/span
AgeCommit message (Collapse)AuthorLines
2019-06-03Update tests for changes to cannot move errorsMatthew Jasper-3/+3
2019-06-03Auto merge of #61331 - estebank:fn-arg-parse-recovery, r=varkorbors-0/+20
Recover gracefully from argument with missing type or param name
2019-06-01review comment: tweak wordingEsteban Küber-3/+3
2019-05-31Tweak wordingEsteban Küber-1/+1
2019-05-31Alternative wording for inference failureEsteban Küber-3/+3
2019-05-31Add more detail to type inference errorEsteban Küber-2/+2
When encountering code where type inference fails, add more actionable information: ``` fn main() { let foo = Vec::new(); } ``` ``` error[E0282]: type annotations needed for `std::vec::Vec<_>` --> $DIR/vector-no-ann.rs:2:16 | LL | let foo = Vec::new(); | --- ^^^^^^^^ cannot infer type for `T` | | | consider giving `foo` the type `std::vec::Vec<_>` with the type parameter `T` specified ``` We still need to modify type printing to optionally accept a `TypeVariableTable` in order to properly print `std::vec::Vec<T>`. CC #25633.
2019-05-30Recover gracefully from argument with missing type or param nameEsteban Küber-0/+20
2019-05-29Update ui test suite to use dynmemoryruins-22/+22
2019-05-17Account for &String + StringEsteban Küber-2/+2
2019-05-16review commentsEsteban Küber-10/+10
2019-05-16Fix binop spanEsteban Küber-12/+9
2019-05-16Handle more string addition cases with appropriate suggestionsEsteban Küber-2/+161
2019-04-23Update ui testsvarkor-9/+9
2019-04-23Remove unnecessary ignore-tidy-linelengthvarkor-4/+0
2019-04-22Remove double trailing newlinesvarkor-2/+0
2019-04-22update tests for migrate mode by defaultMatthew Jasper-1725/+533
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-13/+10
2019-04-11Reword tracking issue noteEsteban Küber-4/+4
2019-04-10Tweak unstable diagnostic outputEsteban Küber-4/+8
2019-04-05Fix expectations on some ui tests involving FnOnce.Masaki Hara-4/+4
2019-03-29Rollup merge of #59473 - estebank:borrow-sugg-inside-macro, r=davidtwcoMazdak Farrokhzad-4/+1
Do not emit incorrect borrow suggestion involving macros and fix overlapping multiline spans Fix #58298.
2019-03-29Rollup merge of #59467 - hgallagher1993:local_branch, r=estebankMazdak Farrokhzad-6/+15
Better diagnostic for binary operation on BoxedValues Fixes #59458
2019-03-28Add check for when left and right overlap and change span for explanation to ↵hgallagher1993-4/+3
point at operator
2019-03-27Do not suggest borrowing when the span comes from a macroEsteban Küber-4/+1
2019-03-27Better diagnostic for binary operation on BoxedValueshgallagher1993-6/+16
2019-03-25When moving out of a for loop head, suggest borrowing it in nll modeEsteban Küber-1/+0
2019-03-11Update NLL testsVadim Petrochenkov-37/+37
2019-03-11Update testsVadim Petrochenkov-113/+113
2019-02-20Fix erroneous loop diagnostic in nllSantiago Pastorino-5/+5
This commit fixes the logic of detecting when a use happen in a later iteration of where a borrow was defined Fixes #53773
2019-02-11Use hidden suggestions for unused imports lintEsteban Küber-4/+0
2019-02-08unused_imports: update testsPietro Albini-0/+4
2019-01-28Unused variable suggestions on all patterns.David Wood-1/+1
This commit extends existing suggestions to prefix unused variable bindings in match arms with an underscore so that it applies to all patterns in a match arm.
2019-01-19Suggest usage of angle bracketsEsteban Küber-4/+4
2019-01-14Rollup merge of #57477 - euclio:clarify-lev-suggestion, r=zackmdavisMazdak Farrokhzad-2/+2
clarify resolve typo suggestion Include the kind of the binding that we're suggesting, and use a structured suggestion. Fixes #53445.
2019-01-09clarify resolve typo suggestionAndy Russell-2/+2
Include the kind of the binding that we're suggesting, and use a structured suggestion.
2019-01-08improve non_snake_case diagnosticsAndy Russell-4/+4
Use a structured suggestion and tighten the span to just the identifier.
2019-01-06Make sure feature gate errors are recoverable (take 2)Vadim Petrochenkov-3/+3
2018-12-30Remove unused nll debug flagsMatthew Jasper-14/+9
2018-12-27Fix rebase and more CI failuresVadim Petrochenkov-7/+8
2018-12-27Do not abort compilation if expansion produces errorsVadim Petrochenkov-11/+24
Fix a number of uncovered deficiencies in diagnostics
2018-12-25Remove licensesMark Rousskov-1220/+317
2018-12-20Refactor and add comments to code in receiver_is_validMichael Hewson-3/+3
also updated some error messages removed the code manually checking for `receiver_ty: Deref<Target=self_ty>`, in favour of using autoderef but only doing one iteration. This will cause error messages to be more consistent. Before, a "mismatched method receiver" error would be emitted when `receiver_ty` was valid except for a lifetime parameter, but only when `feature(arbitrary_self_types)` was enabled, and without the feature flag the error would be "uncoercible receiver". Now it emits "mismatched method receiver" in both cases.
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-11-18resolve: Avoid sentence breaks in diagnosticsVadim Petrochenkov-1/+1
2018-11-18resolve: More precise determinacy tracking during import/macro resolutionVadim Petrochenkov-6/+6
2018-11-07Removed `#[rustc_error]` from tests that are all `// compile-pass`.Felix S. Klock II-16/+3
I also added `// skip-codegen` to each one, to address potential concerns that this change would otherwise slow down our test suite spending time generating code for files that are really just meant to be checks of compiler diagnostics. (However, I will say: My preference is to not use `// skip-codegen` if one can avoid it. We can use all the testing of how we drive LLVM that we can get...) (Updated post rebase.)
2018-11-05Make `ui/span/borrowck-borrow-overloaded-auto-deref-mut.rs` robust w.r.t. NLL.Felix S. Klock II-4/+29
2018-10-21Auto merge of #55236 - petrochenkov:pfail, r=davidtwcobors-53/+0
Move parse-fail tests to UI cc https://github.com/rust-lang/rust/issues/53353 r? @davidtwco
2018-10-21Use new region infer errors for explaining borrowsMatthew Jasper-6/+3
This gives at least some explanation for why a borrow is expected to last for a certain free region. Also: * Reports E0373: "closure may outlive the current function" with NLL. * Special cases the case of returning a reference to (or value referencing) a local variable or temporary (E0515). * Special case assigning a reference to a local variable in a closure to a captured variable.
2018-10-21Move more parsing tests to ui/parserVadim Petrochenkov-53/+0