We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2145ec4 commit ce11dc8Copy full SHA for ce11dc8
tests/run-make/static-pie/test-aslr.rs
@@ -17,7 +17,7 @@ fn main() {
17
let arg0 = args.next().unwrap();
18
match args.next() {
19
Some(s) if s.eq("--report") => {
20
- println!("main = {:#?}", &main as *const _);
+ println!("main = {:#?}", &(main as fn() as usize));
21
}
22
Some(s) if s.eq("--test-no-aslr") => {
23
let cnt = run_self(&arg0);
0 commit comments