We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4717bdf + a10d710 commit 1bed783Copy full SHA for 1bed783
src/tools/rust-analyzer/crates/paths/src/lib.rs
@@ -197,7 +197,7 @@ impl AbsPath {
197
///
198
/// Panics if `path` is not absolute.
199
pub fn assert(path: &Utf8Path) -> &AbsPath {
200
- assert!(path.is_absolute());
+ assert!(path.is_absolute(), "{path} is not absolute");
201
unsafe { &*(path as *const Utf8Path as *const AbsPath) }
202
}
203
0 commit comments