diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-06-19 01:08:45 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-11 00:12:07 +0300 |
| commit | 16918a8e28d4e7a476f31ff3d3c1e2d998c086af (patch) | |
| tree | dfb8cbb1c6f60085551a0dd32c57fda7b56c8396 /src/librustc_allocator/expand.rs | |
| parent | ec376c783e3a64445c4b55fb5980ae922319a916 (diff) | |
| download | rust-16918a8e28d4e7a476f31ff3d3c1e2d998c086af.tar.gz rust-16918a8e28d4e7a476f31ff3d3c1e2d998c086af.zip | |
Rename some things in `syntax_pos/hygiene`
More consistent with other naming: ExpnFormat -> ExpnKind ExpnKind::name -> ExpnKind::descr DesugaringKind::name -> DesugaringKind::descr Shorter, no tautology: CompilerDesugaring -> Desugaring CompilerDesugaringKind -> DesugaringKind
Diffstat (limited to 'src/librustc_allocator/expand.rs')
| -rw-r--r-- | src/librustc_allocator/expand.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_allocator/expand.rs b/src/librustc_allocator/expand.rs index d402b0ddf6e..18bbb257128 100644 --- a/src/librustc_allocator/expand.rs +++ b/src/librustc_allocator/expand.rs @@ -8,7 +8,7 @@ use syntax::{ }, attr, source_map::{ - respan, ExpnInfo, MacroAttribute, + respan, ExpnInfo, ExpnKind, }, ext::{ base::{ExtCtxt, Resolver}, @@ -87,7 +87,8 @@ impl MutVisitor for ExpandAllocatorDirectives<'_> { // Create a fresh Mark for the new macro expansion we are about to do let mark = Mark::fresh(Mark::root()); mark.set_expn_info(ExpnInfo::with_unstable( - MacroAttribute(sym::global_allocator), item.span, self.sess.edition, &[sym::rustc_attrs] + ExpnKind::MacroAttribute(sym::global_allocator), item.span, self.sess.edition, + &[sym::rustc_attrs], )); // Tie the span to the macro expansion info we just created |
