diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2024-06-02 21:28:25 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2024-06-02 21:28:25 +0200 |
| commit | a10d710813c986b264a4b3213c5ef173d11c95b2 (patch) | |
| tree | e24bc21970cd8a7824b7f216c580cd54c1c75d4b | |
| parent | 4717bdfc1343953b770887460d5822c87e434d97 (diff) | |
| download | rust-a10d710813c986b264a4b3213c5ef173d11c95b2.tar.gz rust-a10d710813c986b264a4b3213c5ef173d11c95b2.zip | |
Add path info to `AbsPathBuf::assert`'s assert
| -rw-r--r-- | src/tools/rust-analyzer/crates/paths/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/paths/src/lib.rs b/src/tools/rust-analyzer/crates/paths/src/lib.rs index 2d3653401d2..b1cefe9adea 100644 --- a/src/tools/rust-analyzer/crates/paths/src/lib.rs +++ b/src/tools/rust-analyzer/crates/paths/src/lib.rs @@ -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) } } |
