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
varkor
88d5b2f4b4
Refactor mod/check (part vi)
2018-08-19 20:02:32 +01:00
varkor
c9941a8a85
Refactor mod/check (part v)
2018-08-19 20:02:32 +01:00
varkor
e812b55d8f
Refactor mod/check (part iv)
2018-08-19 20:02:32 +01:00
varkor
96379e1659
Refactor mod/check (part iii)
2018-08-19 20:02:32 +01:00
varkor
5fe9aeb402
Refactor mod/check (part ii)
2018-08-19 20:02:32 +01:00
varkor
d1a82af235
Refactor mod/check (part i)
2018-08-19 20:02:32 +01:00
varkor
2317abdd01
Fix quadratic loop in confirm.rs
2018-08-19 20:02:32 +01:00
varkor
651215e283
Replace for_each with for
2018-08-19 20:02:32 +01:00
varkor
11adc1300c
Address minor comments
2018-08-19 20:02:32 +01:00
bors
3ac79c7184
Auto merge of #53258 - nikomatsakis:issue-53189-optimize-reassignment-immutable-state, r=pnkfelix
...
optimize reassignment immutable state
This is the "simple fix" when it comes to checking for reassignment. We just shoot for compatibility with the AST-based checker. Makes no attempt to solve #21232 .
I opted for this simpler fix because I didn't want to think about complications [like the ones described here](https://github.com/rust-lang/rust/issues/21232#issuecomment-412219247 ).
Let's do some profiling measurements.
Fixes #53189
r? @pnkfelix
2018-08-19 17:44:43 +00:00
Mazdak Farrokhzad
f84ec02bf7
remove feature(convert_id) from lib{core,std}/lib.rs
2018-08-19 19:25:35 +02:00
Mazdak Farrokhzad
71187b7e18
Make core::convert::identity a const fn.
2018-08-19 18:49:31 +02:00
Mazdak Farrokhzad
c2217b7fb7
Get rid of unnecessary #![feature(core_float)].
2018-08-19 18:37:00 +02:00
Mazdak Farrokhzad
8208c77782
Drop identity
from prelude.
2018-08-19 18:36:18 +02:00
Mazdak Farrokhzad
08b1d83a46
Merge branch 'master' into feature/core_convert_id
2018-08-19 18:34:46 +02:00
Jakub Kozlowski
00920c0024
Stabilize macro_vis_matcher
2018-08-19 17:08:00 +01:00
Matthias Krüger
71120ef1e5
Fix typos found by codespell.
2018-08-19 17:41:28 +02:00
bors
bfc3b20663
Auto merge of #53248 - nikomatsakis:nll-trivial-sized-predicate, r=eddyb
...
skip trivial `Sized` predicates
This came to about a 2% win for me in cargo. Small, but hey.
r? @eddyb
2018-08-19 15:22:18 +00:00
Niko Matsakis
58e4b54bd4
move tests to borrowck directory, remove feature(nll)
...
now compare-mode can show us the differences
2018-08-19 08:15:13 -07:00
Niko Matsakis
4e50c5b6e4
add tests for assigning fields without initializing var
...
We did not seem to have any!
2018-08-19 07:35:07 -07:00
Niko Matsakis
78e987ab8f
just check whether a variable is initialized
...
Don't iterate over all things that are initialized.
2018-08-19 07:34:44 -07:00
Niko Matsakis
a8a982bb61
treat local variables specially
2018-08-19 07:34:43 -07:00