about summary refs log tree commit diff
path: root/src/test/ui/issues/issue-35677.stderr
AgeCommit message (Collapse)AuthorLines
2021-11-20Move tests for missing trait bounds to their own directoryEsteban Kuber-17/+0
2021-11-20Suggest constraining `fn` type params when appropriateEsteban Kuber-1/+5
2021-01-26Avoid describing a method as 'not found' when bounds are unsatisfiedAaron Hill-3/+3
Fixes #76267 When there is a single applicable method candidate, but its trait bounds are not satisfied, we avoid saying that the method is "not found". Insted, we update the error message to directly mention which bounds are not satisfied, rather than mentioning them in a note.
2020-09-02pretty: trim paths of unique symbolsDan Aloni-4/+4
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-02-28Add more context to E0599 errorsEsteban Küber-2/+2
Point at the intermediary unfullfilled trait bounds.
2020-01-08Unify output of "variant not found" errorsEsteban Küber-1/+1
2019-09-08Give method not found a primary span labelEsteban Küber-1/+1
2019-02-13Relax some Hash bounds on HashMap<K, V, S> and HashSet<T, S>Anthony Ramine-7/+7
Notably, hash iterators don't require any trait bounds to be iterated.
2018-12-27Do not abort compilation if expansion produces errorsVadim Petrochenkov-7/+2
Fix a number of uncovered deficiencies in diagnostics
2018-12-12Deduplicate unsatisfied trait boundsEsteban Küber-0/+18