Guillaume Gomez
9c2f1dd377
Add long error explanation for E0578
2019-10-31 14:27:16 +01:00
Guillaume Gomez
b22a1638bf
Add long error explanation for E0577
2019-10-30 14:48:45 +01:00
Guillaume Gomez
9869e5b969
Change E0741 into E0742
2019-10-29 13:59:40 +01:00
Guillaume Gomez
208af201ec
Add long error explanation for E0740
2019-10-29 13:56:19 +01:00
Guillaume Gomez
c8420db21d
Create new error code E0740 for visibility restrictions to ancestor module issues
2019-10-29 13:56:19 +01:00
Esteban Küber
b26ddb8af3
Point at local similarly named element and tweak references to variants
...
Point at the span for the definition of ADTs internal to the current
crate.
Look at the leading char of the ident to determine whether we're
expecting a likely fn or any of a fn, a tuple struct or a tuple variant.
Turn fn `add_typo_suggestion` into a `Resolver` method.
2019-10-27 11:50:43 -07:00
Mazdak Farrokhzad
e25720f106
Rollup merge of #65390 - GuillaumeGomez:long-err-explanation-E0576, r=matthewjasper,kinnison
...
Add long error explanation for E0576
Part of #61137 .
2019-10-25 06:18:02 +02:00
Mazdak Farrokhzad
9c04bd1b4d
Rollup merge of #65627 - varkor:const-generics-forbid-non-structural_match, r=petrochenkov
...
Forbid non-`structural_match` types in const generics
Fixes https://github.com/rust-lang/rust/issues/60286 .
2019-10-24 20:20:01 +02:00
Mazdak Farrokhzad
ba9a9ebb25
Rollup merge of #65691 - GuillaumeGomez:2018-edition-E0659, r=Dylan-DPC
...
Update E0659 error code long explanation to 2018 edition
Fixes #65571
r? @Centril
2019-10-23 22:19:21 +02:00
Guillaume Gomez
aa733dacdf
Add long error explanation for E0576
2019-10-23 13:07:47 +02:00
varkor
2dda8ad98a
Use E0741 for structural match error
2019-10-22 12:28:23 +01:00
varkor
f0e6cd9f89
Remove "type parameter depends on const parameter" error from resolution
2019-10-22 12:26:32 +01:00
Guillaume Gomez
ed965f1b6a
Update E0659 error code long explanation to 2018 edition
2019-10-22 11:52:05 +02:00
Ryo Onodera
101e1f6f8f
Correctly note code as Ok not error for E0573
2019-10-21 09:25:57 +09:00
Mazdak Farrokhzad
fab74044dd
Rollup merge of #65542 - estebank:kill-static-methods, r=Centril
...
Refer to "associated functions" instead of "static methods"
Fix #59782 .
2019-10-19 07:10:07 +02:00
Esteban Küber
2b76c8b95f
review comments
2019-10-18 13:00:14 -07:00
Esteban Küber
865c4bcff6
review comments: help wording
2019-10-18 08:36:46 -07:00
Esteban Küber
11011013f2
Refer to "associated functions" instead of "static methods"
2019-10-17 19:03:36 -07:00
Guillaume Gomez
d1db077e06
Add long error explanation for E0575
2019-10-17 11:30:41 +02:00
Guillaume Gomez
e5d566c080
Add long error explanation for E0573
2019-10-16 13:56:14 +02:00
Guillaume Gomez
6a64e9ca49
Add long error explanation for E0574
2019-10-13 22:10:03 +02:00
Felix S. Klock II
a18d424c48
Allocate a new diagnostic for defaulted type parameters cannot use Self
...
(Without this commit, you still get an error (a very similar one, at
that), but it complains about use of forward declaration, which is
confusing since people do not necessarily think of `Self` as being
declared at all.)
Update: incorporate review feedback.
2019-10-03 13:54:27 +02:00
Guillaume Gomez
33b89a3918
Add long error explanation for E0531
2019-09-25 16:41:05 +02:00
Mark Rousskov
b437240cee
Replace diagnostic plugins with macro_rules
2019-09-05 12:35:15 -04:00
Matthew Jasper
f70c90c677
Move type parameter shadowing errors to resolve
...
For some reason type checking did this. Further it didn't consider
hygiene.
2019-08-17 09:12:32 +01:00
Vadim Petrochenkov
434152157f
Remove lint annotations in specific crates that are already enforced by rustbuild
...
Remove some random unnecessary lint `allow`s
2019-07-28 18:46:24 +03:00
Matthew Jasper
199931ce91
Make register_[long_]diagnostics hygienic
2019-07-13 10:25:57 +01:00
varkor
8f78736fee
Fix error code description
2019-04-25 23:19:36 +01:00
varkor
976b3d1d9e
Prevent const parameters having type parameters as types
2019-04-25 21:11:46 +01:00
Yuki OKUSHI
5f3b8d0883
Rename diagnostics to error_codes
2019-04-17 18:19:14 +09:00