diff --git a/CHANGELOG.md b/CHANGELOG.md index 87ed68c4..2a7676a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## Unreleased + +## Fixed +- Fixed macro hygiene for `path!`. + ## [v0.4.0] - 2023-02-07 This release fixes an overflow of the lookahead buffer. Users are advised to diff --git a/src/lib.rs b/src/lib.rs index 4ecd1d6a..2b4655de 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -187,7 +187,7 @@ pub struct Version { #[macro_export] macro_rules! path { ($path:literal) => { - Path::from_str_with_nul(::core::concat!($path, "\0")) + $crate::path::Path::from_str_with_nul(::core::concat!($path, "\0")) }; }