diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-25 13:12:55 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-25 13:12:55 +0200 | 
| commit | c0bbb4bcdce880711c13b535fc4d9cd369741782 (patch) | |
| tree | 8d77ecdc401e9ae082a217c707d933ecd197708b /src/libsyntax/parse/parser.rs | |
| parent | cbcbba24ac3e435e870499e833606880e039f33c (diff) | |
| parent | 5ff7349ef79f10df6063e43f03e5bb8cac5a65b7 (diff) | |
| download | rust-c0bbb4bcdce880711c13b535fc4d9cd369741782.tar.gz rust-c0bbb4bcdce880711c13b535fc4d9cd369741782.zip | |
Rollup merge of #65790 - Centril:move-report-invalid, r=davidtwco
move report_invalid_macro_expansion_item to item.rs From https://github.com/rust-lang/rust/pull/65324. r? @Mark-Simulacrum
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 19 | 
1 files changed, 0 insertions, 19 deletions
| diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index f25224d1e36..6ead1ce811d 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1368,25 +1368,6 @@ impl<'a> Parser<'a> { } } } - - fn report_invalid_macro_expansion_item(&self) { - self.struct_span_err( - self.prev_span, - "macros that expand to items must be delimited with braces or followed by a semicolon", - ).multipart_suggestion( - "change the delimiters to curly braces", - vec![ - (self.prev_span.with_hi(self.prev_span.lo() + BytePos(1)), String::from(" {")), - (self.prev_span.with_lo(self.prev_span.hi() - BytePos(1)), '}'.to_string()), - ], - Applicability::MaybeIncorrect, - ).span_suggestion( - self.sess.source_map().next_point(self.prev_span), - "add a semicolon", - ';'.to_string(), - Applicability::MaybeIncorrect, - ).emit(); - } } pub fn emit_unclosed_delims(unclosed_delims: &mut Vec<UnmatchedBrace>, handler: &errors::Handler) { | 
