Rename Span::empty
to Span::shrink_to_lo
, add Span::shrink_to_hi
This commit is contained in:
parent
e5fb13897d
commit
f88162654d
22 changed files with 38 additions and 31 deletions
|
@ -76,7 +76,7 @@ pub fn maybe_inject_crates_ref(mut krate: ast::Crate, alt_std_name: Option<&str>
|
|||
is_sugared_doc: false,
|
||||
span,
|
||||
}],
|
||||
vis: respan(span.empty(), ast::VisibilityKind::Inherited),
|
||||
vis: respan(span.shrink_to_lo(), ast::VisibilityKind::Inherited),
|
||||
node: ast::ItemKind::Use(P(ast::UseTree {
|
||||
prefix: ast::Path {
|
||||
segments: [name, "prelude", "v1"].into_iter().map(|name| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue