Skip to content

'Assertion i == total failed' in str::char_len #654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jruderman opened this issue Jul 10, 2011 · 0 comments
Closed

'Assertion i == total failed' in str::char_len #654

jruderman opened this issue Jul 10, 2011 · 0 comments

Comments

@jruderman
Copy link
Contributor

rt: 9736:main:main: upcall fail 'Assertion i == total failed', ../src/lib/str.rs:279

use std;
use rustc;

import std::fs;
import std::io;
import std::vec;

import rustc::back::link;
import rustc::syntax::ast;
import rustc::syntax::print::pprust;
import driver = rustc::driver::rustc;
import rustc::driver::session;

fn main(vec[str] args) {
    auto file = "../src/test/run-pass/utf8.rs";

    auto binary = vec::shift[str](args);
    auto binary_dir = fs::dirname(binary);

    let @session::options sopts =
        @rec(library=false,
             static=false,
             optimize=0u,
             debuginfo=false,
             verify=true,
             run_typestate=true,
             save_temps=false,
             stats=false,
             time_passes=false,
             time_llvm_passes=false,
             output_type=link::output_type_bitcode,
             library_search_paths=[binary_dir + "/lib"],
             sysroot=driver::get_default_sysroot(binary),
             cfg=~[],
             test=false);

    auto stdout = std::io::stdout();
    let session::session sess = driver::build_session(sopts);
    let @ast::crate crate = driver::parse_input(sess, ~[], file);
    pprust::print_crate(sess.get_codemap(), crate, file, stdout, pprust::no_ann());
}
@brson brson closed this as completed in 7fc7ebd Jul 11, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Various constants for mips64 and s390x

Now that these platforms were added to `libc`, we'd like to support them for `nix`. Here's some missing constants for us. We'll see if this passes CI...
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
GuillaumeGomez pushed a commit to GuillaumeGomez/rust that referenced this issue May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants