Skip to content

HashMap ICE #3559

Closed
Closed

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.

Activity

  1. catamorphism commented on Dec 7, 2012

    @catamorphism
    Contributor

    Works as of d2ad028

  2. added a commit that references this issue on May 15, 2021
  3. added 2 commits that reference this issue on May 4, 2024
  4. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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