PathArgument::is_none is only called from Path::is_ident
diff --git a/src/path.rs b/src/path.rs
index d435228..20c70cd 100644
--- a/src/path.rs
+++ b/src/path.rs
@@ -86,6 +86,7 @@
         }
     }
 
+    #[cfg(feature = "parsing")]
     fn is_none(&self) -> bool {
         match *self {
             PathArguments::None => true,