summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index 760c49b..e50a2b2 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -37,7 +37,8 @@ pub enum Error {
/// Lua garbage collector error, aka `LUA_ERRGCMM`.
///
/// The Lua VM returns this error when there is an error running a `__gc` metamethod.
- #[cfg(any(feature = "lua53", feature = "lua52"))]
+ #[cfg(any(feature = "lua53", feature = "lua52", doc))]
+ #[cfg_attr(docsrs, doc(cfg(any(feature = "lua53", feature = "lua52"))))]
GarbageCollectorError(StdString),
/// Potentially unsafe action in safe mode.
SafetyError(StdString),