pub enum LintCode {
Show 13 variants
MXL008,
MXL106,
MXL110,
MXL111,
MXL120,
MXL121,
MXL203,
MXL204,
MXL300,
MXL301,
MXL302,
MXL304,
MXL305,
}Expand description
Stable lint rule identifier.
Display format is MXL###, derived directly from the variant name.
Variants§
MXL008
Trait impl class system incompatible with inherent impl class system.
MXL106
Registered top-level function is not pub.
MXL110
Parameter name is an R reserved word; codegen will produce invalid R syntax.
MXL111
s4_* method name on #[miniextendr(s4)] impl — codegen auto-prepends s4_.
MXL120
vctrs constructor returns Self / named type, or impl has an instance-method receiver.
Mirror: miniextendr-macros/src/miniextendr_impl.rs (proc-macro hard error).
Both checks must fire on the same source; keep them in sync.
MXL121
A class R code can never create: no constructor in any impl block of
the type, and no #[miniextendr] fn or method returns it.
MXL203
internal + noexport redundancy.
MXL204
Doc link [...pkg::topic...] into an R package that is neither the
package itself, a DESCRIPTION dependency, nor shipped with R.
MXL300
Direct Rf_error/Rf_errorcall call in user code.
MXL301
_unchecked FFI call outside guard context.
MXL302
into_sexp() call inside a vec!/array literal — unprotected SEXP across allocations (UAF).
MXL304
Call to, or declaration of, R’s non-API ATTRIB / SET_ATTRIB.
MXL305
Rf_eval / R_forceAndCall / Rf_applyClosure / R_CheckUserInterrupt in a
#[miniextendr] body: an R error or interrupt there longjmps over the body’s Rust frames.
Implementations§
Trait Implementations§
impl Copy for LintCode
Source§impl Eq for LintCode
impl Eq for LintCode
1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
implementation detail of #[derive(Eq)]
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
derive_eq_internals)Source§impl Ord for LintCode
impl Ord for LintCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for LintCode
impl PartialOrd for LintCode
Source§fn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
Source§#[doc(hidden)]fn __chaining_less(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)]fn __chaining_less(&self, other: &Rhs) -> ControlFlow<bool>
partial_ord_chaining_methods)self == other, returns Continue(()).
Otherwise, returns Break(self < other), or equivalently Break(self <= other).
The only difference when chaining < and <= is how an equality result is
interpreted at the end of the chain. Read moreSource§#[doc(hidden)]fn __chaining_greater(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)]fn __chaining_greater(&self, other: &Rhs) -> ControlFlow<bool>
partial_ord_chaining_methods)__chaining_less, but for >/>= instead of </<=.impl StructuralPartialEq for LintCode
impl TrivialClone for LintCode
Auto Trait Implementations§
impl Forget for LintCode
impl Freeze for LintCode
impl RefUnwindSafe for LintCode
impl Send for LintCode
impl Sync for LintCode
impl Unpin for LintCode
impl UnsafeUnpin for LintCode
impl UnwindSafe for LintCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Printable for T
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
core_io_internals)[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
sized_type_properties)[Self]. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
MXL008: 0 bytesMXL106: 0 bytesMXL110: 0 bytesMXL111: 0 bytesMXL120: 0 bytesMXL121: 0 bytesMXL203: 0 bytesMXL204: 0 bytesMXL300: 0 bytesMXL301: 0 bytesMXL302: 0 bytesMXL304: 0 bytesMXL305: 0 bytes