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

Closing over an outer function arg is not caught by capture pass #364

Closed
marijnh opened this issue May 12, 2011 · 1 comment
Closed

Closing over an outer function arg is not caught by capture pass #364

marijnh opened this issue May 12, 2011 · 1 comment

Comments

@marijnh
Copy link
Contributor

marijnh commented May 12, 2011

This currently crashes the compiler (Map.get miss in ty_param_count_and_ty_for_def in typeck.rs when looking up outer_arg):

fn foo(int outer_arg) {
    fn local() -> int {
        ret outer_arg;
    }
}
@marijnh
Copy link
Contributor Author

marijnh commented May 13, 2011

This is handled by 58ec5d1

@marijnh marijnh closed this as completed May 13, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Oct 26, 2020
antoyo added a commit to antoyo/rust that referenced this issue Oct 26, 2023
Fix to be able to use a target specification JSON file and document the process
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