This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
12c32e944d
rust
/
src
/
test
/
run-pass
/
issue-1895.rs
8 lines
89 B
Rust
Raw
Normal View
History
Unescape
Escape
Use the correct prestate for calls The prestate for calls was getting set incorrectly to the poststate for the operator in the call. This worked before since most of the time, operator expressions are pure. Issue 1895 shows how this breaks when the operator is a closure that has a move-in capture clause. (I had a several-day, multi-file patch for this that didn't work... and then it turned out to be a one-line fix. The joys of programming.) Closes #1895
2012-03-01 11:13:46 -06:00
fn
main
(
)
{
let
x
=
1
;
Remove code from parser that was awaiting snapshot Remove old parser functions as well as support for old-style capture clauses. Remove remaining old-style capture clauses.
2012-06-14 21:02:30 -05:00
let
y
=
fn
@
(
move
x
)
->
int
{
Use the correct prestate for calls The prestate for calls was getting set incorrectly to the poststate for the operator in the call. This worked before since most of the time, operator expressions are pure. Issue 1895 shows how this breaks when the operator is a closure that has a move-in capture clause. (I had a several-day, multi-file patch for this that didn't work... and then it turned out to be a one-line fix. The joys of programming.) Closes #1895
2012-03-01 11:13:46 -06:00
x
}
(
)
;
}
Reference in New Issue
Copy Permalink