Skip to content

Commit

Permalink
Just remove the problematic lines for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
someguynamedjosh committed Aug 8, 2022
1 parent 73be582 commit d5fc224
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions ouroboros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,6 @@ pub mod macro_help {
}

std_type_check!(is_std_box_type T alloc::boxed::Box<T>);
#[cfg(not(feature = "std"))]
#[cfg(target_has_atomic = "ptr")] // alloc::sync is missing if this is false
std_type_check!(is_std_arc_type T alloc::sync::Arc<T>);
#[cfg(feature = "std")]
std_type_check!(is_std_arc_type T alloc::sync::Arc<T>);
std_type_check!(is_std_rc_type T alloc::rc::Rc<T>);

Expand Down
3 changes: 0 additions & 3 deletions ouroboros_macro/src/covariance_detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ use syn::{GenericArgument, PathArguments, Type};

use crate::utils::uses_this_lifetime;

#[cfg(feature = "std")]
const STD_CONTAINER_TYPES: &[&str] = &["Box", "Arc", "Rc"];
#[cfg(not(feature = "std"))]
const STD_CONTAINER_TYPES: &[&str] = &["Box", "Rc"];

/// Returns Some((type_name, element_type)) if the provided type appears to be Box, Arc, or Rc from
/// the standard library. Returns None if not.
Expand Down
1 change: 0 additions & 1 deletion ouroboros_macro/src/generate/type_asserts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ pub fn make_type_asserts(info: &StructInfo) -> TokenStream {
if let Some((std_type, _eltype)) = apparent_std_container_type(field_type) {
let checker_name = match std_type {
"Box" => "is_std_box_type",
#[cfg(feature = "std")]
"Arc" => "is_std_arc_type",
"Rc" => "is_std_rc_type",
_ => unreachable!(),
Expand Down

0 comments on commit d5fc224

Please sign in to comment.