Yuki Okushi
a9b64766a4
Tweak wording
2020-07-10 07:24:18 +09:00
Yuki Okushi
6864546049
Add a help to use in_band_lifetimes in nightly
2020-07-10 06:39:46 +09:00
Niko Matsakis
6929013b85
fix subtle bug in NLL type checker
...
The bug was revealed by the behavior of the old-lub-glb-hr-noteq1.rs
test. The old-lub-glb-hr-noteq2 test shows the current 'order dependent'
behavior of coercions around higher-ranked functions, at least when
running with `-Zborrowck=mir`.
Also, run compare-mode=nll.
2020-06-22 18:51:08 +00:00
Niko Matsakis
70cf33fcca
remove snapshot calls from "match" operations during select
...
Motivation:
- we want to use leak-check sparingly, first off
- these calls were essentially the same as doing the check during subtyping
2020-06-22 18:51:05 +00:00
Niko Matsakis
4199b3ae26
Revert "modify leak-check to track only outgoing edges from placeholders"
...
This reverts commit 2e01db4b396a1e161f7a73933fff34bc9421dba0.
2020-06-22 14:05:00 +00:00
Niko Matsakis
bcc0a9c8eb
modify leak-check to track only outgoing edges from placeholders
...
Also, update the affected tests. This seems strictly better but it is
actually more permissive than I initially intended. In particular it
accepts this
```
forall<'a, 'b> {
exists<'intersection> {
'a: 'intersection,
'b: 'intersection,
}
}
```
and I'm not sure I want to accept that. It implies that we have a
`'empty` in the new universe intoduced by the `forall`.
2020-06-22 14:05:00 +00:00
Matthew Jasper
29272fc514
Correctly handle binders inside trait predicates
2020-06-20 12:13:20 +01:00
Esteban Küber
d9a5419ef4
Add label to item source of bound obligation
2020-04-18 17:19:53 -07:00
Esteban Küber
d605a9d969
Small tweaks to required bound span
2020-04-08 14:40:51 -07: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
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
Esteban Küber
6ba08755df
When encountering an undefined named lifetime, point to where it can be
...
This doesn't mention that using an existing lifetime is possible, but
that would hopefully be clear as always being an option. The intention
of this is to teach newcomers what the lifetime syntax is.
2020-01-19 17:31:33 -08:00
Esteban Küber
66ea471f9d
Handle more specific case E0222
2019-12-24 22:10:15 -08:00
varkor
a5991c57cf
Add the full issue reference to equality constraints in where clauses
2019-12-23 11:15:55 +00:00
Esteban Küber
dbd75c8c40
Handle more cases involving impl and trait
2019-10-15 13:55:43 -07:00
Esteban Küber
b370c111fd
On obligation errors point at the unfulfilled binding when possible
2019-09-22 11:33:12 -07:00
Esteban Küber
02e3fb89a7
When possible point at argument causing item obligation failure
2019-09-19 12:10:23 -07:00
Esteban Küber
444bc3ca66
Use span label instead of note for cause in E0631
2019-08-31 00:14:23 -07:00
Vadim Petrochenkov
5486cc69bd
tests: Move run-pass tests with naming conflicts to ui
2019-07-27 18:56:17 +03:00
Vadim Petrochenkov
9be35f82c1
tests: Move run-pass tests without naming conflicts to ui
2019-07-27 18:56:16 +03:00
memoryruins
eb4580a570
Update ui test suite to use dyn
2019-05-29 00:57:31 -04:00
Andy Russell
b6f148c8bd
hide --explain hint if error has no extended info
2019-04-18 13:29:28 -04:00
Vadim Petrochenkov
fa72a81bea
Update tests
2019-03-11 23:10:26 +03:00
Niko Matsakis
21e9478366
update test files to reflect new output
...
One surprise: old-lub-glb-object.rs, may indicate a bug
2019-02-21 11:32:17 -05:00
Rémy Rakic
c97d135452
Refer to synthetically named lifetimes as "some specific lifetime" rather than "the specific lifetime"
2019-01-28 23:12:13 +01:00
Remy Rakic
a79f135be6
Update test expectations for new placeholder error messages
2019-01-27 10:52:43 +01:00
Mazdak Farrokhzad
f7da074d2a
Rollup merge of #57459 - varkor:E0202-issue-reference, r=petrochenkov
...
Reference tracking issue for inherent associated types in diagnostic
This makes it clearer that associated types in inherent impls are an intended feature, like the diagnostic for equality constraints in where clauses. (This is more helpful, because the lack of associated types is a confusing omission and it lets users more easily track the state of the feature.)
2019-01-12 10:55:09 +01:00
varkor
ac4a4547ba
Consolidate equality constraints error message
2019-01-08 23:53:43 +00:00
Niko Matsakis
a24e04dff6
say "the lifetime" instead of "some lifetime" when it feels right
...
In particular, when we want to indicate that there is a connection
between the self type and the other types.
2019-01-02 17:35:06 -05:00
Niko Matsakis
7bc3f5585a
apply the same logic to ConcreteFailure errors
2019-01-02 17:35:06 -05:00
Niko Matsakis
d3c96ff152
tests: worse diagnostics, but basically same errors
2019-01-02 17:35:05 -05:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Matthias Krüger
71120ef1e5
Fix typos found by codespell.
2018-08-19 17:41:28 +02:00
David Wood
3fc7ab2373
Merged migrated compile-fail tests and ui tests. Fixes #46841 .
2018-08-14 11:12:09 +02:00