about summary refs log tree commit diff
path: root/src/librustc/ty/adjustment.rs
AgeCommit message (Collapse)AuthorLines
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-194/+0
2020-02-19Make lookup of associated item by name O(log n)Dylan MacKenzie-1/+1
2020-02-08Make `associated_items` query return a sliceJonas Schievink-0/+1
2020-01-15update async-await send/sync testcsmoe-1/+1
2020-01-14record generoator interior exprs in typecktablecsmoe-0/+9
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-2/+2
2019-12-22Format the worldMark Rousskov-8/+10
2019-12-201. ast::Mutability::{Mutable -> Mut, Immutable -> Not}.Mazdak Farrokhzad-6/+6
2. mir::Mutability -> ast::Mutability.
2019-11-13Use TypeFoldable derive macro.Camille GILLOT-4/+4
2019-11-10Merge hir::Mutability into ast::Mutability.Camille GILLOT-4/+4
2019-10-25Don't cast directly from `&[T; N]` to `*const T`Matthew Jasper-0/+3
Instead coerce to `*const [T; N]` and then cast.
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-2/+2
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-2/+5
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-1/+1
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-1/+1
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-1/+1
2019-05-26Rename "Associated*" to "Assoc*"Andrew Xu-1/+1
We are going to uniform the terminology of all associated items. Methods that may or may not have `self` are called "associated functions". Because `AssociatedFn` is a bit long, we rename `Associated` to `Assoc`.
2019-04-16refactor Adjustment to use new PointerCast enumSaleem Jaffer-24/+20
2019-04-15basic refactor. Adding PointerCast enumSaleem Jaffer-0/+9
2019-04-01Allow closure to unsafe fn coercionTaiki Endo-2/+3
2019-03-13Use derive macro for HashStableJohn Kåre Alsaker-8/+9
2019-02-26replace &'tcx Substs with SubstsRefcsmoe-2/+2
2019-02-10rustc: doc commentsAlexander Regueiro-11/+11
2019-02-05move librustc to 2018Mark Mansi-4/+4
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-11-20Incorporate `dyn` into more comments and docs.Corey Farwell-1/+1
2018-05-17Rename trans to codegen everywhere.Irina Popa-2/+2
2018-03-28Push AllowTwoPhase down to the HAIR levelbobtwinkles-1/+2
For consistency, use AllowTwoPhase everywhere between the frontend and MIR.
2018-03-27Use a new type to track if two-phase borrows are allowedbobtwinkles-0/+17
Because more type safe is more better, and random boolean parameters everywhere were not the greatest thing.
2018-02-08Add `AutoBorrowMutability`; its like `hir::Mutability` but w/ two-phase ↵Felix S. Klock II-1/+16
borrow info too. Namely, the mutable borrows also carries a flag indicating whether they should support two-phase borrows. This allows us to thread down, from the point of the borrow's introduction, whether the particular adjustment that created it is one that yields two-phase mutable borrows.
2018-01-29rustc: replace "lvalue" terminology with "place" in the code.Eduard-Mihai Burtescu-1/+1
2018-01-01Fix docs for future pulldown migrationMalo Jaffré-26/+26
2017-09-05rustc: Migrate lang items to a queryAlex Crichton-2/+2
This commit moves the calculation of the `LanguageItems` structure into a query rather than being calculated before the `TyCtxt` exists, with the eventual end goal of removing some `CrateStore` methods.
2017-08-11Fix some typosBastien Orivel-2/+2
2017-06-01rustc: decompose Adjustment into a vector of adjustment steps.Eduard-Mihai Burtescu-78/+25
2017-06-01rustc: move autoref and unsize from Adjust::DerefRef to Adjustment.Eduard-Mihai Burtescu-87/+82
2017-06-01rustc: replace autoderefs' use of MethodCallee with OverloadedDeref.Eduard-Mihai Burtescu-3/+28
2017-06-01rustc: keep overloaded autoderef MethodCallee's in Adjust.Eduard-Mihai Burtescu-48/+25
2017-06-01rustc: remove Copy from Adjustment and Adjust.Eduard-Mihai Burtescu-2/+2
2017-04-30intern CodeExtentsNiko Matsakis-1/+1
Make a `CodeExtent<'tcx>` be something allocated in an arena instead of an index into the `RegionMaps`.
2017-04-13rustc_typeck: consolidate adjustment compositionAriel Ben-Yehuda-1/+1
Fixes #41213.
2017-03-23convert `custom_coerce_unsized_kind` into a `coerce_unsized_info`Niko Matsakis-0/+15
This "on-demand" task both checks for errors and computes the custom unsized kind, if any. This task is only defined on impls of `CoerceUnsized`; invoking it on any other kind of impl results in a bug. This is just to avoid having an `Option`, could easily be changed.
2017-02-23Implement non-capturing closure to fn coercionest31-0/+4
2016-11-02rustc: record the target type of every adjustment.Eduard Burtescu-182/+107
2016-09-20rustc_metadata: go only through rustc_serialize in astencode.Eduard Burtescu-3/+3
2016-09-04Replace `_, _` with `..`Vadim Petrochenkov-1/+1
2016-08-13Rename empty/bang to neverAndrew Cann-7/+4
Split Ty::is_empty method into is_never and is_uninhabited
2016-08-13Minor fixups based on @eddyb's feedbackAndrew Cann-1/+1
Mainly, remove mk_empty() method and replace with tcx.types.empty