Patrick Walton
1b06a9593f
librustc: De-@mut
MoveData::assignee_ids
2013-12-26 15:54:35 -08:00
Patrick Walton
111e167f48
librustc: De-@mut
MoveData::var_assignments
2013-12-26 15:54:35 -08:00
Patrick Walton
460305749c
librustc: De-@mut
MoveData::path_assignments
2013-12-26 15:54:34 -08:00
Patrick Walton
7d3e25394f
librustc: De-@mut
MoveData::path_map
2013-12-26 15:54:34 -08:00
Patrick Walton
1b8391ca12
librustc: De-@mut
MoveData::moves
2013-12-26 15:54:34 -08:00
Patrick Walton
1ded423505
librustc: Replace the move
method with an accessor in the borrow check
...
move data
2013-12-26 15:54:34 -08:00
Patrick Walton
12c5c19871
librustc: De-@mut
MoveData::paths
2013-12-26 15:54:34 -08:00
Patrick Walton
026364ca26
librustc: Change mut_path
into mutators for specific fields in the
...
borrow check move data
2013-12-26 15:54:34 -08:00
Patrick Walton
fcb47813a4
librustc: Extract first_child
and next_sibling
from the borrow check
...
move data into accessors
2013-12-26 15:54:34 -08:00
Patrick Walton
f700cf3872
librustc: Extract first_move
from the move data into an accessor
2013-12-26 15:54:34 -08:00
Patrick Walton
f19a9b9600
librustc: Extract parent
from move data as an accessor
2013-12-26 15:54:34 -08:00
Patrick Walton
211c6d522b
librustc: Extract loan_path
from move data into an accessor
2013-12-26 15:54:34 -08:00
Patrick Walton
620be9235d
librustc: De-@mut
the cnum_map
2013-12-26 15:54:34 -08:00
Patrick Walton
5a9c37b7f5
librustc: De-@mut
the borrow check stat fields
2013-12-26 15:54:34 -08:00
Patrick Walton
ccb18f47e2
librustc: De-@mut
the used_mut_nodes
table in the type context
2013-12-26 15:54:33 -08:00
Patrick Walton
522743c9db
librustc: De-@mut
the moved variables set
2013-12-26 15:54:33 -08:00
Patrick Walton
d9c87c7a23
librustc: De-@mut
the moves map
2013-12-26 15:54:32 -08:00
Patrick Walton
f7393d8658
librustc: De-@mut
the method map
2013-12-26 15:54:32 -08:00
Patrick Walton
3b1a7b5ca9
librustc: Remove the unused reported
table from the loan checking pass
2013-12-26 15:54:32 -08:00
Patrick Walton
bc1ea7887c
librustc: De-@mut
the write guard map
2013-12-26 15:54:31 -08:00
Patrick Walton
2fa456d4f4
librustc: De-@mut
the borrow check's loan_map
2013-12-26 15:54:29 -08:00
Patrick Walton
ef32b129fa
librustc: Remove the unused stmt_map
from the borrow checker
2013-12-26 15:54:28 -08:00
Patrick Walton
dd745b388d
librustc: De-@mut
the capture map
2013-12-26 13:01:28 -08:00
Patrick Walton
72f9cbe8ac
librustc: De-@mut
the borrow check's root map
2013-12-26 13:01:28 -08:00
Patrick Walton
7cf6abc84a
librustc: De-@mut
the adjustments table in the type context
2013-12-26 13:01:26 -08:00
Edward Z. Yang
4584acdf4c
s/Second borrow/Previous borrow/ in error messages.
...
When a borrow occurs twice illegally, Rust will label the other borrow
as the "second borrow". This is quite confusing, as the "second borrow"
usually happened before the flagged borrow (e.g. as far as dataflow
is concerned, the first borrow is OK, the second borrow is illegal.)
This patch renames "second borrow" to "previous borrow", to make the
spatial relationship between the two borrows clearer.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
2013-12-17 21:10:57 +08:00
Seo Sanghyeon
5499b45323
Remove fk_anon
2013-12-12 23:01:47 +09:00
Erik Price
5731ca3078
Make 'self lifetime illegal.
...
Also remove all instances of 'self within the codebase.
This fixes #10889 .
2013-12-11 10:54:06 -08:00
bors
d441c54688
auto merge of #10787 : nikomatsakis/rust/issue-9629-freeze-andmut, r=pnkfelix
...
See #9629 for details.
r? @pnkfelix
2013-12-11 05:41:18 -08:00
Niko Matsakis
fc74d64f7d
More small test case fixes. grr. cc #9629 .
2013-12-11 06:40:37 -05:00
Niko Matsakis
76d9a9671b
Fix test case harder (cc #9629 )
2013-12-10 13:14:45 -05:00
Alex Crichton
9522a08cf0
Check the privacy of implemented traits
...
This bug showed up because the visitor only visited the path of the implemented
trait via walk_path (with no corresponding visit_path function). I have modified
the visitor to use visit_path (which is now overridable), and the privacy
visitor overrides this function and now properly checks for the privacy of all
paths.
Closes #10857
2013-12-09 22:53:58 -08:00
Niko Matsakis
9f7baedc62
Address nits for PR for #9629
2013-12-09 12:45:13 -05:00
Kiet Tran
1755408d1a
Remove dead codes
2013-12-08 02:55:28 -05:00
Niko Matsakis
22f14fb27f
Issue #9629 -- permit freezing &mut
found within an &
pointer
2013-12-03 17:26:51 -05:00
Guillaume Pinot
25bb1a406c
rename MutableVector::mut_split(at) to MutableVector::mut_split_at(at)
2013-12-02 08:58:07 +01:00
Eduard Burtescu
a9c4b18b18
Box Block, fn_decl, variant and Ty in the AST, as they were inflating critical enum sizes.
2013-12-01 00:00:39 +02:00
Alex Crichton
ab387a6838
Register new snapshots
2013-11-28 20:27:56 -08:00
bors
859c3baf64
auto merge of #10519 : nikomatsakis/rust/issue-8624-borrowck-overly-permissive, r=pnkfelix
...
See #8624 for details.
r? @pnkfelix
2013-11-28 03:51:32 -08:00
Niko Matsakis
09e12fa553
Test that reborrowing contents of an &'a mut &'b mut
pointer can only
...
be done for at most lifetime `'a`
Fixes #8624
2013-11-28 06:43:39 -05:00
Patrick Walton
8ceb374ab7
librustc: Remove non-procedure uses of do
from librustc, librustdoc,
...
and librustpkg.
2013-11-26 08:25:00 -08:00
Seo Sanghyeon
9028330f39
Take &Pat in visit_pat
2013-11-26 03:22:21 +09:00
Patrick Walton
7e3f20133a
librustc: Change most uses of &fn()
to ||
.
2013-11-19 13:22:03 -08:00
Niko Matsakis
195f1d77bd
Rename and modernize region enum names
2013-11-08 19:47:57 -05:00
Niko Matsakis
1f4faaee40
Generalize AST and ty::Generics to accept multiple lifetimes.
2013-11-08 19:42:46 -05:00
Patrick Walton
7e77bf1769
librustc: Implement the proc
type as sugar for ~once fn
and proc
...
notation for closures, and disable the feature gate for `once fn` if
used with the `~` sigil.
2013-10-29 10:34:17 -07:00
bors
16b8a41531
auto merge of #10026 : luqmana/rust/mut-pat, r=pcwalton
...
Fixes #9792 .
2013-10-27 09:51:21 -07:00
bors
dcdcd309fb
auto merge of #10067 : sanxiyn/rust/addr-of-bot, r=thestinger
...
Fix #5500 .
2013-10-25 12:56:20 -07:00
Seo Sanghyeon
f04886b6bf
Allow taking address of bottom
2013-10-25 19:15:29 +09:00
Luqman Aden
12308db3d2
libsyntax/librustc: Allow mut qualifier in patterns.
2013-10-25 01:21:07 -04:00