-
Notifications
You must be signed in to change notification settings - Fork 796
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 #2158 from davidhewitt/inline-handle-panic
refactor: inline handle_panic into macro output
- Loading branch information
Showing
8 changed files
with
98 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'py` due to conflicting requirements | ||
error[E0597]: `gil` does not live long enough | ||
--> tests/ui/static_ref.rs:4:1 | ||
| | ||
4 | #[pyfunction] | ||
| ^^^^^^^^^^^^^ | ||
| ^^^^^^^^^^^^- | ||
| | | | ||
| | `gil` dropped here while still borrowed | ||
| borrowed value does not live long enough | ||
| cast requires that `gil` is borrowed for `'static` | ||
| | ||
note: first, the lifetime cannot outlive the anonymous lifetime #1 defined here... | ||
--> tests/ui/static_ref.rs:4:1 | ||
| | ||
4 | #[pyfunction] | ||
| ^^^^^^^^^^^^^ | ||
note: ...so that the expression is assignable | ||
--> tests/ui/static_ref.rs:4:1 | ||
| | ||
4 | #[pyfunction] | ||
| ^^^^^^^^^^^^^ | ||
= note: expected `pyo3::Python<'_>` | ||
found `pyo3::Python<'_>` | ||
= note: but, the lifetime must be valid for the static lifetime... | ||
note: ...so that reference does not outlive borrowed content | ||
--> tests/ui/static_ref.rs:4:1 | ||
| | ||
4 | #[pyfunction] | ||
| ^^^^^^^^^^^^^ | ||
= note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) |