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

Add miri trophy for LazyArray::swap (ink! PR) #1368

Merged
merged 2 commits into from
Apr 25, 2020

Conversation

Robbepop
Copy link
Contributor

Details to the found in #1364.
Note that this was not a found in a master or production release of ink!, however without analysing the code via miri this could have potentially happened.

Details to the found in rust-lang#1364.
Note that this was not a found in a `master` or production release of ink!, however without analysing the code via `miri` this could have potentially happened.
@RalfJung
Copy link
Member

Thanks!
@bors r+

@bors
Copy link
Collaborator

bors commented Apr 25, 2020

📌 Commit 72442ac has been approved by RalfJung

@bors
Copy link
Collaborator

bors commented Apr 25, 2020

⌛ Testing commit 72442ac with merge 80af4d0...

bors added a commit that referenced this pull request Apr 25, 2020
…alfJung

Add miri trophy for LazyArray::swap (ink! PR)

Details to the found in #1364.
Note that this was not a found in a `master` or production release of ink!, however without analysing the code via `miri` this could have potentially happened.
README.md Outdated
@@ -281,6 +281,7 @@ Violations of [Stacked Borrows] found that are likely bugs (but Stacked Borrows
* [Aliasing mutable references in `sized-chunks`](https://github.com/bodil/sized-chunks/issues/8)
* [`String::push_str` invalidating existing references into the string](https://github.com/rust-lang/rust/issues/70301)
* [`ryu` using raw pointers outside their valid memory area](https://github.com/dtolnay/ryu/issues/24)
* [`LazyArray::swap` method creating overlapping mutable references (ink! PR)](https://github.com/rust-lang/miri/issues/1364)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am confused by the ink! PR part here, is there a PR we could link to?

Copy link
Contributor Author

@Robbepop Robbepop Apr 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR where this bug was caught is this:
use-ink/ink#311
However, I am not sure it makes sense to link the PR since the PR is already linked via the linked miri issue that adds a lot more context to the underlying issue than the PR.
I should note that the ink! PR is kind of important in that it represents the next generation of a very important module within the ink! framework.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, and that's not a PR for just a fix, it's a more general thing.

But then the link text is confusing, because it sounds like it links to an ink! PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall I remove the "(ink! PR)" parentheses?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be good I think -- but ink! should appear somehow. Maybe just replace LazyArray::swap by it? Like,

ink! creating overlapping mutable references

(or maybe without backticks)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@RalfJung
Copy link
Member

@bors r- retry
let's resolve my confusion first

@bors
Copy link
Collaborator

bors commented Apr 25, 2020

☀️ Try build successful - checks-travis, status-appveyor
Build commit: 80af4d0 (80af4d0f46c77b664e38b8cb0af5d83d4e4dceee)

@RalfJung
Copy link
Member

Looking good. :)
@bors r+

@bors
Copy link
Collaborator

bors commented Apr 25, 2020

📌 Commit 3f43305 has been approved by RalfJung

@bors
Copy link
Collaborator

bors commented Apr 25, 2020

⌛ Testing commit 3f43305 with merge 97ae5b6...

@bors
Copy link
Collaborator

bors commented Apr 25, 2020

☀️ Test successful - checks-travis, status-appveyor
Approved by: RalfJung
Pushing 97ae5b6 to master...

@bors bors merged commit 97ae5b6 into rust-lang:master Apr 25, 2020
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.

None yet

3 participants