Skip to content

Commit e5364be

Browse files
authored
Merge pull request #173 from dtolnay/stdbound
Recognize std::marker::Trait bound in addition to core::marker::Trait
2 parents e2cd044 + 716fc5d commit e5364be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/expand.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ fn has_bound(supertraits: &Supertraits, marker: &Ident) -> bool {
398398
if let TypeParamBound::Trait(bound) = bound {
399399
if bound.path.is_ident(marker)
400400
|| bound.path.segments.len() == 3
401-
&& bound.path.segments[0].ident == "core"
401+
&& (bound.path.segments[0].ident == "std"
402+
|| bound.path.segments[0].ident == "core")
402403
&& bound.path.segments[1].ident == "marker"
403404
&& bound.path.segments[2].ident == *marker
404405
{

0 commit comments

Comments
 (0)