src/linsolve.rs

changeset 94
1f19c6bbf07b
parent 93
123f7f38e161
--- a/src/linsolve.rs	Tue Apr 08 13:30:12 2025 -0500
+++ b/src/linsolve.rs	Sun Apr 27 20:29:43 2025 -0500
@@ -3,7 +3,7 @@
 */
 
 use crate::types::Float;
-#[cfg(feature = "nightly")]
+#[cfg(nightly)]
 use std::mem::MaybeUninit;
 
 /// Gaussian elimination for $AX=B$, where $A$ and $B$ are both stored in `ab`,
@@ -50,7 +50,7 @@
     // If the "nightly" feature is enabled, we will use an uninitialised array for a
     // little bit of efficiency.
     // This use of MaybeUninit assumes F : Copy. Otherwise undefined behaviour may occur.
-    #[cfg(feature = "nightly")]
+    #[cfg(nightly)]
     {
         let mut x: [[MaybeUninit<F>; K]; M] = [[const { MaybeUninit::uninit() }; K]; M];
         //unsafe { std::mem::MaybeUninit::uninit().assume_init() };
@@ -69,7 +69,7 @@
             (&x as *const _ as *const [[F; K]; M]).read()
         }
     }
-    #[cfg(not(feature = "nightly"))]
+    #[cfg(not(nightly))]
     {
         let mut x: [[F; K]; M] = [[F::ZERO; K]; M];
         for i in (0..M).rev() {

mercurial