summary refs log tree commit diff
path: root/src/test/ui/missing-items
AgeCommit message (Collapse)AuthorLines
2018-03-14Add empty main() to tests where it is missing.Eric Huss-5/+4
2018-03-14Add crate name to "main function not found" error message.Eric Huss-1/+1
Fixes #44798 and rust-lang/cargo#4948.
2018-03-14update testsGuillaume Gomez-4/+4
2018-02-26Update UI testsVadim Petrochenkov-3/+3
2018-02-25Update ui testsGuillaume Gomez-0/+4
2017-12-19Point at def span in "missing in impl" errorEsteban Küber-3/+2
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-6/+6
2017-07-06remove associated_consts feature gateSean McArthur-5/+3
2017-07-02report the total number of errors on compilation failureAriel Ben-Yehuda-1/+1
Prior to this PR, when we aborted because a "critical pass" failed, we displayed the number of errors from that critical pass. While that's the number of errors that caused compilation to abort in *that place*, that's not what people really want to know. Instead, always report the total number of errors, and don't bother to track the number of errors from the last pass that failed. This changes the compiler driver API to handle errors more smoothly, and therefore is a compiler-api-[breaking-change]. Fixes #42793.
2017-07-02Revert "Change error count messages"Ariel Ben-Yehuda-3/+3
This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e.
2017-05-30Add new error codeGuillaume Gomez-1/+1
2017-05-24Change error count messagesMichael Kohl-3/+3
See #33525 for details.
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.