about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/diagnostics.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Detect struct literal needing parenthesesEsteban Küber-11/+26
Fix #82051.
2023-01-08Do not emit structured suggestion for turbofish with wrong spanEsteban Küber-2/+10
Fix #79161.
2022-12-29Rollup merge of #106242 - estebank:diff-markers, r=jyn514Matthias Krüger-1/+71
Detect diff markers in the parser Partly address #32059.
2022-12-28Add support for diff3 formatEsteban Küber-0/+7
2022-12-28Tweak wordingEsteban Küber-4/+15
2022-12-28Detect diff markers in the parserEsteban Küber-1/+53
Partly address #32059.
2022-12-28Rename `Rptr` to `Ref` in AST and HIRNilstrieb-1/+1
The name makes a lot more sense, and `ty::TyKind` calls it `Ref` already as well.
2022-12-26remove unused importsTakayuki Maeda-1/+0
2022-12-14Auto merge of #104875 - chenyukang:yukang/fix-104867-inc, r=estebankbors-35/+15
Properly handle postfix inc/dec in standalone and subexpr scenarios Fixes #104867 r? `@estebank`
2022-11-27Prefer doc comments over `//`-comments in compilerMaybe Waffle-3/+3
2022-11-26will not suggest for postfix operator when can not handle precedences wellyukang-1/+5
2022-11-26add start_stmt to handle postfix incrementyukang-14/+15
2022-11-25fix #104867, Properly handle postfix inc/dec in standalone and subexpr scenariosyukang-41/+16
2022-11-24Auto merge of #104507 - WaffleLapkin:asderefsyou, r=wesleywiserbors-1/+1
Use `as_deref` in compiler (but only where it makes sense) This simplifies some code :3 (there are some changes that are not exacly `as_deref`, but more like "clever `Option`/`Result` method use")
2022-11-22`rustc_parse`: remove `ref` patternsMaybe Waffle-5/+5
2022-11-21Match crate and slug namesmejrs-1/+1
2022-11-19Rollup merge of #104566 - matthiaskrgr:clippy_perf_nov18, r=oli-obkDylan DPC-2/+2
couple of clippy::perf fixes
2022-11-18couple of clippy::perf fixesMatthias Krüger-2/+2
2022-11-17Use `ThinVec` in `ast::Path`.Nicholas Nethercote-8/+11
2022-11-17Box `ExprKind::{Closure,MethodCall}`, and `QSelf` in expressions, types, and ↵Nicholas Nethercote-5/+5
patterns.
2022-11-16Use `as_deref` in compiler (but only where it makes sense)Maybe Waffle-1/+1
2022-11-11Rollup merge of #103468 - chenyukang:yukang/fix-103435-extra-parentheses, ↵Manish Goregaokar-5/+19
r=estebank Fix unused lint and parser caring about spaces to won't produce invalid code Fixes #103435
2022-11-04Don't silently eat label before block in block-like exprMichael Goulet-4/+8
2022-10-28Gate some recovery behind a flagNilstrieb-0/+12
Mainly in `expr.rs`
2022-10-24fix parentheses surrounding spacing issue in parseryukang-5/+19
2022-10-23Migrate all diagnosticsNilstrieb-1/+1
2022-10-21Rollup merge of #102922 - kper:bugfix/102902-filtering-json, r=oli-obkDylan DPC-1/+9
Filtering spans when emitting json According to the issue #102902, we shouldn't emit spans which have an empty span and no suggested replacement.
2022-10-20Implement assertions and fixes to not emit empty spans without suggestionsKevin Per-1/+9
2022-10-18Fix the bug of next_point in spanyukang-2/+2
2022-10-14more dupe word typosRageking8-1/+1
2022-09-30Remove expr_parentheses_needed from ParseSessMichael Goulet-1/+2
2022-09-27Implement IntoDiagnosticArg for rustc_ast::token::Token(Kind)Xiretza-3/+3
2022-09-27Document use of Symbol::to_string()Xiretza-0/+2
2022-09-27Migrate even more diagnostics in rustc_parse to diagnostic structsXiretza-193/+109
2022-09-27Migrate "struct literal body without path" error to diagnostic structXiretza-16/+11
2022-09-27Migrate "expected semicolon" diagnostics to diagnostic structsXiretza-16/+21
2022-09-27Migrate "expected identifier" diagnostics to diagnostic structsXiretza-29/+25
2022-09-27Migrate more rustc_parse diagnostics to diagnostic structsXiretza-37/+0
2022-09-27Move rustc_parse diagnostic structs to separate moduleXiretza-781/+5
2022-09-27Migrate "invalid literal suffix" diagnostic to diagnostic structsXiretza-1/+25
2022-09-27Migrate more diagnostics in rustc_parse to diagnostic structsXiretza-3/+247
2022-09-26Rollup merge of #102286 - compiler-errors:recover-semi-in-block-item, ↵Matthias Krüger-0/+8
r=davidtwco Recover some items that expect braces and don't take semicolons Fixes #102262
2022-09-25Recover some items that expect braces and don't take semicolonsMichael Goulet-0/+8
2022-09-22Add missing code="" attributes to suggestion subdiagnosticsXiretza-4/+4
2022-09-21FIX - adopt new Diagnostic naming in newly migrated modulesJhonny Bill Mena-2/+2
FIX - ambiguous Diagnostic link in docs UPDATE - rename diagnostic_items to IntoDiagnostic and AddToDiagnostic [Gardening] FIX - formatting via `x fmt` FIX - rebase conflicts. NOTE: Confirm wheather or not we want to handle TargetDataLayoutErrorsWrapper this way DELETE - unneeded allow attributes in Handler method FIX - broken test FIX - Rebase conflict UPDATE - rename residual _SessionDiagnostic and fix LintDiag link
2022-09-21UPDATE - rename SessionSubdiagnostic macro to SubdiagnosticJhonny Bill Mena-7/+7
Also renames: - sym::AddSubdiagnostic to sym:: Subdiagnostic - rustc_diagnostic_item = "AddSubdiagnostic" to rustc_diagnostic_item = "Subdiagnostic"
2022-09-21UPDATE - rename DiagnosticHandler macro to DiagnosticJhonny Bill Mena-42/+42
2022-09-21UPDATE - rename DiagnosticHandler trait to IntoDiagnosticJhonny Bill Mena-42/+42
2022-09-16use subdiagnostic for logical negation, bitwise notyukang-3/+26
2022-09-15more tweak on diagnostic messagesyukang-0/+1