about summary refs log tree commit diff
path: root/compiler/rustc_parse_format/src
AgeCommit message (Collapse)AuthorLines
2021-07-08Rework SESSION_GLOBALS API to prevent overwriting itGuillaume Gomez-2/+1
2021-05-24remove cfg(bootstrap)Pietro Albini-1/+0
2021-03-28Rollup merge of #83348 - osa1:issue83344, r=jackh726Yuki Okushi-4/+6
format macro argument parsing fix When the character next to `{}` is "shifted" (when mapping a byte index in the format string to span) we should avoid shifting the span end index, so first map the index of `}` to span, then bump the span, instead of first mapping the next byte index to a span (which causes bumping the end span too much). Regression test added. Fixes #83344 --- r? ```@estebank```
2021-03-27format macro argument parsing fixÖmer Sinan Ağacan-4/+6
When the character next to `{}` is "shifted" (when mapping a byte index in the format string to span) we should avoid shifting the span end index, so first map the index of `}` to span, then bump the span, instead of first mapping the next byte index to a span (which causes bumping the end span too much). Regression test added. Fixes #83344
2021-03-27Rollup merge of #83343 - osa1:issue83340, r=jackh726Yuki Okushi-14/+9
Simplify and fix byte skipping in format! string parser Fixes '\\' handling in format strings. Fixes #83340
2021-03-21Simplify and fix byte skipping in format! string parserÖmer Sinan Ağacan-14/+9
Fixes '\\' handling in format strings. Fixes #83340
2021-03-19stabilize or_patternsmark-1/+1
2021-02-06parse_format: treat r" as a literalDavid Hewitt-1/+1
2021-01-17rustc_parse_format: Fix character indices in find_skipsÖmer Sinan Ağacan-1/+1
Fixes #81006
2021-01-14Use Option::map_or instead of `.map(..).unwrap_or(..)`LingMan-2/+2
2020-09-23/nightly/nightly-rustcErik Hofmayer-1/+1
2020-09-23Updated html_root_url for compiler cratesErik Hofmayer-1/+1
2020-09-21Rollup merge of #76888 - matthiaskrgr:clippy_single_match_2, r=Dylan-DPCecstatic-morse-6/+3
use if let instead of single match arm expressions use if let instead of single match arm expressions to compact code and reduce nesting (clippy::single_match)
2020-09-20use if let instead of single match arm expressions to compact code and ↵Matthias Krüger-6/+3
reduce nesting (clippy::single_match)
2020-09-17Remove redundant #![feature(...)] 's from compiler/est31-2/+0
2020-08-30mv compiler to compiler/mark-0/+1125