File: 2002_no_nightly.patch

package info (click to toggle)
rust-hstr 0%2B20250327-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,592 kB
  • sloc: makefile: 24; sh: 1
file content (26 lines) | stat: -rw-r--r-- 818 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: avoid nightly-only hints
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2025-04-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/crates/shrink-to-fit/src/lib.rs
+++ b/crates/shrink-to-fit/src/lib.rs
@@ -17,9 +17,6 @@
 //! assert_eq!(vec.capacity(), 3);
 //! ```
 #![deny(warnings)]
-#![cfg_attr(docsrs, feature(doc_cfg))]
-#![cfg_attr(feature = "nightly", feature(specialization))]
-#![cfg_attr(feature = "nightly", allow(incomplete_features))]
 
 use std::{
     collections::{BinaryHeap, HashMap, HashSet, VecDeque},
@@ -34,7 +31,6 @@
 mod maybe;
 
 #[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
 pub use shrink_to_fit_macro::ShrinkToFit;
 
 /// Recursively calls `shrink_to_fit` on all elements of the container.