summary refs log tree commit diff
path: root/src/test/ui/missing-items
AgeCommit message (Collapse)AuthorLines
2017-04-20Reduce visual clutter of multiline start when possibleEsteban Küber-3/+2
When a span starts on a line with nothing but whitespace to the left, and there are no other annotations in that line, simplify the visual representation of the span. Go from: ```rust error[E0072]: recursive type `A` has infinite size --> file2.rs:1:1 | 1 | struct A { | _^ starting here... 2 | | a: A, 3 | | } | |_^ ...ending here: recursive type has infinite size | ``` To: ```rust error[E0072]: recursive type `A` has infinite size --> file2.rs:1:1 | 1 | / struct A { 2 | | a: A, 3 | | } | |_^ recursive type has infinite size ``` Remove `starting here...`/`...ending here` labels from all multiline diagnostics.
2017-03-06Fix ICE: don't use `struct_variant` on enumsEsteban Küber-0/+34
Fix #40221 and add unittest.
2017-02-04Add a new ui test and update existing onesCengiz Can-5/+3
2017-02-04Remove extra newlines from expectation filesCengiz Can-1/+0
2017-02-04Improve error message for uninferrable types #38812Cengiz Can-2/+3
2016-12-09Add UI test for missing type parameterKeith Yeung-0/+25
2016-11-22Show multiline spans in full if short enoughEsteban Küber-2/+4
When dealing with multiline spans that span few lines, show the complete span instead of restricting to the first character of the first line. For example, instead of: ``` % ./rustc foo.rs error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied --> foo.rs:13:9 | 13 | foo(1 + bar(x, | ^ trait `{integer}: std::ops::Add<()>` not satisfied | ``` show ``` % ./rustc foo.rs error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied --> foo.rs:13:9 | 13 | foo(1 + bar(x, | ________^ starting here... 14 | | y), | |_____________^ ...ending here: trait `{integer}: std::ops::Add<()>` not satisfied | ```
2016-11-14test: Move missing-items to a ui testAlex Crichton-0/+52
This test is failing on nightly for unknown reasons, and my best guess is a difference in grep versions which is interpreting symbols differently. For now let's just move this to a ui test and hope it fixes nightlies.