Skip to content

Commit

Permalink
Revert "Make tests unconditionally no_std."
Browse files Browse the repository at this point in the history
This reverts commit f02921a.
  • Loading branch information
01mf02 committed Oct 4, 2021
1 parent 3bf709f commit 5113e5b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
5 changes: 1 addition & 4 deletions derive/tests/grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@
// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. All files in the project carrying such notice may not be copied,
// modified, or distributed except according to those terms.
#![no_std]
#![allow(unknown_lints, clippy)]

#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
use alloc::{format, vec::Vec};

#[macro_use]
Expand Down
4 changes: 1 addition & 3 deletions derive/tests/grammar_inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. All files in the project carrying such notice may not be copied,
// modified, or distributed except according to those terms.
#![no_std]

#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
use alloc::{format, vec::Vec};

#[macro_use]
Expand Down
4 changes: 1 addition & 3 deletions derive/tests/lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. All files in the project carrying such notice may not be copied,
// modified, or distributed except according to those terms.
#![no_std]

#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
use alloc::{format, vec::Vec};

#[macro_use]
Expand Down
4 changes: 1 addition & 3 deletions derive/tests/reporting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. All files in the project carrying such notice may not be copied,
// modified, or distributed except according to those terms.
#![no_std]

#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
use alloc::vec;

#[macro_use]
Expand Down

0 comments on commit 5113e5b

Please sign in to comment.