New CI test.
This commit is contained in:
parent
36546c7325
commit
b098160262
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -32,6 +32,7 @@ jobs:
|
|||||||
- "--features no_module"
|
- "--features no_module"
|
||||||
- "--features no_closure"
|
- "--features no_closure"
|
||||||
- "--features unicode-xid-ident"
|
- "--features unicode-xid-ident"
|
||||||
|
- "--features sync,only_i32,no_function,no_float,no_optimize,no_module,no_closure,serde,unchecked"
|
||||||
toolchain: [stable]
|
toolchain: [stable]
|
||||||
experimental: [false]
|
experimental: [false]
|
||||||
include:
|
include:
|
||||||
|
@ -33,18 +33,19 @@ pub enum OptimizationLevel {
|
|||||||
|
|
||||||
impl OptimizationLevel {
|
impl OptimizationLevel {
|
||||||
/// Is the `OptimizationLevel` [`None`][OptimizationLevel::None]?
|
/// Is the `OptimizationLevel` [`None`][OptimizationLevel::None]?
|
||||||
|
#[allow(dead_code)]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn is_none(self) -> bool {
|
pub fn is_none(self) -> bool {
|
||||||
self == Self::None
|
self == Self::None
|
||||||
}
|
}
|
||||||
/// Is the `OptimizationLevel` [`Simple`][OptimizationLevel::Simple]?
|
/// Is the `OptimizationLevel` [`Simple`][OptimizationLevel::Simple]?
|
||||||
#[cfg(not(feature = "no_optimize"))]
|
#[allow(dead_code)]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn is_simple(self) -> bool {
|
pub fn is_simple(self) -> bool {
|
||||||
self == Self::Simple
|
self == Self::Simple
|
||||||
}
|
}
|
||||||
/// Is the `OptimizationLevel` [`Full`][OptimizationLevel::Full]?
|
/// Is the `OptimizationLevel` [`Full`][OptimizationLevel::Full]?
|
||||||
#[cfg(not(feature = "no_optimize"))]
|
#[allow(dead_code)]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn is_full(self) -> bool {
|
pub fn is_full(self) -> bool {
|
||||||
self == Self::Full
|
self == Self::Full
|
||||||
|
Loading…
Reference in New Issue
Block a user