about summary refs log tree commit diff
path: root/src/test/ui/span/issue-7575.stderr
AgeCommit message (Collapse)AuthorLines
2022-09-20Move some tests to more reasonable directoriesCaio-82/+0
2022-07-07Track implicit `Sized` obligations in type paramsEsteban Küber-1/+1
Suggest adding a `?Sized` bound if appropriate on E0599 by inspecting the HIR Generics. (Fix #98539)
2022-06-22point to type param definition when not finding variant, method and assoc typeTakayuki Maeda-1/+3
use `def_ident_span` , `body_owner_def_id` instead of `in_progress_typeck_results`, `guess_head_span` use `body_id.owner` directly add description to label
2021-09-25Fix incorrect disambiguation suggestion for associated itemsFabian Wolff-7/+7
2021-08-11Modify structured suggestion outputEsteban Küber-3/+3
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-08-09Use smaller spans when suggesting method call disambiguationEsteban Kuber-4/+5
2020-04-14Rename AssocKind::Method to AssocKind::FnRustin-Liu-4/+4
Rename fn_has_self_argument to fn_has_self_parameter Rename AssocItemKind::Method to AssocItemKind::Fn Refine has_no_input_arg Refine has_no_input_arg Revert has_no_input_arg Refine suggestion_descr Move as_def_kind into AssocKind Signed-off-by: Rustin-Liu <rustin.liu@gmail.com> Fix tidy check issue Signed-off-by: Rustin-Liu <rustin.liu@gmail.com>
2020-02-02Do not suggest duplicate boundsYuki Okushi-9/+4
2020-01-08Unify output of "variant not found" errorsEsteban Küber-2/+2
2019-12-11Use structured suggestion for disambiguating method callsEsteban Küber-4/+16
Fix #65635.
2019-07-18Suggest trait bound on type parameter when it is unconstrainedEsteban Küber-3/+5
Given ``` mented on Jan 26, 2015 • trait Foo { fn method(&self) {} } fn call_method<T>(x: &T) { x.method() } ``` suggest constraining `T` with `Foo`.
2019-04-23Update ui testsvarkor-8/+8
2018-12-25Remove licensesMark Rousskov-8/+8
2018-05-29Fix typoEsteban Küber-1/+1
2018-05-28Add primary span labelEsteban Küber-3/+4
2018-05-28Only suggest assoc fn when sure about the typeEsteban Küber-6/+2
2018-05-27Use suggestion for assoc fn called like methodEsteban Küber-8/+11
When encountering an unexisting method for a given trait where an associated function has the same name, suggest using the appropriate syntax, instead of using `help` text. When only one candidate is found, do not call it "candidate #1", just call it "the candidate".
2018-03-14update testsGuillaume Gomez-1/+1
2018-02-26Update UI testsVadim Petrochenkov-9/+9
2018-02-25Update ui testsGuillaume Gomez-0/+1
2017-12-19Use def span for associated function suggestionsEsteban Küber-8/+4
2017-12-14Remove NOTE/HELP annotations from UI testsVadim Petrochenkov-8/+8
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-1/+1
2017-11-15Point to ADT definition when not finding variant, method, assoc typeEsteban Küber-0/+3
2017-08-14Add help for static method invalid useGuillaume Gomez-0/+3
2017-07-08Remove more anonymous trait method parametersVadim Petrochenkov-6/+6
2017-07-02Revert "Change error count messages"Ariel Ben-Yehuda-1/+1
This reverts commit 5558c64f33446225739c1153b43d2e309bb4f50e.
2017-06-04Separate suggestion in a `help` and a `note`Esteban Küber-2/+4
2017-06-02Use multiline note for trait suggestionEsteban Küber-4/+4
2017-05-27Add new error codes and update testsGuillaume Gomez-3/+3
2017-05-24Change error count messagesMichael Kohl-1/+1
See #33525 for details.
2017-04-20Reduce visual clutter of multiline start when possibleEsteban Küber-6/+4
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-01-12E0034: provide disambiguated syntax for candidatesEsteban Küber-0/+67
For a given file ```rust trait A { fn foo(&self) {} } trait B : A { fn foo(&self) {} } fn bar<T: B>(a: &T) { a.foo() } ``` provide the following output ``` error[E0034]: multiple applicable items in scope --> file.rs:6:5 | 6 | a.foo(1) | ^^^ multiple `foo` found | note: candidate #1 is defined in the trait `A` --> file.rs:2:11 | 2 | trait A { fn foo(&self, a: usize) {} } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: to use it here write `A::foo(&a, 1)` instead --> file.rs:6:5 | 6 | a.foo(1) | ^^^ note: candidate #2 is defined in the trait `B` --> file.rs:3:15 | 3 | trait B : A { fn foo(&self, a: usize) {} } | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: to use it here write `B::foo(&a, 1)` instead --> file.rs:6:5 | 6 | a.foo(1) | ^^^ ```