This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2024-12-18 03:25:55 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
12c32e944d
rust
/
src
/
test
/
run-pass
/
stable-addr-of.rs
7 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
Keep an explicit map of things that have to be spilled This prevents us from spilling locals more than once. Closes #2040
2012-03-23 15:05:53 +00:00
// Issue #2040
fn
main
(
)
{
let
foo
=
1
;
Move over to calling ptr::addr_of Everything should now call ptr::addr_of instead of ptr::p2::addr_of. Only the pipes macro code when compiled by stage0 will call ptr::p2::addr_of. Needs a snapshot to get rid of that.
2012-10-01 19:47:02 +00:00
assert
ptr
::
addr_of
(
&
foo
)
=
=
ptr
::
addr_of
(
&
foo
)
;
Keep an explicit map of things that have to be spilled This prevents us from spilling locals more than once. Closes #2040
2012-03-23 15:05:53 +00:00
}
Reference in New Issue
Copy Permalink