@@ -74,7 +74,6 @@ pub(crate) struct LuaGuard(ArcReentrantMutexGuard<RawLua>);
7474#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
7575pub enum GCMode {
7676 Incremental ,
77- /// Requires `feature = "lua54"`
7877 #[ cfg( feature = "lua54" ) ]
7978 #[ cfg_attr( docsrs, doc( cfg( feature = "lua54" ) ) ) ]
8079 Generational ,
@@ -511,8 +510,6 @@ impl Lua {
511510 /// # #[cfg(not(feature = "luau"))]
512511 /// # fn main() {}
513512 /// ```
514- ///
515- /// Requires `feature = "luau"`
516513 #[ cfg( any( feature = "luau" , doc) ) ]
517514 #[ cfg_attr( docsrs, doc( cfg( feature = "luau" ) ) ) ]
518515 pub fn sandbox ( & self , enabled : bool ) -> Result < ( ) > {
@@ -812,8 +809,6 @@ impl Lua {
812809 }
813810
814811 /// Sets the warning function to be used by Lua to emit warnings.
815- ///
816- /// Requires `feature = "lua54"`
817812 #[ cfg( feature = "lua54" ) ]
818813 #[ cfg_attr( docsrs, doc( cfg( feature = "lua54" ) ) ) ]
819814 pub fn set_warning_function < F > ( & self , callback : F )
@@ -847,8 +842,6 @@ impl Lua {
847842 /// Removes warning function previously set by `set_warning_function`.
848843 ///
849844 /// This function has no effect if a warning function was not previously set.
850- ///
851- /// Requires `feature = "lua54"`
852845 #[ cfg( feature = "lua54" ) ]
853846 #[ cfg_attr( docsrs, doc( cfg( feature = "lua54" ) ) ) ]
854847 pub fn remove_warning_function ( & self ) {
@@ -863,8 +856,6 @@ impl Lua {
863856 ///
864857 /// A message in a call with `incomplete` set to `true` should be continued in
865858 /// another call to this function.
866- ///
867- /// Requires `feature = "lua54"`
868859 #[ cfg( feature = "lua54" ) ]
869860 #[ cfg_attr( docsrs, doc( cfg( feature = "lua54" ) ) ) ]
870861 pub fn warning ( & self , msg : impl AsRef < str > , incomplete : bool ) {
@@ -939,8 +930,6 @@ impl Lua {
939930 }
940931
941932 /// Returns `true` if the garbage collector is currently running automatically.
942- ///
943- /// Requires `feature = "lua54/lua53/lua52/luau"`
944933 #[ cfg( any( feature = "lua54" , feature = "lua53" , feature = "lua52" , feature = "luau" ) ) ]
945934 pub fn gc_is_running ( & self ) -> bool {
946935 let lua = self . lock ( ) ;
@@ -1078,8 +1067,6 @@ impl Lua {
10781067 /// Returns the previous mode. More information about the generational GC
10791068 /// can be found in the Lua 5.4 [documentation][lua_doc].
10801069 ///
1081- /// Requires `feature = "lua54"`
1082- ///
10831070 /// [lua_doc]: https://www.lua.org/manual/5.4/manual.html#2.5.2
10841071 #[ cfg( feature = "lua54" ) ]
10851072 #[ cfg_attr( docsrs, doc( cfg( feature = "lua54" ) ) ) ]
@@ -1100,8 +1087,6 @@ impl Lua {
11001087 /// including via `require` function.
11011088 ///
11021089 /// See [`Compiler`] for details and possible options.
1103- ///
1104- /// Requires `feature = "luau"`
11051090 #[ cfg( any( feature = "luau" , doc) ) ]
11061091 #[ cfg_attr( docsrs, doc( cfg( feature = "luau" ) ) ) ]
11071092 pub fn set_compiler ( & self , compiler : Compiler ) {
@@ -1176,8 +1161,6 @@ impl Lua {
11761161
11771162 /// Create and return a Luau [buffer] object from a byte slice of data.
11781163 ///
1179- /// Requires `feature = "luau"`
1180- ///
11811164 /// [buffer]: https://luau.org/library#buffer-library
11821165 #[ cfg( any( feature = "luau" , doc) ) ]
11831166 #[ cfg_attr( docsrs, doc( cfg( feature = "luau" ) ) ) ]
@@ -1342,8 +1325,6 @@ impl Lua {
13421325 ///
13431326 /// The family of `call_async()` functions takes care about creating [`Thread`].
13441327 ///
1345- /// Requires `feature = "async"`
1346- ///
13471328 /// # Examples
13481329 ///
13491330 /// Non blocking sleep:
@@ -1409,8 +1390,6 @@ impl Lua {
14091390 }
14101391
14111392 /// Creates a Lua userdata object from a custom serializable userdata type.
1412- ///
1413- /// Requires `feature = "serialize"`
14141393 #[ cfg( feature = "serialize" ) ]
14151394 #[ cfg_attr( docsrs, doc( cfg( feature = "serialize" ) ) ) ]
14161395 #[ inline]
@@ -1439,8 +1418,6 @@ impl Lua {
14391418 /// Creates a Lua userdata object from a custom serializable Rust type.
14401419 ///
14411420 /// See [`Lua::create_any_userdata`] for more details.
1442- ///
1443- /// Requires `feature = "serialize"`
14441421 #[ cfg( feature = "serialize" ) ]
14451422 #[ cfg_attr( docsrs, doc( cfg( feature = "serialize" ) ) ) ]
14461423 #[ inline]
0 commit comments