Skip to main content

normalize_diagnostic_path

Function normalize_diagnostic_path 

Source
pub fn normalize_diagnostic_path(path: &str) -> String
Expand description

Normalize diagnostic filenames lexically for display.

This deliberately does not touch the filesystem: diagnostics should cancel . and .. path components even when the path points at a file that no longer exists, without resolving symlinks.