This website requires JavaScript.
Explore
Help
Sign in
mathieu
/
os-rust
Watch
1
Star
0
Fork
You've already forked os-rust
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
12c32e944d
os-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 16:05:53 +01: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 12:47:02 -07: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 16:05:53 +01:00
}
Reference in a new issue
Copy permalink