Make fields of Span
private
This commit is contained in:
parent
630e02f25b
commit
3da868dcb6
60 changed files with 316 additions and 349 deletions
|
@ -306,7 +306,7 @@ fn generate_test_harness(sess: &ParseSess,
|
|||
/// 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 {
|
||||
Span { ctxt: cx.ctxt, ..sp }
|
||||
sp.with_ctxt(cx.ctxt)
|
||||
}
|
||||
|
||||
#[derive(PartialEq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue