Skip to content
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

ICE when converting std::run::process_status() to generic function #8835

Closed
lilyball opened this issue Aug 29, 2013 · 4 comments
Closed

ICE when converting std::run::process_status() to generic function #8835

lilyball opened this issue Aug 29, 2013 · 4 comments

Comments

@lilyball
Copy link
Contributor

If I convert std::run::process_status() to a generic function, parameterized by <S: Str>, as part of PR #8203, the snapshot compiler complains with

error: internal compiler error: encode_symbol: id not found 230917

Since I compiled libstd at stage2 just fine, I'm assuming that the next snapshot will cause this problem to go away.

@lilyball
Copy link
Contributor Author

Nevermind. I wrote this issue so I could leave a // FIXME, but instead I'm going with #[cfg(stage0)].

@lilyball
Copy link
Contributor Author

Now I'm getting the ICE in stage2 too. It worked with make check-stage2-std NO_REBUILD=1, so maybe it only works when tests are on? Which doesn't make any sense.

@lilyball lilyball reopened this Aug 29, 2013
@lilyball
Copy link
Contributor Author

The function looks like this:

pub fn process_status<S: Str>(prog: &str, args: &[S]) -> int {
    let mut prog = Process::new(prog, args, ProcessOptions {
        env: None,
        dir: None,
        in_fd: Some(0),
        out_fd: Some(1),
        err_fd: Some(2)
    }).unwrap();
    prog.finish()
}

Unlike the other issues that seem to emit this error, there's no internal static.

@lilyball
Copy link
Contributor Author

Fixed with #8843.

xFrednet pushed a commit to xFrednet/rust that referenced this issue May 21, 2022
Fix ICE in `let_unit_value` when calling a static or const callable type

fixes rust-lang#8821

changelog: Fix ICE in `let_unit_value` when calling a static or const callable type
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

1 participant