You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at the top, and replace the instances of -1 in found_view_item, map_crate, and lookup_in_mod with toplevel_mod, I get an inexhaustive match error in trans.rs.
Yeah. Trans doesn't know how to emit consts for any expr type other than literal at the moment. -1 winds up (because we're lazy) as an unary expr. need to work on a full const-expr evaluator. vec(1,2,3) should be const as well.
Understood. Maybe a slightly more informative error message would help in the meantime. Where do I find the failing alt? (Line numbers from snapshots tend to be hard to interpret -- I even tried getting the right revision of the file by snapshots.txt, but still ended up in a place that wasn't an alt at all.)
Activity
graydon commentedon May 11, 2011
Yeah. Trans doesn't know how to emit consts for any expr type other than literal at the moment. -1 winds up (because we're lazy) as an unary expr. need to work on a full const-expr evaluator. vec(1,2,3) should be const as well.
marijnh commentedon May 11, 2011
Understood. Maybe a slightly more informative error message would help in the meantime. Where do I find the failing alt? (Line numbers from snapshots tend to be hard to interpret -- I even tried getting the right revision of the file by snapshots.txt, but still ended up in a place that wasn't an alt at all.)
Merge pull request rust-lang#358 from dovreshef/master
Merge pull request rust-lang#358 from Havvy/impl-trait-placeholder
Add missing `proof_for_contract` to `mut_ptr::offset_from` harness (r…
Fix spelling error in README.md (rust-lang#358)
Merge rust-lang#358
Merge pull request rust-lang#358 from kennytm/master
Auto merge of rust-lang#358 - braddunbar:set-raw-table, r=Amanieu