about summary refs log tree commit diff
path: root/src/librustc_metadata
AgeCommit message (Collapse)AuthorLines
2019-05-31Remove GlobalArenas and use Arena insteadJohn Kåre Alsaker-3/+3
2019-05-28Changes the type `mir::Mir` into `mir::Body`Claude-Alban RANÉLY-VERGÉ-DÉPRÉ-4/+4
The commit should have changed comments as well. At the time of writting, it passes the tidy and check tool. Revisions asked by eddyb : - Renamed of all the occurences of {visit/super}_mir - Renamed test structures `CachedMir` to `Cached` Fixing the missing import on `AggregateKind`
2019-05-28Auto merge of #60955 - agnxy:rename-assoc, r=oli-obk,Centrilbors-53/+53
Rename "Associated*" to "Assoc*" This change is for #60163. r? @oli-obk
2019-05-27Avoid unnecessary internings.Nicholas Nethercote-3/+1
Most involving `Symbol::intern` on string literals.
2019-05-26Rename "Associated*" to "Assoc*"Andrew Xu-53/+53
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-05-23Update dylib_dependency_formats, extern_crate and reachable_non_genericsJohn Kåre Alsaker-8/+10
2019-05-23Update foreign_modules and dllimport_foreign_itemsJohn Kåre Alsaker-5/+8
2019-05-23Update visible_parent_mapJohn Kåre Alsaker-1/+1
2019-05-23Update get_lib_features, defined_lib_features, get_lang_items, ↵John Kåre Alsaker-17/+23
defined_lang_items, missing_lang_items, postorder_cnums and maybe_unused_extern_crates
2019-05-23Update upvars and module_exportsJohn Kåre Alsaker-1/+1
2019-05-23Update stability_index, all_crate_nums and features_queryJohn Kåre Alsaker-1/+1
2019-05-23Update GenericPredicates queriesJohn Kåre Alsaker-3/+5
2019-05-23Update item_childrenJohn Kåre Alsaker-2/+2
2019-05-23Update implementations_of_trait and all_trait_implementationsJohn Kåre Alsaker-19/+16
2019-05-23Update inherent_implsJohn Kåre Alsaker-7/+10
2019-05-23Update associated_item_def_idsJohn Kåre Alsaker-2/+4
2019-05-23Auto merge of #60740 - petrochenkov:kw, r=nnethercotebors-2/+2
Simplify use of keyword symbols They mirror non-keyword symbols now (see https://github.com/rust-lang/rust/pull/60630). `keywords::MyKeyword.name()` -> `kw::MyKeyword` `keywords::MyKeyword.ident()` -> `Ident::with_empty_ctxt(kw::MyKeyword)` (not common) `keywords::Invalid.ident()` -> `Ident::invalid()` (more common) Keywords are simply `Symbol` constants now, the `Keyword` struct is eliminated. This means `kw::MyKeyword` can now be used in `match` in particular.
2019-05-22Simplify use of keyword symbolsVadim Petrochenkov-2/+2
2019-05-22rustc_metadata: rip out unused incremental infrastructure.Eduard-Mihai Burtescu-623/+125
2019-05-22rustc_metadata: parametrize schema::CrateRoot by 'tcx.Eduard-Mihai Burtescu-46/+36
2019-05-22Rollup merge of #61003 - nnethercote:rm-InternedString-PartialEq-impls, ↵Mazdak Farrokhzad-7/+8
r=petrochenkov Remove impls for `InternedString`/string equality. `Symbol` received the same treatment in #60630. Also, we can derive `PartialEq` for `InternedString`. r? @petrochenkov
2019-05-22Rollup merge of #60982 - estebank:fix-60976, r=petrochenkovMazdak Farrokhzad-11/+11
Do not fail on child without DefId Addresses https://github.com/rust-lang/rust/issues/60976, leaving open to come up with a repro case.
2019-05-21Move `edition` outside the hygiene lock and avoid accessing itJohn Kåre Alsaker-2/+2
2019-05-21Remove impls for `InternedString`/string equality.Nicholas Nethercote-7/+8
`Symbol` received the same treatment in #60630. Also, we can derive `PartialEq` for `InternedString`.
2019-05-20Rollup merge of #60942 - bjorn3:metadata_loader_refactor, r=michaelwoeristerMazdak Farrokhzad-6/+5
Misc changes to rustc_metadata
2019-05-20Do not fail on child without DefIdEsteban Küber-11/+11
2019-05-18Misc changes to rustc_metadatabjorn3-6/+5
2019-05-18Declare DefIndex with the newtype_index macroFabian Drinck-4/+4
2019-05-13Return a `Symbol` from `name_or_empty` functions.Nicholas Nethercote-2/+1
2019-05-13Remove the equality operation between `Symbol` and strings.Nicholas Nethercote-8/+8
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-26/+27
2019-05-09cleanup: Remove `DefIndexAddressSpace`Vadim Petrochenkov-29/+13
2019-05-08Auto merge of #60378 - froydnj:apple-target-modifications, r=michaelwoeristerbors-2/+2
conditionally modify darwin targets to macosx targets with versions We need this behavior so that Rust LLVM IR objects match the target triple for Clang LLVM IR objects. This matching then convinces the linker that yes, you really can do cross-language LTO with objects from different compilers. The newly-added tests seem to pass locally on x86_64-unknown-linux-gnu. I haven't done a full test run or tried the new compiler in an cross-language LTO setup yet.
2019-05-07choose a more specific LLVM target on OS X when necessaryNathan Froyd-2/+2
This behavior matches clang's behavior, and makes cross-language LTO possible. Fixes #60235.
2019-05-06Auto merge of #60337 - fabric-and-ink:hiridification, r=Zoxcbors-2/+2
A bit of HirIdification A small contribution to #50928.
2019-05-04Replace `NodeId` variant of `read`Fabian Drinck-2/+2
2019-05-04rustc: rename DefPathData::{MacroDef,LifetimeParam} to {Macro,Lifetime}Ns.Eduard-Mihai Burtescu-1/+1
2019-05-04rustc: collapse relevant DefPathData variants into TypeNs.Eduard-Mihai Burtescu-1/+6
2019-05-03rustc: rename hir::def::Def to Res (short for "resolution").Eduard-Mihai Burtescu-14/+14
2019-05-03rustc: use DefKind instead of Def, where possible.Eduard-Mihai Burtescu-37/+36
2019-05-03rustc: factor most DefId-containing variants out of Def and into DefKind.Eduard-Mihai Burtescu-29/+35
2019-05-01Rollup merge of #60287 - Zoxc:the-arena-variances_of, r=eddybMazdak Farrokhzad-1/+1
Use references for variances_of Based on https://github.com/rust-lang/rust/pull/60280. cc @varkor r? @eddyb
2019-04-28Fix lint findings in librustc_metadataflip1995-5/+5
2019-04-27Auto merge of #59887 - eddyb:safer-metadata, r=Zoxcbors-45/+80
rustc_metadata: more safely read/write the index positions. This is a small part of a larger refactor, that I want to benchmark independently. The final code would be even cleaner than this, so this is sort of an "worst case" test.
2019-04-25Update variances_ofJohn Kåre Alsaker-1/+1
2019-04-25Update mir_const_qualifJohn Kåre Alsaker-1/+1
2019-04-21AST/HIR: Use `Mutability` instead of bool in foreign staticsVadim Petrochenkov-2/+2
2019-04-21Remove mutability from `Def::Static`Vadim Petrochenkov-2/+2
2019-04-21Introduce query `static_mutability`Vadim Petrochenkov-0/+11
2019-04-18Auto merge of #60025 - JohnTitor:rename-files, r=petrochenkovbors-1/+1
Rename files about error codes fixes #60017 This PR will be failed in tidy. <details> <summary>The log is here:</summary> ``` tidy check tidy error: duplicate error code: 411 tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:83: __diagnostic_used!(E0411); tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:84: err.code(DiagnosticId::Error("E0411".to_owned())); tidy error: duplicate error code: 424 tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:90: debug!("smart_resolve_path_fragment: E0424, source={:?}", source); tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:92: __diagnostic_used!(E0424); tidy error: Documents\GitHub\rust\src\librustc_resolve\diagnostics.rs:93: err.code(DiagnosticId::Error("E0424".to_owned())); some tidy checks failed ``` </details> I'd like to fix this but I don't know what to do. I will work on later. Please let me know if you have any solutions. r? @petrochenkov