Scott McMurray
817efc2489
Suggest try
if someone uses do catch
2018-08-19 16:53:42 -07:00
Scott McMurray
91967a8f16
Put try
in the reserved list, not the in-use list
2018-08-19 16:53:41 -07:00
Scott McMurray
ef198867a7
Fix the unstable book
...
I ignored the code block as I didn't see a way to run the doctest in 2018 -- I noticed the edition guide is also not testing its 2018 code snippits.
2018-08-19 16:53:41 -07:00
Scott McMurray
9e64ce1799
Parse try blocks with the try keyword instead of do catch placeholder
2018-08-19 16:53:05 -07:00
varkor
ae81fc61d0
Fix ICE
2018-08-20 00:39:58 +01:00
Scott McMurray
1c906093f9
Add try
to syntax_pos as an edition-2018-only keyword
2018-08-19 16:30:53 -07:00
Scott McMurray
f2445fb507
Rename Catch
variants to TryBlock
...
(Not `Try` since `QuestionMark` is using that.)
2018-08-19 16:30:53 -07:00
bors
6bf6d50a6f
Auto merge of #52953 - dsciarra:mv-codemap-sourcemap, r=petrochenkov
...
Rename CodeMap/FileMap to SourceMap/SourceFile
A first renaming for #51574
2018-08-19 23:08:26 +00:00
varkor
b5c2470ba3
Update new ui tests
2018-08-20 00:08:01 +01:00
varkor
798b9ff9d5
Tweak comments
2018-08-19 23:10:18 +01:00
Jorge Aparicio
a6f4ae864e
fix: preserve msvc linker fallback logic
2018-08-19 23:59:20 +02:00
varkor
25b62679e9
Taking a peek
2018-08-19 22:31:41 +01:00
Vadim Petrochenkov
7b47fd793f
resolve: Reject some inaccessible candidates sooner during import resolution
...
This allows import resolution to progress in cases like #53140
2018-08-20 00:07:08 +03:00
bors
f28f648a96
Auto merge of #53316 - tristanburgess:52895_existential_type_ICE, r=oli-obk
...
52985: cause cycle err on inf trait normalization
Issue: #52985
- If an existential type is defined, but no user code infers the
concrete type behind the existential type, normalization would
infinitely recurse on this existential type which is only defined in
terms of itself.
- Instead of raising an inf recurse error, we cause a cycle error to
help highlight that the issue is that the type is only defined in terms
of itself.
- Three known potential improvements:
- If type folding itself was exposed as a query, used by
normalization and other mechanisms, cases that would cause infinite recursion would
automatically cause a cycle error.
- The span for the cycle error should be improved to point to user
code that fails to allow inference of the concrete type of the existential type,
assuming that this error occurs because no user code can allow inference the
concrete type.
- A mechanism to extend the cycle error with a helpful note would be nice. Currently,
the error is built and maintained by src/librustc/ty/query/plumbing,
with no known way to extend the information that the error gets built
with.
r? @oli-obk
2018-08-19 21:03:12 +00:00
Donato Sciarra
6138c82803
fix tidy errors
2018-08-19 23:01:01 +02:00
Donato Sciarra
a2ff845f3a
mv CachingCodemapView CachingSourceMapView
2018-08-19 23:01:01 +02:00
Donato Sciarra
062bfbf39b
mv codemap source_map
2018-08-19 23:01:01 +02:00
Donato Sciarra
d3fe97f3d3
mv codemap() source_map()
2018-08-19 23:01:01 +02:00
Donato Sciarra
82607d2cf3
mv (mod) codemap source_map
2018-08-19 23:01:00 +02:00
Donato Sciarra
cbd0595710
mv filemap source_file
2018-08-19 23:00:59 +02:00
Donato Sciarra
d6dcbcd4e1
mv FileMap SourceFile
2018-08-19 23:00:59 +02:00
Donato Sciarra
c655473378
mv CodeMap SourceMap
2018-08-19 23:00:59 +02:00
Mazdak Farrokhzad
b7772e6c9e
convert-id: tests for const gating.
2018-08-19 21:06:43 +02:00
varkor
4722744e4d
Fix some remaining tests
2018-08-19 20:03:02 +01:00
varkor
03c4628a5b
Avoid clone and update documentation
2018-08-19 20:03:02 +01:00
varkor
04d33bbdb3
Refactor generic argument count check in check/mod.rs
2018-08-19 20:03:02 +01:00
varkor
68b0e7dd99
Refactor generic argument count check in method/confirm.rs
2018-08-19 20:02:34 +01:00
varkor
49c45734c0
Refactor generic argument count check in astconv
2018-08-19 20:02:34 +01:00
varkor
a14bc713e7
Add Default for GenericParamCount
2018-08-19 20:02:34 +01:00
varkor
7c9f7c2fa3
Args first, then params
2018-08-19 20:02:34 +01:00
varkor
9d3d4b1a19
Refactor lock-step
2018-08-19 20:02:34 +01:00
varkor
6a96cf12c1
Clean match statement
2018-08-19 20:02:34 +01:00
varkor
e79bc410bf
Consolidate into create_substs_for_generic_args
2018-08-19 20:02:34 +01:00
varkor
ccef306b96
Revert broken test
2018-08-19 20:02:34 +01:00
varkor
b524991f03
Refactor astconv.rs (part ii)
2018-08-19 20:02:33 +01:00
varkor
5d07db436d
Refactor confirm.rs (part ii)
2018-08-19 20:02:33 +01:00
varkor
08d49a65e7
Refactor mod/check (part viii)
2018-08-19 20:02:33 +01:00
varkor
5f2588f020
Fix behaviour in error condition
2018-08-19 20:02:33 +01:00
varkor
db94efab39
Refactor mod/check (part vii)
2018-08-19 20:02:33 +01:00
varkor
9bb40b09b7
Make prohibit_generics take IntoIterators
2018-08-19 20:02:33 +01:00
varkor
9cfe92c8ae
"Fix" annoying test
2018-08-19 20:02:33 +01:00
varkor
e02642dbb3
Fix confirm.rs
2018-08-19 20:02:32 +01:00
varkor
340a7fc4f5
Refactor astconv.rs
2018-08-19 20:02:32 +01:00
varkor
35ddd46a2d
Refactor confirm.rs
2018-08-19 20:02:32 +01:00
varkor
84edc0a089
Move lifetime calculation outside loop
2018-08-19 20:02:32 +01:00
varkor
b6eef180cd
Supress consecutive errors
2018-08-19 20:02:32 +01:00
varkor
d8ba103334
Fix param_idx calculation
2018-08-19 20:02:32 +01:00
varkor
d5e24dc121
Fix integer overflow
2018-08-19 20:02:32 +01:00
varkor
734ce4ae1a
Fix tidy check
2018-08-19 20:02:32 +01:00
varkor
335770267a
Replace generics_require_inlining with generics.requires_monomorphization
2018-08-19 20:02:32 +01:00