about summary refs log tree commit diff
path: root/src/librustc_privacy
AgeCommit message (Collapse)AuthorLines
2019-12-21Use Arena inside hir::StructField.Camille GILLOT-1/+1
2019-12-21Use Arena inside hir::EnumDef.Camille GILLOT-4/+4
2019-12-21Use Arena inside hir::ImplItem.Camille GILLOT-2/+2
2019-12-21Use Arena inside hir::TraitItem.Camille GILLOT-2/+2
2019-12-21Use Arena inside hir::ForeignItem.Camille GILLOT-4/+4
2019-12-21Handle Attributes in arena.Camille GILLOT-1/+1
2019-12-21Use Arena inside hir::Item.Camille GILLOT-12/+12
2019-11-29allow customising ty::TraitRef's printing behaviorMikhail Babenko-1/+1
fix clippy allow customising ty::TraitRef's printing behavior fix clippy stylistic fix
2019-11-14Remove unused error_codes.rs filesGuillaume Gomez-169/+0
2019-11-14Update to use new librustc_error_codes libraryGuillaume Gomez-1/+2
2019-10-19Rollup merge of #65252 - petrochenkov:deriveholders2, r=matthewjasperMazdak Farrokhzad-5/+5
expand: Simplify expansion of derives And make it more uniform with other macros. This is done by merging placeholders for future derives' outputs into the derive container's output fragment early (addressing FIXMEs from https://github.com/rust-lang/rust/pull/63667). Also, macros with names starting with `_` are no longer reported as unused, in accordance with the usual behavior of `unused` lints. r? @matthewjasper or @mark-i-m
2019-10-19privacy: Avoid one more `unwrap` causing an ICE in rustdocVadim Petrochenkov-5/+5
The issue is rustdoc-specific because its root cause if the `everybody_loops` pass makes some def-ids to not have local hir-ids
2019-10-18rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole ↵Eduard-Mihai Burtescu-2/+2
struct.
2019-10-07Fix/improve some error codes long explanationGuillaume Gomez-6/+17
2019-09-26Rename `Item.node` to `Item.kind`varkor-9/+9
2019-09-26Rename `Ty.node` to `Ty.kind`varkor-3/+3
2019-09-26Rename `ImplItem.node` to `ImplItem.kind`varkor-3/+3
2019-09-26Rename `Pat.node` to `Pat.kind`varkor-1/+1
2019-09-26Rename `Expr.node` to `Expr.kind`varkor-2/+2
For both `ast::Expr` and `hir::Expr`.
2019-09-25Rename `sty` to `kind`varkor-2/+2
2019-09-05Remove rustc_diagnostic_macros featureMark Rousskov-1/+0
2019-09-05Replace diagnostic plugins with macro_rulesMark Rousskov-7/+2
2019-08-21review commentsEsteban Küber-33/+21
2019-08-21When declaring a declarative macro in an item it's only accessible inside itEsteban Küber-27/+33
2019-08-15Remove `Spanned` from `{ast,hir}::FieldPat`Vadim Petrochenkov-2/+2
2019-08-14Merge Variant and Variant_Caio-7/+7
2019-08-10diagnostics: Describe crate root modules in `DefKind::Mod` as "crate"Vadim Petrochenkov-1/+1
2019-08-09Rollup merge of #63114 - matthewjasper:hygienic-format-args, r=petrochenkovMazdak Farrokhzad-31/+159
Remove gensym in format_args This also fixes some things to allow us to export opaque macros from libcore: * Don't consider items that are only reachable through opaque macros as public/exported (so they aren't linted as needing docs) * Mark private items reachable from the root of libcore as unstable - they are now reachable (in principle) in other crates via macros in libcore r? @petrochenkov
2019-08-05Fix various issues with making items reachable through macrosMatthew Jasper-31/+159
* Allow items to be accessible through private modules and fields when a macro can access them. * Don't mark type-private items as reachable. * Never make items exported/public via macros
2019-08-05Got rid of concept of 'principal trait' in more places in codebase.Alexander Regueiro-3/+7
2019-08-05A few cosmetic improvements.Alexander Regueiro-2/+3
2019-08-04Rename `ItemImplKind::Type` to `ItemImplKind::TyAlias`varkor-3/+3
2019-08-04Rename `ItemKind::Ty` to `ItemKind::TyAlias`varkor-5/+5
2019-08-02Replace "existential" by "opaque"varkor-9/+9
2019-07-28Deny `unused_lifetimes` through rustbuildVadim Petrochenkov-2/+0
2019-07-28Remove lint annotations in specific crates that are already enforced by ↵Vadim Petrochenkov-3/+0
rustbuild Remove some random unnecessary lint `allow`s
2019-07-07rustc: Remove `dylib` crate type from most rustc cratesAlex Crichton-1/+0
Now that procedural macros no longer link transitively to libsyntax, this shouldn't be needed any more! This commit is an experiment in removing all dynamic libraries from rustc except for librustc_driver itself. Let's see how far we can get with that!
2019-07-06privacy: Only opaque macros leak private thingsVadim Petrochenkov-1/+2
2019-07-05Rollup merge of #62168 - ljedrz:the_culmination_of_hiridification, r=ZoxcMazdak Farrokhzad-11/+11
The (almost) culmination of HirIdification It's finally over. This PR removes old `FIXME`s and renames some functions so that the `HirId` variant has the shorter name. All that remains (and rightfully so) is stuff in `resolve`, `save_analysis` and (as far as I can tell) in a few places where we can't replace `NodeId` with `HirId`.
2019-07-05Rollup merge of #61545 - flip1995:internal_lints, r=oli-obkMazdak Farrokhzad-1/+0
Implement another internal lints cc #49509 This adds ~~two~~ one internal lint~~s~~: 1. LINT_PASS_IMPL_WITHOUT_MACRO: Make sure, that the `{declare,impl}_lint_pass` macro is used to implement lint passes. cc #59669 2. ~~USAGE_OF_TYCTXT_AND_SPAN_ARGS: item 2 on the list in #49509~~ ~~With 2. I wasn't sure, if this lint should be applied everywhere. That means a careful review of 0955835 would be great. Also 73fb9b4 allows this lint on some functions. Should I also apply this lint there?~~ TODO (not directly relevant for review): - [ ] https://github.com/rust-lang/rust/pull/59316#discussion_r280186517 (not sure yet, if this works or how to query for `rustc_private`, since it's not in [`Features`](https://doc.rust-lang.org/nightly/nightly-rustc/syntax/feature_gate/struct.Features.html) :thinking: cc @eddyb) - [x] https://github.com/rust-lang/rust/pull/61735#discussion_r292389870 - [x] Check explicitly for the `{declare,impl}_lint_pass!` macros r? @oli-obk
2019-07-04rename hir::map::local_def_id_from_hir_id to local_def_idljedrz-11/+11
2019-07-03Remove needless lifetimesJeremy Stucki-10/+10
2019-06-24Enable internal lints in bootstrapflip1995-1/+0
2019-06-24HIR: rename find_by_hir_id to findljedrz-1/+1
2019-06-24HIR: rename get_parent_node_by_hir_id to get_parent_nodeljedrz-3/+3
2019-06-20rename hir::map::get_by_hir_id to getljedrz-4/+4
2019-06-18rustc: remove 'x: 'y bounds (except from comments/strings).Eduard-Mihai Burtescu-5/+5
2019-06-17remove _by_hir_id if there is no NodeId counterpartljedrz-8/+8
2019-06-14Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-5/+1
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-21/+21