Closed
Description
I've been playing around with non-ascii identifiers, and I found a (compiler) bug where the following doesn't work:
Struct Coord { t: f64, θ: f64 }
let data: Vec<Coord> = simulate(...);
let t = data.iter().map(|d| d.t);
let θ = data.iter().map(|d| d.θ);
But this works fine:
Struct Coord { t: f64, u: f64 }
let data: Vec<Coord> = simulate(...);
let t = data.iter().map(|d| d.t);
let θ = data.iter().map(|d| d.u);
The problem is in |d| d.θ
, as I use structs with non-ascii idents elsewhere without problems. The error given is 'rustc' panicked at 'assertion failed: bpos.to_uint() >= mbc.pos.to_uint() + mbc.bytes', /private/tmp/rust-nightly-lvT20f/rust-nightly/src/libsyntax/codemap.rs:471
My OS is OS X 10.10, my verbose version is just reported as rustc 0.13.0-dev, but I should be using the 2014-11-08 nightly build.