about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
AgeCommit message (Collapse)AuthorLines
2025-03-27Use `abs_diff` where applicableYotam Ofek-5/+1
2024-08-27Add `warn(unreachable_pub)` to `rustc_errors`.Nicholas Nethercote-16/+16
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-04-29Remove `extern crate rustc_macros` from numerous crates.Nicholas Nethercote-0/+1
2024-02-01Rework `StringPart`.Nicholas Nethercote-1/+1
When there are two possibilities, both of which use a `String`, it's nicer to use a struct than an enum. Especially when mapping the contents into a tuple.
2023-03-28Create AnnotationColumn struct to fix hard tab column numbers in errorspommicket-14/+51
2022-01-09Compute most of Public/Exported access level in rustc_resolveLamb-3/+0
Mak DefId to AccessLevel map in resolve for export hir_id to accesslevel in resolve and applied in privacy using local def id removing tracing probes making function not recursive and adding comments Move most of Exported/Public res to rustc_resolve moving public/export res to resolve fix missing stability attributes in core, std and alloc move code to access_levels.rs return for some kinds instead of going through them Export correctness, macro changes, comments add comment for import binding add comment for import binding renmae to access level visitor, remove comments, move fn as closure, remove new_key fmt fix rebase fix rebase fmt fmt fix: move macro def to rustc_resolve fix: reachable AccessLevel for enum variants fmt fix: missing stability attributes for other architectures allow unreachable pub in rustfmt fix: missing impl access level + renaming export to reexport Missing impl access level was found thanks to a test in clippy
2021-08-11Modify structured suggestion outputEsteban Küber-0/+2
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-03-27Remove (lots of) dead codeJoshua Nelson-10/+0
Found with https://github.com/est31/warnalyzer. Dubious changes: - Is anyone else using rustc_apfloat? I feel weird completely deleting x87 support. - Maybe some of the dead code in rustc_data_structures, in case someone wants to use it in the future? - Don't change rustc_serialize I plan to scrap most of the json module in the near future (see https://github.com/rust-lang/compiler-team/issues/418) and fixing the tests needed more work than I expected. TODO: check if any of the comments on the deleted code should be kept.
2021-02-02Bump rustfmt versionMark Rousskov-5/+10
Also switches on formatting of the mir build module
2020-10-30Fix even more clippy warningsJoshua Nelson-4/+1
2020-09-18use matches!() macro for simple if let conditionsMatthias Krüger-5/+3
2020-08-30mv compiler to compiler/mark-0/+190