Don't shadow a class name with a local
The fix in 208621 means you now can't shadow a class name with a local, which is consistent with other behavior. But stackwalk was doing that. Fixed it.
This commit is contained in:
parent
76d6120e52
commit
0017116520
@ -23,10 +23,10 @@ fn walk_stack(visit: fn(frame) -> bool) {
|
|||||||
reinterpret_cast(frame_pointer)
|
reinterpret_cast(frame_pointer)
|
||||||
};
|
};
|
||||||
loop {
|
loop {
|
||||||
let frame = frame(frame_address);
|
let fr = frame(frame_address);
|
||||||
|
|
||||||
#debug("frame: %x", unsafe { reinterpret_cast(frame.fp) });
|
#debug("frame: %x", unsafe { reinterpret_cast(fr.fp) });
|
||||||
visit(frame);
|
visit(fr);
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
let next_fp: **word = reinterpret_cast(frame_address);
|
let next_fp: **word = reinterpret_cast(frame_address);
|
||||||
@ -44,7 +44,7 @@ fn walk_stack(visit: fn(frame) -> bool) {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_simple() {
|
fn test_simple() {
|
||||||
for walk_stack { |frame|
|
for walk_stack { |_frame|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ fn test_simple_deep() {
|
|||||||
fn run(i: int) {
|
fn run(i: int) {
|
||||||
if i == 0 { ret }
|
if i == 0 { ret }
|
||||||
|
|
||||||
for walk_stack { |frame|
|
for walk_stack { |_frame|
|
||||||
unsafe {
|
unsafe {
|
||||||
breakpoint();
|
breakpoint();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user