about summary refs log tree commit diff
path: root/compiler/rustc_parse
AgeCommit message (Expand)AuthorLines
2022-03-20Take &mut Diagnostic in emit_diagnostic.Camille GILLOT-4/+4
2022-03-20fix a not emitted unmatched angle bracket errorTakayuki Maeda-1/+1
2022-03-18suggest removing type ascription in bad positionMichael Goulet-6/+35
2022-03-18use `self.create_snapshot_for_diagnostic` instead of `self.clone()`Takayuki Maeda-5/+6
2022-03-17Rollup merge of #94960 - codehorseman:master, r=oli-obkDylan DPC-1/+1
2022-03-17Rollup merge of #94731 - TaKO8Ki:const-generic-expr-recovery, r=davidtwco,oli...Dylan DPC-36/+88
2022-03-17Rollup merge of #93222 - mark-i-m:errorreported, r=oli-obkDylan DPC-4/+4
2022-03-17Rollup merge of #91133 - terrarier2111:unsafe-diagnostic, r=jackh726Dylan DPC-3/+25
2022-03-16rustc_error: make ErrorReported impossible to constructmark-4/+4
2022-03-16resolve the conflict in compiler/rustc_session/src/parse.rscodehorseman-1/+1
2022-03-15Parse inner attributes on inline const blockDavid Tolnay-2/+2
2022-03-15use `format_args_capture` in some parts of rustc_parseTakayuki Maeda-61/+60
2022-03-15Auto merge of #94584 - pnkfelix:inject-use-suggestion-sites, r=ekuberbors-5/+8
2022-03-12Auto merge of #94865 - notriddle:notriddle/single-colon-path-not-const-generi...bors-0/+13
2022-03-12Use consistent prose for `::`Michael Howell-1/+1
2022-03-11diagnostics: single colon within `<>` probably, not type ascriptionMichael Howell-0/+13
2022-03-11Rollup merge of #94839 - TaKO8Ki:suggest-using-double-colon-for-struct-field-...Dylan DPC-0/+10
2022-03-11fix a suggestion messageTakayuki Maeda-1/+1
2022-03-11suggest using double colon when using single colon in struct field type pathTakayuki Maeda-0/+10
2022-03-10replace `self.clone()` with `self.create_snapshot_for_diagnostic()`Takayuki Maeda-36/+36
2022-03-10add doc commentsTakayuki Maeda-5/+14
2022-03-09implement `SnapshotParser` structTakayuki Maeda-6/+33
2022-03-09take over unclosed_delimsTakayuki Maeda-0/+1
2022-03-09remove an unnecessary commentTakayuki Maeda-1/+0
2022-03-09implement and use `diagnostic_snapshot`Takayuki Maeda-2/+8
2022-03-09initialize unclosed_delims fieldTakayuki Maeda-0/+1
2022-03-08suggest adding `{ .. }` around a const function with argumentsTakayuki Maeda-0/+9
2022-03-07diagnostics: only talk about `Cargo.toml` if running under CargoMichael Howell-6/+3
2022-03-06Auto merge of #90076 - jackh726:wherethewhere, r=nikomatsakisbors-53/+29
2022-03-05Change syntax for TyAlias where clausesJack Huey-53/+29
2022-03-05Rollup merge of #94633 - TaKO8Ki:suggest-removing-semicolon-after-derive-attr...Ralf Jung-0/+10
2022-03-06suggest removing a semicolon after derive attributesTakayuki Maeda-0/+10
2022-03-04Do not recover from `Ty?` in macro parsingEsteban Kuber-15/+27
2022-03-03Adjusted diagnostic output so that if there is no `use` in a item sequence,Felix S. Klock II-1/+4
2022-03-03Associate multiple with a crate too.Felix S. Klock II-3/+2
2022-03-03refactor: prepare to associate multiple spans with a module.Felix S. Klock II-3/+4
2022-03-02rename ErrorReported -> ErrorGuaranteedmark-26/+28
2022-02-28Rollup merge of #94445 - c410-f3r:more-let-chains, r=cjgillotMatthias Krüger-76/+72
2022-02-28Tweak diagnosticsEsteban Kuber-54/+150
2022-02-284 - Make more use of `let_chains`Caio-76/+72
2022-02-25Suggest {} around more bad const generic exprsMichael Goulet-18/+40
2022-02-25Rollup merge of #94344 - notriddle:notriddle/suggest-parens-more, r=oli-obkMatthias Krüger-2/+16
2022-02-24diagnostic: suggest parens when users want logical ops, but get closuresMichael Howell-2/+16
2022-02-23rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission".Eduard-Mihai Burtescu-39/+62
2022-02-23rustc_errors: take `self` by value in `DiagnosticBuilder::cancel`.Eduard-Mihai Burtescu-46/+46
2022-02-23rustc_errors: remove `struct_dummy`.Eduard-Mihai Burtescu-3/+5
2022-02-23Replace `&mut DiagnosticBuilder`, in signatures, with `&mut Diagnostic`.Eduard-Mihai Burtescu-12/+12
2022-02-21Better error if the user tries to do assignment ... elseest31-0/+10
2022-02-20Rollup merge of #94146 - est31:let_else, r=cjgillotMatthias Krüger-19/+12
2022-02-19Adopt let else in more placesest31-19/+12