diff options
| author | Nick Cameron <nrc@ncameron.org> | 2018-03-23 10:51:47 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-23 10:51:47 +1300 |
| commit | 2fbdedbf2fbf89bb00743e85c3b19cb765d6c1ad (patch) | |
| tree | 8e04c0cc71b78068b093fcf03b57aa5748d83b8d /src/utils.rs | |
| parent | 50924839e86b5c43e52a28b7b6f1f95ed05ddb7d (diff) | |
| parent | ccec777f929c9a3094caa37842367c21387d95a0 (diff) | |
Merge pull request #2549 from topecongiro/macro-def-spaces-around-colon
Add config option to control spaces around colon in macro def
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.rs b/src/utils.rs index f2202c4dcf2..522c066b02f 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -267,7 +267,7 @@ macro_rules! msg { // For format_missing and last_pos, need to use the source callsite (if applicable). // Required as generated code spans aren't guaranteed to follow on from the last span. macro_rules! source { - ($this: ident, $sp: expr) => { + ($this:ident, $sp:expr) => { $sp.source_callsite() }; } @@ -278,7 +278,7 @@ pub fn mk_sp(lo: BytePos, hi: BytePos) -> Span { // Return true if the given span does not intersect with file lines. macro_rules! out_of_file_lines_range { - ($self: ident, $span: expr) => { + ($self:ident, $span:expr) => { !$self.config.file_lines().is_all() && !$self .config @@ -288,7 +288,7 @@ macro_rules! out_of_file_lines_range { } macro_rules! skip_out_of_file_lines_range { - ($self: ident, $span: expr) => { + ($self:ident, $span:expr) => { if out_of_file_lines_range!($self, $span) { return None; } @@ -296,7 +296,7 @@ macro_rules! skip_out_of_file_lines_range { } macro_rules! skip_out_of_file_lines_range_visitor { - ($self: ident, $span: expr) => { + ($self:ident, $span:expr) => { if out_of_file_lines_range!($self, $span) { $self.push_rewrite($span, None); return; |
