Dylan DPC
7d8a3ad128
Rollup merge of #71235 - estebank:lt-sugg-2, r=ecstatic-morse
...
Tweak `'static` suggestion code
Fix #71196 .
2020-04-24 13:14:19 +02:00
YI
baac961fb5
fix error code for E0751
2020-04-23 15:46:05 +08:00
Esteban Küber
25f8966b5a
Sort MultiSpans on creation
2020-04-22 17:15:34 -07:00
Esteban Küber
ce936e9336
Do not emit note for projected derived obligations
2020-04-18 16:37:08 -07:00
Esteban Küber
ad1c23c993
Maintain chain of derived obligations
...
When evaluating the derived obligations from super traits, maintain a
reference to the original obligation in order to give more actionable
context in the output.
2020-04-18 16:37:08 -07:00
Jonas Schievink
103771ce57
Add a test
2020-03-30 19:44:21 +02:00
Esteban Küber
2c71894657
Tweak suggest_constraining_type_param
...
Some of the bound restriction structured suggestions were incorrect
while others had subpar output.
2020-03-29 13:13:17 -07:00
Niko Matsakis
fda3378e3f
introduce negative_impls feature gate and document
...
They used to be covered by `optin_builtin_traits` but negative impls
are now applicable to all traits, not just auto traits.
This also adds docs in the unstable book for the current state of auto traits.
2020-03-26 06:52:55 -04:00
Niko Matsakis
65071708f8
make a custom error for overlap with negative impls
2020-03-26 06:52:26 -04:00
Niko Matsakis
e8a05e201e
permit negative impls for non-auto traits
2020-03-26 06:27:45 -04:00
Esteban Küber
b8f9866257
Tweak output for invalid negative impl errors
2020-03-22 21:53:29 -07:00
Matthew Jasper
39ee66ab82
Consider well-formed predicates in min-specialization
2020-03-15 13:49:28 +00:00
Matthew Jasper
0bbbe719e8
Implement soundness check for min_specialization
2020-03-15 13:22:58 +00:00
Matthew Jasper
c24b4bf410
Add attributes to allow specializing on traits
2020-03-15 12:44:25 +00:00
Esteban Küber
713a291441
review comments
2020-03-05 15:39:35 -08:00
Esteban Küber
91525fd078
Tweak output for invalid negative impl AST errors
2020-03-04 16:15:23 -08:00
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
8119d0853d
Track all predicates in errors, not just trait obligations
...
Surface associated type projection bounds that could not be fulfilled in
E0599 errors. Always present the list of unfulfilled trait bounds,
regardless of whether we're pointing at the ADT or trait that didn't
satisfy it.
2020-02-28 11:37:59 -08:00
Esteban Küber
ad4777dbca
Deduplicate information in E0599
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
Esteban Küber
f037d5ca1b
Add more context to E0599 errors
...
Point at the intermediary unfullfilled trait bounds.
2020-02-28 11:37:58 -08:00
Mazdak Farrokhzad
fa2a792491
add Span to ast::Defaultness::Default.
2020-02-24 00:59:38 +01:00
Yuki Okushi
2f39ec24b2
Add FIXME note
2020-02-16 04:36:44 +09:00
Yuki Okushi
6351bfd182
Add test for issue-39618
2020-02-16 02:53:58 +09:00
bors
dc4242d905
Auto merge of #68929 - matprec:consistent-issue-references, r=Dylan-DPC
...
Make issue references consistent
Fixes https://github.com/rust-lang/rust/issues/62976
cc https://github.com/rust-lang/rust/pull/63008
r? @varkor because you reviewed the original pr
2020-02-11 02:00:27 +00:00
Matthias Prechtl
7b555178ae
--bless --compare-mode=nll
2020-02-09 20:43:49 +01:00
Patryk Wychowaniec
a8d34c1062
Improve reporting errors and suggestions for trait bounds
2020-02-09 10:33:47 +01:00
Matthew Jasper
a81c59f9b8
Remove some unsound specializations
2020-02-01 09:11:41 +00:00
Esteban Küber
2c5766f2d4
Unify output of "variant not found" errors
2020-01-08 08:05:31 -08:00
Esteban Küber
6f8f70624b
Surround types with backticks in type errors
2019-11-18 11:03:04 -08:00
Esteban Küber
b2e6aef073
review comments: tweak prefix strings
2019-11-18 11:02:44 -08:00
Esteban Küber
83ffda5216
Specific labels when referring to "expected" and "found" types
2019-11-18 11:02:22 -08:00
Esteban Küber
5b7ffd9333
Handle more cases
2019-10-15 13:55:43 -07:00
Jonas Schievink
47f89e7485
Rename the test
2019-10-05 15:33:26 +02:00
Jonas Schievink
33d23cdf04
Extend test and fix nits
2019-10-05 15:33:26 +02:00
Jonas Schievink
98f02b2362
Pacify tidy
2019-10-05 15:33:26 +02:00
Jonas Schievink
a0cf5315ef
Test that we get the proper errors
2019-10-05 15:33:26 +02:00
Jonas Schievink
2cd5030ef5
Deny specializing items not in the parent impl
2019-10-05 15:33:24 +02:00
Mazdak Farrokhzad
13fee423c8
Rollup merge of #63907 - estebank:assoc-type-mismatch, r=oli-obk
...
Add explanation to type mismatch involving type params and assoc types
CC #63711
2019-09-21 21:24:11 +02:00
Esteban Küber
479ce39939
Add explanation to type mismatch involving type params and assoc types
2019-09-18 17:30:35 -07:00
James Munns
333230fd14
Restore whitespace
2019-09-19 00:50:03 +02:00
James Munns
f233a4c18b
Fix a minor grammar nit, update UI tests
2019-09-19 00:16:16 +02:00
Esteban Küber
5799fb419c
Give method not found a primary span label
2019-09-08 18:27:02 -07:00
Mazdak Farrokhzad
7ee4f1da8c
Allow 'default async fn' to parse.
2019-08-20 22:57:23 +02:00
sd234678
b7b4c3a9aa
Update stderr files with --bless
2019-08-16 10:54:20 +01:00
sd234678
56ebd57960
Remove meaningless comments in src/test
2019-08-16 10:54:20 +01:00
Jack
322a7d6387
Add test for issue 36804
2019-08-08 19:16:08 -04:00
Ariel Ben-Yehuda
95f29aa81b
Revert "Rollup merge of #62696 - chocol4te:fix_#62194, r=estebank"
...
This reverts commit df21a6f040 , reversing
changes made to cc16d04869 .
2019-08-04 19:52:43 +03:00