pub fn format_location( f: &mut Formatter<'_>, offset: usize, msg: Option<&str>, pos: Position, source: &Option<String>) -> Result