summary refs log tree commit diff
path: root/compiler/rustc_attr/src/session_diagnostics.rs
AgeCommit message (Collapse)AuthorLines
2022-09-05UPDATE - accept start_point and snippet instead of SourceMapJhonny Bill Mena-5/+5
2022-09-05[Gardening] UPDATE - tidy fixesJhonny Bill Mena-1/+1
2022-09-05UPDATE - avoid exposing source_map methods from HandlerJhonny Bill Mena-6/+5
2022-09-05UPDATE - into_diagnostic to take a Handler instead of a ParseSessJhonny Bill Mena-7/+11
Suggested by the team in this Zulip Topic https://rust-lang.zulipchat.com/#narrow/stream/336883-i18n/topic/.23100717.20SessionDiagnostic.20on.20Handler Handler already has almost all the capabilities of ParseSess when it comes to diagnostic emission, in this migration we only needed to add the ability to access source_map from the emitter in order to get a Snippet and the start_point. Not sure if this is the best way to address this gap
2022-08-27use smaller span for suggestionsTakayuki Maeda-8/+6
2022-08-22Move `LitKind` logic to `session_diagnostics` moduleHampus Lidin-1/+16
2022-08-22Change to `diag` attributesHampus Lidin-29/+30
2022-08-22Reorder diagnostics in code order, then alphabetical orderHampus Lidin-110/+233
2022-08-22Refactor additional diagnostics in `rustc_attr`Hampus Lidin-0/+62
2022-08-22Refactor diagnostics in `handle_errors` functionHampus Lidin-0/+196