Ayush Kumar Mishra
b05555290c
Remove noisy suggestion of hash_map #72642
...
Fixed failing test-cases
Remove noisy suggestion of hash_map #72642
Fixed failing test-cases
2020-06-09 08:49:05 +05:30
Ilya Bobyr
8f4dfa8839
Free default() forwarding to Default::default()
...
When creating default values a trait method needs to be called with an
explicit trait name. `Default::default()` seems redundant. A free
function on the other hand, when imported directly, seems to be a better
API, as it is just `default()`. When implementing the trait, a method
is still required.
2020-06-07 01:27:06 -07:00
Patryk Wychowaniec
d31d215c56
Improve E0433, so that it suggests missing imports
2020-06-02 20:41:25 +02:00
Matthew Jasper
8894bd220b
Add descriptions for all queries
2020-05-31 20:15:32 +01:00
Ralf Jung
6a8cf4a17c
adjust tests
2020-05-09 14:40:17 +02:00
Andy Russell
9f88d75710
reword "possible candidate" import suggestion
2020-05-07 00:33:25 -04:00
Mohsen Zohrevandi
7db74beaec
Ignore SGX on a few ui tests
2020-05-05 19:19:39 -07:00
Esteban Küber
6e3ba6f40f
Tweak some suggestions in rustc_resolve
2020-04-26 11:43:43 -07:00
Eduard-Mihai Burtescu
77f38dc284
ty: convert ErrorHandled::Reported to ConstKind::Error.
2020-04-16 19:00:30 +03:00
RoccoDev
b85c64c3ea
rustc: Add a warning count upon completion
2020-04-11 16:15:24 +02:00
Mazdak Farrokhzad
5a7ad49620
def_collector, visit_fn: account for no body
2020-04-03 17:01:21 +02:00
Eduard-Mihai Burtescu
8deff18529
tests: remove ignore directives from tests that mention core/alloc/std spans.
2020-04-02 11:48:34 +03:00
Mazdak Farrokhzad
d626f5bc66
Rollup merge of #70077 - Aaron1011:feature/new-def-path-ident, r=petrochenkov
...
Store idents for `DefPathData` into crate metadata
Previously, we threw away the `Span` associated with a definition's
identifier when we encoded crate metadata, causing us to lose location
and hygiene information.
We now store the identifier's `Span` in a side table, which gets encoded
into the crate metadata. When we decode items from the metadata, we
combine the name and span back into an `Ident`.
This improves the output of several tests, which previously had messages
suppressed due to dummy spans.
This is a prerequisite for #68686 , since throwing away a `Span` means
that we lose hygiene information.
2020-03-24 07:13:35 +01:00
Mazdak Farrokhzad
a73ed5aad9
Rollup merge of #69981 - oli-obk:const_blocks, r=eddyb
...
Evaluate repeat expression lengths as late as possible
Fixes #68567
r? @varkor
2020-03-24 00:49:39 +01:00
Oliver Scherer
799b15ed96
Evaluate repeat expression lengths as late as possible
2020-03-23 13:14:36 +01:00
Mazdak Farrokhzad
906b399583
Rollup merge of #69942 - estebank:sized-verbose-sugg, r=matthewjasper
...
Increase verbosity when suggesting subtle code changes
Do not suggest changes that are actually quite small inline, to minimize the likelihood of confusion.
Fix #69243 .
2020-03-23 10:29:09 +01:00
Aaron Hill
96e2d03d4b
Store idents for DefPathData into crate metadata
...
Previously, we threw away the `Span` associated with a definition's
identifier when we encoded crate metadata, causing us to lose location
and hygiene information.
We now store the identifier's `Span` in the crate metadata.
When we decode items from the metadata, we combine
the name and span back into an `Ident`.
This improves the output of several tests, which previously had messages
suppressed due to dummy spans.
This is a prerequisite for #68686 , since throwing away a `Span` means
that we lose hygiene information.
2020-03-22 23:40:19 -04:00
Esteban Küber
854b78fe22
Normalize wording of privacy access labels
2020-03-22 15:36:54 -07:00
Esteban Küber
52fbd3e569
Increase verbosity when suggesting subtle code changes
2020-03-22 10:36:45 -07:00
LeSeulArtichaut
cb7a2c16aa
Bless tests
2020-03-21 15:03:58 +01:00
Vadim Petrochenkov
e80cb2032c
resolve: Fix regression in resolution of raw keywords in paths
2020-03-14 19:21:38 +03:00
Mazdak Farrokhzad
cc9aad452a
resolve, inconsistent binding mode: tweak wording.
2020-03-04 03:58:52 +01:00
Mazdak Farrokhzad
b95945c8d6
Rollup merge of #69539 - Centril:fix-69401, r=petrochenkov
...
late resolve, visit_fn: bail early if there's no body.
Fixes https://github.com/rust-lang/rust/issues/69401 which was injected by b2c6eeb713 in https://github.com/rust-lang/rust/pull/68788 .
r? @petrochenkov
2020-02-28 17:17:34 +01:00
Mazdak Farrokhzad
a245221497
Rollup merge of #69452 - Centril:typeck-pat, r=estebank
...
typeck: use `Pattern` obligation cause more for better diagnostics
r? @estebank
2020-02-28 17:17:28 +01:00
Mazdak Farrokhzad
85b585daaf
late resolve, visit_fn: bail early if there's no body.
2020-02-28 07:58:37 +01:00
Dylan DPC
0860f5aebd
Rollup merge of #67637 - Mark-Simulacrum:primitive-mod, r=dtolnay
...
Add primitive module to libcore
This re-exports the primitive types from libcore at `core::primitive` to allow
macro authors to have a reliable location to use them from.
Fixes #44865
2020-02-26 02:07:05 +01:00
Mazdak Farrokhzad
e9f6bb7f79
check_pat_path: use pattern_cause
2020-02-25 05:41:03 +01:00
Mazdak Farrokhzad
1d33717583
improve or-pattern type consistency diagnostics
2020-02-25 05:30:43 +01:00
Esteban Küber
683ebc2dec
On mismatched argument count point at arguments
2020-02-11 12:42:00 -08:00
Mark Rousskov
178de46116
Add primitive module to libcore/std
...
This re-exports the primitive types from libcore at `core::primitive` to allow
macro authors to have a reliable location to use them from.
2020-02-06 16:29:01 -05: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
Esteban Küber
fca5c64abd
Point at arguments or output when fn obligations come from them, or ident when they don't
2020-02-02 11:52:33 -08:00
Yuki Okushi
726568bd1b
Do not suggest things named underscore
2020-02-02 04:55:37 +09:00
Vadim Petrochenkov
28c3f6eb40
resolve: Point at the private item definitions in privacy errors
2020-01-16 21:59:11 +03:00
varkor
1faa05daac
Update output-default.json and rustdoc test
2020-01-12 15:37:50 +00:00
varkor
117443ec0a
Appease tidy
2020-01-12 15:37:50 +00:00
varkor
8461fa5119
Diagnostics should not end with a full stop
2020-01-12 15:37:50 +00:00
Esteban Küber
38a3506c45
Ignore platforms that can't point to std
2020-01-10 11:40:30 -08:00
Esteban Küber
8eb7ac561e
Use def_span to minimize definition span to first line when possible
2020-01-10 11:40:29 -08:00
Esteban Küber
39c96a0f53
Point at the span for the definition of crate foreign ADTs
2020-01-10 11:40:29 -08:00
Andy Russell
7fd014d569
tweak wording of mismatched delimiter errors
2020-01-03 08:40:15 -05:00
Mazdak Farrokhzad
d7e2f3aee5
refactor and fix this-expression-has-type note
2019-12-30 14:05:17 +01:00
Vadim Petrochenkov
914c9aa78d
resolve: Always resolve visibilities on impl items
2019-12-11 22:10:09 +03:00
Esteban Küber
34f03c01f6
Point at type in let assignment on type errors
2019-11-21 19:24: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
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
Mazdak Farrokhzad
5a6fd110b8
Rollup merge of #66007 - estebank:remove-here, r=Centril
...
Remove "here" from "expected one of X here"
2019-11-08 16:50:35 +01:00
Esteban Küber
52e8ec1432
Remove "here" from "expected one of X here"
2019-11-06 17:26:20 -08:00
Tomasz Miąsko
0501d8ab0d
Use check-pass in ui tests where appropriate
2019-11-04 16:03:46 +01:00