Skip to content

Conversation

pcwalton
Copy link
Contributor

@pcwalton pcwalton commented Jul 7, 2014

except where trait objects are involved.

Part of issue #15349, though I'm leaving it open for trait objects.
Cross borrowing for trait objects remains because it is needed until we
have DST.

This will break code like:

fn foo(x: &int) { ... }

let a = box 3i;
foo(a);

Change this code to:

fn foo(x: &int) { ... }

let a = box 3i;
foo(&*a);

[breaking-change]

r? @alexcrichton

except where trait objects are involved.

Part of issue rust-lang#15349, though I'm leaving it open for trait objects.
Cross borrowing for trait objects remains because it is needed until we
have DST.

This will break code like:

    fn foo(x: &int) { ... }

    let a = box 3i;
    foo(a);

Change this code to:

    fn foo(x: &int) { ... }

    let a = box 3i;
    foo(&*a);

[breaking-change]
bors added a commit that referenced this pull request Jul 17, 2014
except where trait objects are involved.

Part of issue #15349, though I'm leaving it open for trait objects.
Cross borrowing for trait objects remains because it is needed until we
have DST.

This will break code like:

    fn foo(x: &int) { ... }

    let a = box 3i;
    foo(a);

Change this code to:

    fn foo(x: &int) { ... }

    let a = box 3i;
    foo(&*a);

[breaking-change]

r? @alexcrichton
@bors bors closed this Jul 17, 2014
@bors bors merged commit de70d76 into rust-lang:master Jul 17, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 11, 2023
…eykril

Check if lhs is also a binexpr and use its rhs in flip binexpr assist

Closes rust-lang#15508

From the original PR, flip binexpr assist is not meant to preserve equivalence, so I went with the simplest solution here.

I can add some extra checks to keep equivalence, but I think they should go in different specific assists (eg. flip arith op / flip logic op / etc), otherwise this one will get out of hand pretty quickly.
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 18, 2025
…onsistent (rust-lang#15515)

I was looking for the function that peels refs from a type while also
returning the number of refs peeled, and it turns out there were
actually two of them?? I removed the by far less popular one, and made
some other clean-up along the way

changelog: none
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

Successfully merging this pull request may close these issues.

2 participants