about summary refs log tree commit diff
path: root/src/test/compile-fail/object-safety-generics.rs
AgeCommit message (Collapse)AuthorLines
2017-12-14Move compile-fail tests with NOTE/HELP annotations to UIVadim Petrochenkov-47/+0
2016-08-09Update E0038 to the new error formatPanashe M. Fundira-1/+3
2016-03-16Stop ignoring expected note/help messages in compiletest suite.Corey Farwell-0/+1
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-01-16Detect cycles and specialize error reporting for Sized. It is importantNiko Matsakis-0/+1
to get the `Sized` error usable, since that hits new users frequently. Further work is needed for the error reporting for non-Sized cycle cases; those currently just fallback to the old path. Also adjust tests.
2015-12-18Make RFC 1214 warnings into errors, and rip out the "warn or err"Niko Matsakis-4/+1
associated machinery. Future such attempts should go through lints anyhow. There is a fair amount of fallout in the compile-fail tests, as WF checking now occurs earlier in the process.
2015-08-12Fallout in tests -- we now report an error if you even reference a typeNiko Matsakis-2/+3
`&Foo` where `Foo` is a trait that is not object-safe
2015-02-23Extend object safety so that methods with Sized:Self are exempt.Niko Matsakis-1/+15
2015-01-02Refactor object-safety into its own (cached) module so that we canNiko Matsakis-0/+31
check it more easily; also extend object safety to cover sized types as well as static methods. This makes it sufficient so that we can always ensure that `Foo : Foo` holds for any trait `Foo`.