Skip to content

Commit d2a8508

Browse files
committed
newsfragment, CI
1 parent 99a5cd6 commit d2a8508

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

newsfragments/5468.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `CastError` and `CastIntoError`.

newsfragments/5468.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Replace `DowncastError` and `DowncastIntoError` with `CastError` and `CastIntoError`.

src/err/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ impl PyErr {
321321
#[cfg(debug_assertions)]
322322
None => panic!("{}", FAILED_TO_FETCH),
323323
#[cfg(not(debug_assertions))]
324-
None => exceptions::PySystemError::new_err(FAILED_TO_FETCH),
324+
None => crate::exceptions::PySystemError::new_err(FAILED_TO_FETCH),
325325
}
326326
}
327327

0 commit comments

Comments
 (0)