pub fn ident_to_path(s: Span, identifier: Ident) -> Path {
    ast::Path {
        span: s,
        global: false,
        segments: vec!(
            ast::PathSegment {
                identifier: identifier,
                parameters: ast::AngleBracketedParameters(ast::AngleBracketedParameterData {
                    lifetimes: Vec::new(),
                    types: OwnedSlice::empty(),
                    bindings: OwnedSlice::empty(),
                })
            }
        ),
    }
}
// convert a span and an identifier to the corresponding
// 1-segment path
convert a span and an identifier to the corresponding
1-segment path
convert a span and an identifier to the corresponding 1 - segment path
pub fn ident_to_path(s: Span, identifier: Ident) -> Path {
    ast::Path {
        span: s,
        global: false,
        segments: vec!(
            ast::PathSegment {
                identifier: identifier,
                parameters: ast::AngleBracketedParameters(ast::AngleBracketedParameterData {
                    lifetimes: Vec::new(),
                    types: OwnedSlice::empty(),
                    bindings: OwnedSlice::empty(),
                })
            }
        ),
    }
}
pub fn ident_to_path ( s : Span , identifier : Ident ) -> Path { ast :: Path { span : s , global : false , segments : vec ! ( ast PathSegment { identifier identifier parameters ast AngleBracketedParameters ( ast AngleBracketedParameterData { lifetimes Vec new ( ) types OwnedSlice empty ( ) bindings OwnedSlice empty ( ) } ) } ) , } }
convert a span and an identifier to the corresponding
1-segment path
convert a span and an identifier to the corresponding 1 - segment path
s
Span
identifier
Ident
s
Span
identifier
Ident