about summary refs log tree commit diff
path: root/src/test/compile-fail/issue-2611-4.rs
AgeCommit message (Collapse)AuthorLines
2016-11-01move compile-fail tests to ui testsNiko Matsakis-27/+0
gets more comprehensive coverage in `ui`
2016-11-01update test error messagesNiko Matsakis-1/+1
We've got a new revised message for E0273; just drop back to the error code, since the ui tests check for the full appearance now.
2016-04-05improve the printing of substs and trait-refsAriel Ben-Yehuda-1/+1
2016-03-30Fix fallout in testsJeffrey Seyfried-1/+1
2015-02-18Fallout: tests. As tests frequently elide things, lots of changesNiko Matsakis-2/+2
here. Some of this may have been poorly rebased, though I tried to be careful and preserve the spirit of the test.
2015-01-14Refactor compare_impl_method to use all boundsJared Roesch-1/+2
Refactor compare_impl_method into its own file. Modify the code to stop comparing individual parameter bounds. Instead we now use the predicates list attached to the trait and implementation generics. This ensures consistency even when bounds are declared in different places (i.e on a parameter vs. in a where clause).
2015-01-08Update compile fail tests to use isize.Huon Wilson-1/+1
2014-10-29Rename fail! to panic!Steve Klabnik-1/+1
https://github.com/rust-lang/rfcs/pull/221 The current terminology of "task failure" often causes problems when writing or speaking about code. You often want to talk about the possibility of an operation that returns a Result "failing", but cannot because of the ambiguity with task failure. Instead, you have to speak of "the failing case" or "when the operation does not succeed" or other circumlocutions. Likewise, we use a "Failure" header in rustdoc to describe when operations may fail the task, but it would often be helpful to separate out a section describing the "Err-producing" case. We have been steadily moving away from task failure and toward Result as an error-handling mechanism, so we should optimize our terminology accordingly: Result-producing functions should be easy to describe. To update your code, rename any call to `fail!` to `panic!` instead. Assuming you have not created your own macro named `panic!`, this will work on UNIX based systems: grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g' You can of course also do this by hand. [breaking-change]
2014-08-07Rename `Share` to `Sync`Alex Crichton-1/+1
This leaves the `Share` trait at `std::kinds` via a `#[deprecated]` `pub use` statement, but the `NoShare` struct is no longer part of `std::kinds::marker` due to #12660 (the build cannot bootstrap otherwise). All code referencing the `Share` trait should now reference the `Sync` trait, and all code referencing the `NoShare` type should now reference the `NoSync` type. The functionality and meaning of this trait have not changed, only the naming. Closes #16281 [breaking-change]
2014-03-20Replace Freeze bounds with Share boundsFlavio Percoco-1/+1
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-1/+1
Who doesn't like a massive renaming?
2013-09-30cfail: Remove usage of fmt!Alex Crichton-1/+1
2013-07-17librustc: Remove all uses of the `Copy` bound.Patrick Walton-2/+2
2013-06-28librustc: Rename Const to FreezePatrick Walton-1/+1
2013-05-09Refactor representation of bounds to separate out BuiltinBounds intoNiko Matsakis-1/+1
its own type. Use a bitset to represent built-in bounds. There are several places in the language where only builtin bounds (aka kinds) will be accepted, e.g. on closures, destructor type parameters perhaps, and on trait types.
2013-03-04Remove unused imports throughout src/Alex Crichton-1/+0
2013-03-02librustc: Forbid chained imports and fix the logic for one-level renaming ↵Patrick Walton-1/+1
imports
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-2/+2
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-1/+1
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-1/+1
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-2/+2
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-09-10Convert 'import' to 'use'. Remove 'import' keyword.Brian Anderson-2/+1
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-2/+2
2012-09-07Convert field terminators to commas. Stop parsing semis.Brian Anderson-1/+1
2012-09-07Don't check impl ty params for equality with trait ty paramsTim Chevalier-0/+18
This was too restrictive. We need to check the number of ty params, and that the bounds are equal, but otherwise require_same_types does the job. Closes #2611