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

Prevent expr_cast hides prior error. #5889

Closed
wants to merge 1 commit into from

Commits on Apr 15, 2013

  1. Prevent expr_cast hides prior error.

    This will help not to meet confusing errors.
    In issue rust-lang#5873, the error was "expected constant expr for vector length: Can't cast str to int".
    It was originally "expected constant expr for vector length: Non-constant path in constant expr" (though still invalid error).
    This patch make the original error to be printed.
    youknowone committed Apr 15, 2013
    Configuration menu
    Copy the full SHA
    ffe0580 View commit details
    Browse the repository at this point in the history