Make fields of Span private
This commit is contained in:
parent
630e02f25b
commit
3da868dcb6
60 changed files with 316 additions and 349 deletions
|
|
@ -16,7 +16,7 @@ extern crate crate_with_invalid_spans;
|
|||
|
||||
fn main() {
|
||||
// The AST of `exported_generic` stored in crate_with_invalid_spans's
|
||||
// metadata should contain an invalid span where span.lo > span.hi.
|
||||
// metadata should contain an invalid span where span.lo() > span.hi().
|
||||
// Let's make sure the compiler doesn't crash when encountering this.
|
||||
let _ = crate_with_invalid_spans::exported_generic(32u32, 7u32);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue