about summary refs log tree commit diff
path: root/src/test/ui/parser/bad-lit-suffixes.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-44/+0
2022-11-16Use `token::Lit` in `ast::ExprKind::Lit`.Nicholas Nethercote-3/+2
Instead of `ast::Lit`. Literal lowering now happens at two different times. Expression literals are lowered when HIR is crated. Attribute literals are lowered during parsing. This commit changes the language very slightly. Some programs that used to not compile now will compile. This is because some invalid literals that are removed by `cfg` or attribute macros will no longer trigger errors. See this comment for more details: https://github.com/rust-lang/rust/pull/102944#issuecomment-1277476773
2022-11-16Add some more bad suffix cases in a test.Nicholas Nethercote-0/+19
2022-09-27Migrate "invalid literal suffix" diagnostic to diagnostic structsXiretza-8/+8
2020-11-27Update error to reflect that integer literals can have float suffixesCamelid-2/+2
For example, `1` is parsed as an integer literal, but it can be turned into a float with the suffix `f32`. Now the error calls them "numeric literals" and notes that you can add a float suffix since they can be either integers or floats.
2019-11-07parser: allow ABIs from literal macro fragmentsMazdak Farrokhzad-2/+2
2019-05-31fix tidyEsteban Küber-3/+0
2019-05-30Remove unecessary `-Z continue-parse-after-error` from testsEsteban Küber-1/+1
2019-05-23syntax: More consistent wording for some literal parsing errorsVadim Petrochenkov-2/+2
2019-03-26Reword invalid suffixe errorsEsteban Küber-8/+8
2019-01-06tests: Do not use `-Z parse-only`, continue compilation to test recoveryVadim Petrochenkov-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-10-21Move parse-fail tests to UIVadim Petrochenkov-0/+39