Skip to content

Commit a5f6aad

Browse files
committed
Remove nightly checks.
Async fn in traits has been stable for 7 months, it's very unlikely someone is using such old nightlies. Fixes #618
1 parent d31dfde commit a5f6aad

File tree

8 files changed

+0
-105
lines changed

8 files changed

+0
-105
lines changed

embedded-hal-async/build.rs

Lines changed: 0 additions & 18 deletions
This file was deleted.

embedded-hal-async/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
#![doc = include_str!("../README.md")]
22
#![warn(missing_docs)]
33
#![no_std]
4-
// disable warning for already-stabilized features.
5-
// Needed to pass CI, because we deny warnings.
6-
// We don't immediately remove them to not immediately break older nightlies.
7-
// When all features are stable, we'll remove them.
8-
#![cfg_attr(nightly, allow(stable_features, unknown_lints))]
9-
#![cfg_attr(nightly, feature(async_fn_in_trait, impl_trait_projections))]
104
#![allow(async_fn_in_trait)]
115

126
pub mod delay;

embedded-hal-bus/build.rs

Lines changed: 0 additions & 18 deletions
This file was deleted.

embedded-hal-bus/src/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22
#![warn(missing_docs)]
33
#![cfg_attr(not(feature = "std"), no_std)]
44
#![cfg_attr(docsrs, feature(doc_cfg))]
5-
// disable warning for already-stabilized features.
6-
// Needed to pass CI, because we deny warnings.
7-
// We don't immediately remove them to not immediately break older nightlies.
8-
// When all features are stable, we'll remove them.
9-
#![cfg_attr(all(feature = "async", nightly), allow(stable_features))]
10-
#![cfg_attr(
11-
all(feature = "async", nightly),
12-
feature(async_fn_in_trait, impl_trait_projections)
13-
)]
145

156
// needed to prevent defmt macros from breaking, since they emit code that does `defmt::blahblah`.
167
#[cfg(feature = "defmt-03")]

embedded-io-adapters/build.rs

Lines changed: 0 additions & 18 deletions
This file was deleted.

embedded-io-adapters/src/lib.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
#![cfg_attr(docsrs, feature(doc_cfg))]
33
#![warn(missing_docs)]
44
#![doc = include_str!("../README.md")]
5-
// disable warning for already-stabilized features.
6-
// Needed to pass CI, because we deny warnings.
7-
// We don't immediately remove them to not immediately break older nightlies.
8-
// When all features are stable, we'll remove them.
9-
#![cfg_attr(
10-
all(any(feature = "tokio-1", feature = "futures-03"), nightly),
11-
allow(stable_features)
12-
)]
13-
#![cfg_attr(
14-
all(any(feature = "tokio-1", feature = "futures-03"), nightly),
15-
feature(async_fn_in_trait, impl_trait_projections)
16-
)]
175

186
#[cfg(feature = "std")]
197
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]

embedded-io-async/build.rs

Lines changed: 0 additions & 18 deletions
This file was deleted.

embedded-io-async/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
#![cfg_attr(docsrs, feature(doc_cfg))]
33
#![warn(missing_docs)]
44
#![doc = include_str!("../README.md")]
5-
// disable warning for already-stabilized features.
6-
// Needed to pass CI, because we deny warnings.
7-
// We don't immediately remove them to not immediately break older nightlies.
8-
// When all features are stable, we'll remove them.
9-
#![cfg_attr(nightly, allow(stable_features, unknown_lints))]
10-
#![cfg_attr(nightly, feature(async_fn_in_trait, impl_trait_projections))]
115
#![allow(async_fn_in_trait)]
126

137
#[cfg(feature = "alloc")]

0 commit comments

Comments
 (0)