Could this be 
```rust
let stack = &self.sess.included_mod_stack;
for stack.slice(i, stack.len()).iter().advance |m| {
    err.push_str(fmt!("%? -> ", m.to_str()));
}
```
? (Possibly even moving the `stack` binding out of the `match` to use it there.)