Esteban Küber
c764a82310
keep predicate order and tweak output
2020-02-28 11:37:59 -08:00
Esteban Küber
1e7bcc733a
Tweak wording
2020-02-28 11:37:59 -08:00
Esteban Küber
0387f0d19b
Mention the full path of the implementing trait
2020-02-28 11:37:59 -08:00
Esteban Küber
8993b99ae2
On single local candidate, use span label
2020-02-28 11:37:58 -08:00
Jonas Schievink
4d4da926f2
Fix rebase damage
2020-02-21 19:42:28 +01:00
Jonas Schievink
9930e1ff0a
Fix tests that fail with --emit metadata
2020-02-21 19:42:28 +01:00
Jonas Schievink
485111c48e
Add regression tests for issues
2020-02-21 19:41:22 +01:00
Jonas Schievink
fead45815c
Fix tests after rebase
2020-02-21 19:41:22 +01:00
Jonas Schievink
de447eb9f2
Add tests for assoc. const defaults
2020-02-21 19:41:21 +01:00
Patryk Wychowaniec
a8d34c1062
Improve reporting errors and suggestions for trait bounds
2020-02-09 10:33:47 +01:00
Esteban Küber
0e584114c6
Change wording for object unsafe because of assoc const
2020-02-03 10:54:16 -08:00
Esteban Küber
413bfa4b98
Wording changes to object unsafe trait errors
...
Stemming from the thread at https://twitter.com/indygreg/status/1223279056398929920
2020-02-02 11:53:10 -08:00
varkor
24a2929ed1
Normalise notes with the/is
2020-01-24 16:24:50 +00:00
Yuki Okushi
a491100aa3
Rollup merge of #68014 - estebank:unify-e0599, r=cramertj
...
Unify output of "variant not found" errors
Fix #49566 .
2020-01-11 04:50:48 +09:00
Esteban Küber
ac3d4cccea
Explain that associated types and consts can't be accessed directly on the trait's path
2020-01-08 09:41:51 -08:00
Esteban Küber
2c5766f2d4
Unify output of "variant not found" errors
2020-01-08 08:05:31 -08:00
Mazdak Farrokhzad
f0eb4b4752
Rollup merge of #67127 - estebank:disambiguate-suggestion, r=varkor
...
Use structured suggestion for disambiguating method calls
Fix #65635 .
2019-12-20 12:17:20 +01:00
Esteban Küber
3980342f31
Use structured suggestion for disambiguating method calls
...
Fix #65635 .
2019-12-11 17:42:28 -08:00
Esteban Küber
252773af8b
Deduplicate logic
2019-12-10 12:02:18 -08:00
Esteban Küber
6f8f70624b
Surround types with backticks in type errors
2019-11-18 11:03:04 -08:00
Esteban Küber
94c6425464
Remove E0308 note when primary label has all info
2019-11-18 11:03:03 -08:00
Esteban Küber
83ffda5216
Specific labels when referring to "expected" and "found" types
2019-11-18 11:02:22 -08:00
Yuki Okushi
7a85c430fb
Add test for issue-63496
2019-10-22 18:52:08 +09:00
Esteban Küber
190589f8a7
Use structured suggestion for restricting bounds
...
When a trait bound is not met and restricting a type parameter would
make the restriction hold, use a structured suggestion pointing at an
appropriate place (type param in param list or `where` clause).
Account for opaque parameters where instead of suggesting extending
the `where` clause, we suggest appending the new restriction:
`fn foo(impl Trait + UnmetTrait)`.
2019-10-15 13:55:43 -07:00
Yuki Okushi
2ae5e3421d
Print lifetimes with backticks
2019-10-11 16:08:53 +09:00
Esteban Küber
479ce39939
Add explanation to type mismatch involving type params and assoc types
2019-09-18 17:30:35 -07:00
Esteban Küber
c1e5e5c567
On object safety violation, point at source when possible
2019-09-02 20:22:22 -07:00
Esteban Küber
444bc3ca66
Use span label instead of note for cause in E0631
2019-08-31 00:14:23 -07:00
Ilija Tovilo
be510dbc35
Adjust tests for method disambiguation help
2019-07-24 03:03:52 +02:00
Yuki Okushi
c004451a20
Migrate compile-pass annotations to build-pass
2019-07-03 06:30:28 +09:00
memoryruins
eb4580a570
Update ui test suite to use dyn
2019-05-29 00:57:31 -04:00
Esteban Küber
1b0ab0b8a9
Tweak spans for E0599
2019-03-23 13:05:29 -07:00
Mazdak Farrokhzad
c0dcfedd9f
Rollup merge of #59083 - kyren:master, r=varkor
...
Fix #54822 and associated faulty tests
Type checking associated constants can require trait bounds, but an empty
parameter environment was provided to the trait solver. Providing an
appropriate parameter environment seems to fix #54822 and also make one of the
cases in src/test/ui/nll/trait-associated-constant.rs that should compile
successfully do so. It also (slightly) improves the error message in
src/test/ui/associated-const/associated-const-generic-obligations.rs
2019-03-13 03:33:46 +01:00
Vadim Petrochenkov
fa72a81bea
Update tests
2019-03-11 23:10:26 +03:00
kyren
8b1742ea6a
Fix #54822 and associated faulty tests
...
Type checking associated constants can require trait bounds, but an empty
parameter environment was provided to the trait solver. Providing an
appropriate parameter environment seems to fix #54822 and also make one of the
cases in src/test/ui/nll/trait-associated-constant.rs that should compile
successfully do so. It also (slightly) improves the error message in
src/test/ui/associated-const/associated-const-generic-obligations.rs
2019-03-10 23:01:30 -04:00
Andy Russell
e379970056
improve non_upper_case_globals diagnostics
...
Use a structured suggestion and tighten the span to just the identifier.
2019-01-08 13:24:38 -05:00
Alexander Regueiro
58a5756f4d
Fixed more tests.
2018-12-26 21:40:21 +00:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
David Wood
3fc7ab2373
Merged migrated compile-fail tests and ui tests. Fixes #46841 .
2018-08-14 11:12:09 +02:00