Andy Russell
4e35cbb22e
fix various typos in doc comments
2018-11-13 14:45:31 -05:00
Matthew Jasper
a830732090
Rename places_conflict to borrow_conflicts_with_place
...
This name better reflects the asymmetry of this function.
2018-09-24 23:33:13 +01:00
Matthew Jasper
ced5c2d08a
Add "Shallow" borrow kind
...
This allows treating the "fake" match borrows differently from shared
borrows.
2018-09-24 23:33:13 +01:00
Matthew Jasper
4603fb8862
Rework checking for borrows conflicting with drops
...
Previously, we would split the drop access into multiple checks for each
field of a struct/tuple/closure and through `Box` dereferences. This
changes this to check if the borrow is accessed by the drop in
places_conflict.
This also allows us to handle enums in a simpler way, since we don't
have to construct any new places.
2018-09-23 20:27:41 +01:00
Nicholas Nethercote
130e55665f
Avoid calling unroll_place()
in a common case.
...
This reduces the execution time for `ucd-check` by 25%.
2018-08-27 18:46:36 +10:00
varkor
6f637da50c
Remove Ty prefix from Ty{Adt|Array|Slice|RawPtr|Ref|FnDef|FnPtr|Dynamic|Closure|Generator|GeneratorWitness|Never|Tuple|Projection|Anon|Infer|Error}
2018-08-22 16:07:44 +01:00
Matthias Krüger
71120ef1e5
Fix typos found by codespell.
2018-08-19 17:41:28 +02:00
Matthew Jasper
84dc48522d
Allow borrow conflicts for promoted length 0 arrays
2018-07-31 21:35:22 +01:00
Oliver Schneider
ac54b7499b
A promoted has a place and can thus be equal to itself
2018-07-23 09:51:31 +02:00
Oliver Schneider
de511438cd
Promoteds are statics and statics have a place, not just a value
2018-07-23 09:51:30 +02:00
Niko Matsakis
6d0644c65a
tweak comment
2018-07-06 06:33:38 -04:00
Mikhail Modin
f247a3e490
fix for issue #8636
2018-07-05 11:34:10 +01:00
Niko Matsakis
cb34989332
add explanatory comment
2018-06-28 08:34:04 -04:00
Niko Matsakis
5c06b23025
run rustfmt
2018-06-27 13:32:00 -04:00
Niko Matsakis
497273620b
don't use Iterator and zip but just invoke next
manually
...
This micro-optimizes some if checks away; the compiler may already
have been doing it, not sure.
2018-06-27 13:01:23 -04:00
Niko Matsakis
e10414e055
avoid use of vectors etc
2018-06-27 11:47:58 -04:00
Niko Matsakis
edf14d1884
extract places_conflict
into its own module
2018-06-27 11:47:58 -04:00