fn ignored_span(cx: &TestCtxt, sp: Span) -> Span {
    let info = ExpnInfo {
        call_site: DUMMY_SP,
        callee: NameAndSpan {
            format: MacroAttribute(intern("test")),
            span: None,
            allow_internal_unstable: true,
        }
    };
    let expn_id = cx.sess.codemap().record_expansion(info);
    let mut sp = sp;
    sp.expn_id = expn_id;
    return sp;
}
/// Craft a span that will be ignored by the stability lint's
/// call to codemap's is_internal check.
/// The expanded code calls some unstable functions in the test crate.
Craft a span that will be ignored by the stability lint's
call to codemap's is_internal check.
The expanded code calls some unstable functions in the test crate.
Craft a span that will be ignored by the stability lint ' s call to codemap ' s is_internal check . The expanded code calls some unstable functions in the test crate .
fn ignored_span(cx: &TestCtxt, sp: Span) -> Span {
    let info = ExpnInfo {
        call_site: DUMMY_SP,
        callee: NameAndSpan {
            format: MacroAttribute(intern("test")),
            span: None,
            allow_internal_unstable: true,
        }
    };
    let expn_id = cx.sess.codemap().record_expansion(info);
    let mut sp = sp;
    sp.expn_id = expn_id;
    return sp;
}
fn ignored_span ( cx : & TestCtxt , sp : Span ) -> Span { let info = ExpnInfo { call_site : DUMMY_SP , callee : NameAndSpan { format : MacroAttribute ( intern ( " " ) ) , span : None , allow_internal_unstable : true , } } ; let expn_id = cx . sess . codemap ( ) . record_expansion ( info ) ; let mut sp = sp ; sp . expn_id = expn_id ; return sp ; }
Craft a span that will be ignored by the stability lint's
call to codemap's is_internal check.
Craft a span that will be ignored by the stability lint ' s call to codemap ' s is_internal check .
cx
&TestCtxt
sp
Span
cx
&TestCtxt
sp
Span