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

rustc: fixed regionck for owned trait casts. #13129

Closed
wants to merge 1 commit into from

Commits on Apr 8, 2014

  1. rustc: fixed regionck for owned trait casts.

    Regionck didn't do any checks for casts/coercions to an owned trait,
    which resulted in lifetimes of the source pointer
    to be ignored in the result of such cast.
    
    This fix constraints all regions of the source type of the cast/coercion to be superregions
    of each region of the target type (if target trait definition has some lifetime params),
    or of 'static lifetime (if there're no lifetime params in target trait's definition).
    
    Closes rust-lang#5723
    Closes rust-lang#9745
    Closes rust-lang#11971
    dmski committed Apr 8, 2014
    Configuration menu
    Copy the full SHA
    4d77945 View commit details
    Browse the repository at this point in the history