about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/middle/stability.rs
AgeCommit message (Collapse)AuthorLines
2021-09-30Remove visible path calculation from allowed deprecation lintAlik Aslanyan-40/+74
2021-07-31rustc: Replace `HirId`s with `LocalDefId`s in `AccessLevels` tablesVadim Petrochenkov-13/+13
and passes using them - primarily privacy checking, stability checking and dead code checking. WIP
2021-06-15better codehi-rustin-3/+3
2021-06-15shrinking the deprecated method spanhi-rustin-3/+4
2021-05-08Address commentshi-rustin-4/+1
2021-05-07shrinking the deprecated method spanhi-rustin-4/+21
2021-03-27Remove (lots of) dead codeJoshua Nelson-6/+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-01-16Enforce that query results implement DebugAaron Hill-2/+2
2020-12-16Allow `since="TBD"` for rustc_deprecatedbstrie-35/+40
2020-11-12stability: More precise location for deprecation lint on macrosVadim Petrochenkov-2/+3
2020-11-04fix a couple of clippy warnings:Matthias Krüger-1/+1
filter_next manual_strip redundant_static_lifetimes single_char_pattern unnecessary_cast unused_unit op_ref redundant_closure useless_conversion
2020-10-19Calculate visibilities once in resolveVadim Petrochenkov-17/+5
Then use them through a query based on resolver outputs
2020-09-22Update src/librustc_middle/middle/stability.rsAvi Dessauer-10/+4
Co-authored-by: varkor <github@varkor.com>
2020-09-22Add documentationAvi Dessauer-2/+5
2020-09-22Remove now unneeded check_stability argumentAvi Dessauer-15/+8
2020-09-22Stability annotations on generic trait parametersAvi Dessauer-8/+32
2020-09-02pretty: trim paths of unique symbolsDan Aloni-1/+2
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-08-30mv compiler to compiler/mark-0/+418