summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck
AgeCommit message (Collapse)AuthorLines
2017-01-30Merge ty::TyBox into ty::TyAdtVadim Petrochenkov-6/+6
2016-11-29add hint to fix error for immutable ref in argMikhail Modin-381/+0
2016-11-28rustc: rework stability to be on-demand for type-directed lookup.Eduard Burtescu-3/+3
2016-11-01Improve "Doesn't live long enough" errorMikhail Modin-20/+0
case with different lifetime with spans
2016-10-31Changed most vec! invocations to use square bracesiirelu-20/+20
Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
2016-10-20improve "Doesn't live long enough" errorMikhail Modin-61/+0
2016-10-18Fix some pretty printing testsVadim Petrochenkov-2/+0
2016-09-16fix test falloutAriel Ben-Yehuda-2/+2
2016-09-10Improve shallow `Clone` derivingVadim Petrochenkov-10/+2
2016-09-03Address comments and add requested testsVadim Petrochenkov-0/+309
2016-08-31Update error message for lifetime of borrowed valuesJonathan Turner-34/+12
2016-08-20Update E0503 to the new formatWesley Wiser-0/+2
Fixes #35703 Part of #35233
2016-08-17Move 'doesn't live long enough' errors to labelsJonathan Turner-14/+15
2016-08-05Update error format for E0373trixnz-0/+4
2016-07-31Don't gate methods `Fn(Mut,Once)::call(mut,once)` with feature ↵Vadim Petrochenkov-4/+0
`unboxed_closures` They are already gated with feature `fn_traits`
2016-06-09implement RFC495 semantics for slice patternsAriel Ben-Yehuda-17/+18
non-MIR translation is still not supported for these and will happily ICE. This is a [breaking-change] for many uses of slice_patterns.
2016-05-25refactor autoderef to avoid registering obligationsAriel Ben-Yehuda-1/+1
Refactor `FnCtxt::autoderef` to use an external iterator and to not register any obligation from the main autoderef loop, but rather to register them after (and if) the loop successfully completes. Fixes #24819 Fixes #25801 Fixes #27631 Fixes #31258 Fixes #31964 Fixes #32320 Fixes #33515 Fixes #33755
2016-05-20Rollup merge of #33676 - rkruppe:e0509-exact-words, r=sanxiynGuillaume Gomez-9/+11
Reword the short diagnostic for E0509 Saying that a type *implements* a trait is much more idiomatic than saying it *defines* the trait.
2016-05-19Rollup merge of #33712 - jseyfried:fix_expanded_expr_span_bug, r=nrcManish Goregaokar-1/+2
Fix bug in macro expression spans Fix a bug in macro expression spans. r? @nrc
2016-05-19Reword the short diagnostic for E0509Robin Kruppe-9/+11
Saying that a type *implements* a trait is much more idiomatic than saying it *defines* the trait.
2016-05-18Fix bug in macro expression spansJeffrey Seyfried-1/+2
2016-05-17Improve a few errors and fix #33366Jonathan Turner-22/+22
2016-05-12Update errors to use new error formatJonathan Turner-16/+42
2016-05-02update test cases to reflect new messagesNiko Matsakis-23/+44
2016-03-16Stop ignoring expected note/help messages in compiletest suite.Corey Farwell-0/+25
Original issue: https://github.com/rust-lang/rust/issues/21195 Relevant PR: https://github.com/rust-lang/rust/pull/30778 Prior to this commit, if a compiletest testcase included the text "HELP:" or "NOTE:" (note the colons), then it would indicate to the compiletest suite that we should verify "help" and "note" expected messages. This commit updates this check to also check "HELP" and "NOTE" (not the absense of colons) so that we always verify "help" and "note" expected messages.
2016-02-24Move the borrowck run-pass/compile-fail tests into their own directoriesNiko Matsakis-0/+5577
as a test.