Skip to content

Commit 7852a4c

Browse files
committed
Auto merge of #17337 - Veykril:assert-info, r=Veykril
Add path info to `AbsPathBuf::assert`'s assert cc #17335
2 parents 6b9baed + cdb4f96 commit 7852a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/paths/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl AbsPath {
197197
///
198198
/// Panics if `path` is not absolute.
199199
pub fn assert(path: &Utf8Path) -> &AbsPath {
200-
assert!(path.is_absolute());
200+
assert!(path.is_absolute(), "{path} is not absolute");
201201
unsafe { &*(path as *const Utf8Path as *const AbsPath) }
202202
}
203203

0 commit comments

Comments
 (0)