-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2554 from mejrs/acquire_gil2
Deprecate acquire_gil
- Loading branch information
Showing
9 changed files
with
49 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
error[E0505]: cannot move out of `gil` because it is borrowed | ||
--> tests/ui/wrong_aspyref_lifetimes.rs:7:10 | ||
| | ||
6 | let dict: &PyDict = dict.as_ref(gil.python()); | ||
| ------------ borrow of `gil` occurs here | ||
7 | drop(gil); | ||
| ^^^ move out of `gil` occurs here | ||
8 | | ||
9 | let _py: Python = dict.py(); // Obtain a Python<'p> without GIL. | ||
| --------- borrow later used here | ||
--> tests/ui/wrong_aspyref_lifetimes.rs:8:10 | ||
| | ||
7 | let dict: &PyDict = dict.as_ref(gil.python()); | ||
| ------------ borrow of `gil` occurs here | ||
8 | drop(gil); | ||
| ^^^ move out of `gil` occurs here | ||
9 | | ||
10 | let _py: Python = dict.py(); // Obtain a Python<'p> without GIL. | ||
| --------- borrow later used here |