about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-34334.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-38/+0
2022-12-13Avoid rendering empty annotationsOli Scherer-2/+0
2022-12-13Make some diagnostics not depend on the source of what they reference being ↵Oli Scherer-3/+2
available
2022-12-11Point at method call when it is the source of the bound errorEsteban Küber-4/+2
2022-12-11Use `with_forced_trimmed_paths`Esteban Küber-2/+2
2022-12-11Only point at methods that might be relevantEsteban Küber-2/+2
2022-12-11Remove mention of "assoc type" in label as it is already in the `note` messageEsteban Küber-2/+2
2022-12-11Account for method call chains split across multiple bindingsEsteban Küber-4/+6
2022-12-11Mention only assoc types changesEsteban Küber-3/+3
2022-12-11Provide associated type information in method chainsMichael Goulet-0/+8
When encountering an unmet obligation that affects a method chain, like in iterator chains where one of the links has the wrong associated type, we point at every method call and mention their evaluated associated type at that point to give context to the user of where expectations diverged from the code as written. ``` note: the expression is of type `Map<std::slice::Iter<'_, {integer}>, [closure@$DIR/invalid-iterator-chain.rs:12:18: 12:21]>` --> $DIR/invalid-iterator-chain.rs:12:14 | LL | vec![0, 1] | ---------- this expression has type `Vec<{integer}>` LL | .iter() | ------ associated type `std::iter::Iterator::Item` is `&{integer}` here LL | .map(|x| { x; }) | ^^^^^^^^^^^^^^^ associated type `std::iter::Iterator::Item` is `()` here ```
2022-12-10Introduce `with_forced_trimmed_paths`Esteban Küber-1/+1
2022-08-21Rework point-at-argMichael Goulet-2/+4
2022-04-04Mention implementers of unsatisfied traitEsteban Kuber-0/+1
When encountering an unsatisfied trait bound, if there are no other suggestions, mention all the types that *do* implement that trait: ``` error[E0277]: the trait bound `f32: Foo` is not satisfied --> $DIR/impl_wf.rs:22:6 | LL | impl Baz<f32> for f32 { } | ^^^^^^^^ the trait `Foo` is not implemented for `f32` | = help: the following other types implement trait `Foo`: Option<T> i32 str note: required by a bound in `Baz` --> $DIR/impl_wf.rs:18:31 | LL | trait Baz<U: ?Sized> where U: Foo { } | ^^^ required by this bound in `Baz` ``` Mention implementers of traits in `ImplObligation`s. Do not mention other `impl`s for closures, ranges and `?`.
2022-03-27Provide suggestion for missing `>` in a type parameter listEsteban Kuber-0/+5
When encountering an inproperly terminated type parameter list, provide a suggestion to close it after the last non-constraint type parameter that was successfully parsed. Fix #94058.
2021-11-20Point at source of trait bound obligations in more placesEsteban Kuber-0/+5
Be more thorough in using `ItemObligation` and `BindingObligation` when evaluating obligations so that we can point at trait bounds that introduced unfulfilled obligations. We no longer incorrectly point at unrelated trait bounds (`substs-ppaux.verbose.stderr`). In particular, we now point at trait bounds on method calls. We no longer point at "obvious" obligation sources (we no longer have a note pointing at `Trait` saying "required by a bound in `Trait`", like in `associated-types-no-suitable-supertrait*`). Address part of #89418.
2021-01-22add and update testsb-naber-5/+6
2020-11-25add testsb-naber-3/+3
2020-09-02pretty: trim paths of unique symbolsDan Aloni-3/+3
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-07-14Handle case of incomplete local ty more gracefullyEsteban Küber-45/+9
When encountering a local binding with a type that isn't completed, the parser will reach a `=` token. When this happen, consider the type "complete" as far as the parser is concerned to avoid further errors being emitted by parse recovery logic.
2020-07-14Suggest struct pat on incorrect unit or tuple patEsteban Küber-1/+1
When encountering a unit or tuple pattern for a struct-like item, suggest using the correct pattern. Use `insert_field_names_local` when evaluating variants and store field names even when the list is empty in order to produce accurate structured suggestions.
2020-02-06rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros.Eduard-Mihai Burtescu-1/+1
2020-02-06rustc: rename -Zexternal-macro-backtrace to -Zmacro-backtrace.Eduard-Mihai Burtescu-1/+1
2020-01-08Unify output of "variant not found" errorsEsteban Küber-1/+1
2019-12-23Add span information to `ExprKind::Assign`varkor-2/+2
2019-12-23Improve invalid assignment errorvarkor-2/+4
2019-11-18Surround types with backticks in type errorsEsteban Küber-1/+1
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-1/+1
2019-11-06Remove "here" from "expected one of X here"Esteban Küber-1/+1
2019-09-08Give method not found a primary span labelEsteban Küber-1/+1
2019-08-09Recover parser from `foo(_, _)`Esteban Küber-2/+8
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+1
2019-03-28Recover from parse error in tuple syntaxEsteban Küber-3/+40
2019-03-11Update testsVadim Petrochenkov-1/+1
2018-12-25Remove licensesMark Rousskov-1/+1
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+10