Skip to content

Commit

Permalink
Auto merge of #17337 - Veykril:assert-info, r=Veykril
Browse files Browse the repository at this point in the history
Add path info to `AbsPathBuf::assert`'s assert

cc #17335
  • Loading branch information
bors committed Jun 2, 2024
2 parents 6b9baed + cdb4f96 commit 7852a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/paths/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl AbsPath {
///
/// Panics if `path` is not absolute.
pub fn assert(path: &Utf8Path) -> &AbsPath {
assert!(path.is_absolute());
assert!(path.is_absolute(), "{path} is not absolute");
unsafe { &*(path as *const Utf8Path as *const AbsPath) }
}

Expand Down

0 comments on commit 7852a4c

Please sign in to comment.