about summary refs log tree commit diff
path: root/src/librustc_privacy
AgeCommit message (Collapse)AuthorLines
2020-08-03Fix async-std at the price of breaking half the test suiteJoshua Nelson-7/+2
- Don't mark impl trait as an error
2020-08-01Rollup merge of #75022 - cuviper:sliced-rchunk, r=lcnrManish Goregaokar-1/+1
Use a slice pattern instead of rchunks_exact(_).next() This is a minor cleanup, but trying a single-use `rchunks` iterator can be more directly matched with a slice pattern, `[.., a, b]`.
2020-08-01Use a slice pattern instead of rchunks_exact(_).next()Josh Stone-1/+1
This is a minor cleanup, but trying a single-use `rchunks` iterator can be more directly matched with a slice pattern, `[.., a, b]`.
2020-07-31Move from `log` to `tracing`Oliver Scherer-1/+1
2020-07-27introduce PredicateAtomBastian Kauschke-10/+5
2020-07-27add reuse_or_mk_predicateBastian Kauschke-1/+1
2020-07-27split ignore_qualifiersBastian Kauschke-23/+25
2020-07-27`PredicateKint` -> `PredicateKind`, the beginning of the endBastian Kauschke-8/+5
2020-07-27progressBastian Kauschke-4/+1
2020-07-17Auto merge of #72983 - Lezzz:rename-typeck, r=nikomatsakisbors-35/+39
Rename TypeckTables to TypeckResults. Originally suggested by @eddyb.
2020-07-17Rename TypeckTables to TypeckResults.Valentin Lazureanu-35/+39
2020-07-16apply bootstrap cfgsMark Rousskov-1/+0
2020-07-05Use for<'tcx> fn pointers in Providers, instead of having Providers<'tcx>.Eduard-Mihai Burtescu-1/+1
2020-07-02rustc_privacy: avoid using TypeckTables::empty for {Name,Type}PrivacyVisitor.Eduard-Mihai Burtescu-98/+58
2020-06-30change `skip_binder` to use T by valueBastian Kauschke-5/+5
2020-06-15make all uses of ty::Error or ConstKind::Error delay a span bugmark-1/+1
2020-06-15Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakisbors-12/+2
Clean up type alias impl trait implementation - Removes special case for top-level impl trait - Removes associated opaque types - Forbid lifetime elision in let position impl trait. This is consistent with the behavior for inferred types. - Handle lifetimes in type alias impl trait more uniformly with other parameters cc #69323 cc #63063 Closes #57188 Closes #62988 Closes #69136 Closes #73061
2020-06-11Remove associated opaque typesMatthew Jasper-12/+2
They're unused now.
2020-06-10Track span of function in method calls, and use this in #[track_caller]Aaron Hill-1/+1
Fixes #69977 When we parse a chain of method calls like `foo.a().b().c()`, each `MethodCallExpr` gets assigned a span that starts at the beginning of the call chain (`foo`). While this is useful for diagnostics, it means that `Location::caller` will return the same location for every call in a call chain. This PR makes us separately record the span of the function name and arguments for a method call (e.g. `b()` in `foo.a().b().c()`). This `Span` is passed through HIR lowering and MIR building to `TerminatorKind::Call`, where it is used in preference to `Terminator.source_info.span` when determining `Location::caller`. This new span is also useful for diagnostics where we want to emphasize a particular method call - for an example, see https://github.com/rust-lang/rust/pull/72389#discussion_r436035990
2020-05-23iterate List by valueBastian Kauschke-1/+1
2020-05-20introduce newtype'd `Predicate<'tcx>`Bastian Kauschke-1/+1
2020-05-20rename `Predicate` to `PredicateKind`, introduce aliasBastian Kauschke-4/+4
2020-05-12Remove ty::UnnormalizedProjectionJack Huey-1/+1
2020-05-08Remove ast::{Ident, Name} reexports.Camille GILLOT-3/+1
2020-04-27Accept `LocalDefId` as key for `check_mod_privacy` querymarmeladema-9/+9
2020-04-24Remove `Option` from the return type of `def_kind`.Eduard-Mihai Burtescu-5/+4
2020-04-24Split out the `Generator` case from `DefKind::Closure`.Eduard-Mihai Burtescu-3/+4
2020-04-24add a few more DefKindsmark-3/+13
make Map::def_kind take LocalDefId Co-Authored-By: Vadim Petrochenkov <vadim.petrochenkov@gmail.com> crates are DefKind::Mod
2020-04-23Address comments from reviewmarmeladema-10/+6
2020-04-23Modify `as_local_hir_id` to return a bare `HirId`marmeladema-11/+10
2020-04-23Modify `as_local_hir_id` to accept a `LocalDefId` instead of a `DefId`marmeladema-15/+26
2020-04-23librustc_middle: return LocalDefId instead of DefId in local_def_idmarmeladema-9/+12
2020-04-14Do not use `DUMMY_HIR_ID` as placeholder value in node_id_to_hir_id tablemarmeladema-1/+6
Some helpers functions have been introduced to deal with (buggy) cases where either a `NodeId` or a `DefId` do not have a corresponding `HirId`. Those cases are tracked in issue #71104.
2020-04-14Auto merge of #70643 - Rustin-Liu:rustin-patch-rename, r=eddybbors-2/+2
Rename AssocKind::Method to AssocKind::Fn Part of https://github.com/rust-lang/rust/issues/60163. https://github.com/rust-lang/rust/issues/60163#issuecomment-607284413
2020-04-14Rename AssocKind::Method to AssocKind::FnRustin-Liu-2/+2
Rename fn_has_self_argument to fn_has_self_parameter Rename AssocItemKind::Method to AssocItemKind::Fn Refine has_no_input_arg Refine has_no_input_arg Revert has_no_input_arg Refine suggestion_descr Move as_def_kind into AssocKind Signed-off-by: Rustin-Liu <rustin.liu@gmail.com> Fix tidy check issue Signed-off-by: Rustin-Liu <rustin.liu@gmail.com>
2020-04-13Remove usage of `DUMMY_HIR_ID` in some visitorsmarmeladema-4/+4
2020-04-10librustc_middle: return LocalDefId instead of DefId in get_parent_didmarmeladema-3/+4
2020-04-07fix another ICEmark-1/+1
2020-04-07fix abuses of tykind::errmark-1/+7
2020-03-30Use if let instead of match when only matching a single variant ↵Matthias Krüger-37/+31
(clippy::single_match) Makes code more compact and reduces nestig.
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-7/+7
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-7/+7
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-1/+1
2020-03-27Rollup merge of #70344 - Centril:hir-pretty, r=eddybDylan DPC-6/+10
Decouple `rustc_hir::print` into `rustc_hir_pretty` High level summary: - The HIR pretty printer, `rustc_hir::print` is moved into a new crate `rustc_hir_pretty`. - `rustc_ast_pretty` and `rustc_errors` are dropped as `rustc_hir` dependencies. - The dependence on HIR pretty is generally reduced, leaving `rustc_save_analysis`, `rustdoc`, `rustc_metadata`, and `rustc_driver` as the remaining clients. The main goal here is to reduce `rustc_hir`'s dependencies and its size such that it can start and finish earlier, thereby working towards https://github.com/rust-lang/rust/issues/65031. r? @Zoxc
2020-03-24fmtJeremy Stucki-1/+1
2020-03-24decouple rustc_hir::print from crateMazdak Farrokhzad-6/+10
2020-03-23Increase verbosity when using update syntaxJeremy Stucki-4/+11
2020-03-22Normalize wording of privacy access labelsEsteban Küber-4/+12
2020-03-20remove redundant returns (clippy::needless_return)Matthias Krüger-2/+2
2020-03-19rustc: use LocalDefId instead of DefIndex in HirId.Eduard-Mihai Burtescu-1/+1