Skip to content

HashMap ICE #3559

Closed
Closed
@jesse99

Description

@jesse99

I'm getting rust: task failed at 'expected EMBL doc with tag EsUint but found tag 5', /Users/jessejones/Source/Third_Party/rust/src/libstd/ebml.rs:446 when trying to compile:

// rustc --test map_to_str.rs && ./map_to_str
extern mod std;
use io::{WriterUtil};
use std::map::*;

#[cfg(test)]
fn check_strs(actual: &str, expected: &str) -> bool
{
    if actual != expected
    {
        io::stderr().write_line(fmt!("Found %s, but expected %s", actual, expected));
        return false;
    }
    return true;
}

#[test]
fn tester()
{
    let table = HashMap();
    table.insert(@~"one", 1);
    table.insert(@~"two", 2);
    assert check_strs(table.to_str(), ~"xxx");   // not sure what expected should be
}

This is with export RUST_LOG=rustc=0,::rt::backtrace and rust master from Sep 22, 2012.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesA-metadataArea: Crate metadataI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions