| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-03-05 | rustc_metadata: Move some code from `impl CrateMetadataRef` to `impl ↵ | Vadim Petrochenkov | -89/+87 | |
| CrateMetadata` | ||||
| 2020-03-05 | rustc_metadata: Give decoder access to whole crate store | Vadim Petrochenkov | -17/+22 | |
| 2020-02-29 | Rename `syntax` to `rustc_ast` in source code | Vadim Petrochenkov | -1/+1 | |
| 2020-02-29 | Make it build again | Vadim Petrochenkov | -1/+1 | |
| 2020-02-26 | Auto merge of #67742 - mark-i-m:describe-it, r=matthewjasper | bors | -6/+13 | |
| Generalized article_and_description r? @matthewjasper The logic of finding the right word and article to print seems to be repeated elsewhere... this is an experimental method to unify this logic... | ||||
| 2020-02-24 | rustc_metadata: Use binary search from standard library | Vadim Petrochenkov | -13/+5 | |
| instead of a hand rolled one. | ||||
| 2020-02-22 | get rid of lazy | mark | -1/+1 | |
| 2020-02-22 | add generator_kind query | Mark Mansi | -6/+13 | |
| 2020-02-15 | Record proc macro harness order for use during metadata deserialization | Aaron Hill | -4/+0 | |
| Fixes #68690 When we generate the proc macro harness, we now explicitly recorder the order in which we generate entries. We then use this ordering data to deserialize the correct proc-macro-data from the crate metadata. | ||||
| 2020-02-01 | Move builtin attribute logic to new rustc_attr crate. | Mazdak Farrokhzad | -1/+1 | |
| For now, this is all the crate contains, but more attribute logic & types will be moved there over time. | ||||
| 2020-01-16 | don't clone types that are copy | Matthias Krüger | -1/+1 | |
| found via clippy | ||||
| 2020-01-10 | Auto merge of #65241 - tmiasko:no-std-san, r=alexcrichton | bors | -4/+0 | |
| build-std compatible sanitizer support ### Motivation When using `-Z sanitizer=*` feature it is essential that both user code and standard library is instrumented. Otherwise the utility of sanitizer will be limited, or its use will be impractical like in the case of memory sanitizer. The recently introduced cargo feature build-std makes it possible to rebuild standard library with arbitrary rustc flags. Unfortunately, those changes alone do not make it easy to rebuild standard library with sanitizers, since runtimes are dependencies of std that have to be build in specific environment, generally not available outside rustbuild process. Additionally rebuilding them requires presence of llvm-config and compiler-rt sources. The goal of changes proposed here is to make it possible to avoid rebuilding sanitizer runtimes when rebuilding the std, thus making it possible to instrument standard library for use with sanitizer with simple, although verbose command: ``` env CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS=-Zsanitizer=thread cargo test -Zbuild-std --target x86_64-unknown-linux-gnu ``` ### Implementation * Sanitizer runtimes are no long packed into crates. Instead, libraries build from compiler-rt are used as is, after renaming them into `librusc_rt.*`. * rustc obtains runtimes from target libdir for default sysroot, so that they are not required in custom build sysroots created with build-std. * The runtimes are only linked-in into executables to address issue #64629. (in previous design it was hard to avoid linking runtimes into static libraries produced by rustc as demonstrated by sanitizer-staticlib-link test, which still passes despite changes made in #64780). cc @kennytm, @japaric, @firstyear, @choller | ||||
| 2020-01-09 | {rustc::util -> rustc_data_structures}::captures | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-09 | Remove sanitizer_runtime attribute | Tomasz Miąsko | -4/+0 | |
| 2020-01-05 | Remove rustc_hir reexports in rustc::hir. | Mazdak Farrokhzad | -3/+3 | |
| 2020-01-04 | extract Export, ExportMap from hir::def | Mazdak Farrokhzad | -12/+8 | |
| 2020-01-02 | Normalize `syntax::source_map` imports. | Mazdak Farrokhzad | -1/+1 | |
| 2020-01-01 | Rename `syntax_pos` to `rustc_span` in source code | Vadim Petrochenkov | -7/+7 | |
| 2019-12-30 | Rename `libsyntax_ext` and `libsyntax_expand` in code | Vadim Petrochenkov | -2/+2 | |
| 2019-12-30 | Make things build again | Vadim Petrochenkov | -1/+1 | |
| 2019-12-22 | Format the world | Mark Rousskov | -304/+305 | |
| 2019-12-20 | 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}. | Mazdak Farrokhzad | -2/+2 | |
| 2. mir::Mutability -> ast::Mutability. | ||||
| 2019-12-13 | Require stable/unstable annotations for the constness of all stable ↵ | Oliver Scherer | -0/+4 | |
| functions with a `const` modifier | ||||
| 2019-12-05 | rustc: Apply clearer naming to BodyAndCache, fix Deref impl, remove unneeded ↵ | Paul Daniel Faria | -3/+3 | |
| Index impl, remove body fn rustc_codegen_ssa: Fix BodyAndCache reborrow to Body and change instances of body() call to derefence rustc_mir: Fix BodyAndCache reborrow to Body and change intances of body() call to derefence | ||||
| 2019-12-03 | Explain why "loading" constness from extern crates does not necessarily load ↵ | Oliver Scherer | -1/+5 | |
| anything | ||||
| 2019-12-03 | Check intrinsics for callability in const fns | Mahmut Bulut | -0/+2 | |
| 2019-12-02 | Remove HasLocalDecls impl from BodyCache's, properly reborrow to Body, ↵ | Paul Daniel Faria | -2/+2 | |
| rename all body_cache back to body | ||||
| 2019-12-02 | Fix remaining compilation issues | Paul Daniel Faria | -4/+10 | |
| 2019-12-02 | Simplify BodyCache impl and fix all remaining type errors in librustc_mir ↵ | Paul Daniel Faria | -4/+3 | |
| (lifetime errors still exist) | ||||
| 2019-12-02 | Fix typo caused by rebasing | Paul Daniel Faria | -1/+1 | |
| 2019-12-02 | Move predecessors cache back to its own type | Paul Daniel Faria | -1/+1 | |
| This ensures that the cache can be properly ignored during encoding and decoding. Fix panics that arose due to lack of encoding | ||||
| 2019-11-28 | rustc_metadata: Privatize `CrateMetadata::root` | Vadim Petrochenkov | -1/+17 | |
| 2019-11-28 | rustc_metadata: Privatize all fields of `CrateRoot` | Vadim Petrochenkov | -0/+48 | |
| All of them are read-only | ||||
| 2019-11-28 | rustc_metadata: Privatize `CrateMetadata::dep_kind` | Vadim Petrochenkov | -1/+9 | |
| 2019-11-28 | rustc_metadata: Privatize `CrateMetadata::source` | Vadim Petrochenkov | -1/+5 | |
| 2019-11-28 | rustc_metadata: Privatize `CrateMetadata::extern_crate` | Vadim Petrochenkov | -1/+10 | |
| 2019-11-28 | rustc_metadata: Privatize `CrateMetadata::dependencies` | Vadim Petrochenkov | -2/+10 | |
| 2019-11-27 | rustc_metadata: remove Encodable requirements from LazyMeta impls. | Eduard-Mihai Burtescu | -5/+5 | |
| 2019-11-27 | rustc_metadata: replace PerDefTable<T> with Table<DefIndex, T>. | Eduard-Mihai Burtescu | -4/+4 | |
| 2019-11-20 | Rollup merge of #66496 - petrochenkov:metapriv2, r=eddyb | Mazdak Farrokhzad | -23/+157 | |
| rustc_metadata: Privatize more things Continuation of https://github.com/rust-lang/rust/pull/66056. The most notable change here is that `CrateMetadata` is moved from `cstore.rs` to `decoder.rs`. Most of uses of `CrateMetadata` fields are in the decoder and uses of `root: CrateRoot` and other fields are so intertwined with each other that it would be hard to move a part of them into `cstore.rs` to privatize `CrateMetadata` fields, so we are going the other way round. `cstore.rs` can probably be dismantled now, but I'll leave this to some other day. Similarly, remaining `CrateMetadata` fields can be privatized by introducing some getter/setter methods, but not today. r? @eddyb | ||||
| 2019-11-17 | rustc_metadata: Remove `CrateMetadata::is_proc_macro_crate` | Vadim Petrochenkov | -11/+7 | |
| 2019-11-17 | rustc_metadata: Stop leaking `Lazy` from the `rmeta` module | Vadim Petrochenkov | -7/+19 | |
| 2019-11-17 | rustc_metadata: Move `CrateMetadata` into `decoder.rs` | Vadim Petrochenkov | -6/+115 | |
| It allows to make most of its fields private | ||||
| 2019-11-17 | rustc_metadata: Move some structs from `cstore` to `decoder` | Vadim Petrochenkov | -4/+21 | |
| This allows to privatize their fields. | ||||
| 2019-11-15 | Remove newtype for qualifs in `rustc_metadata` | Dylan MacKenzie | -1/+1 | |
| We have a proper type for these now, so the wrapper is no longer necessary. | ||||
| 2019-11-15 | Fix nits from review | Dylan MacKenzie | -1/+1 | |
| 2019-11-15 | Use a bespoke type for the result of `mir_const_qualif` | Dylan MacKenzie | -1/+1 | |
| 2019-11-10 | Merge hir::Mutability into ast::Mutability. | Camille GILLOT | -2/+2 | |
| 2019-11-07 | rustc_metadata: Rename `schema` to `rmeta` | Vadim Petrochenkov | -0/+1396 | |
| And change `rmeta.rs` to `rmeta/mod.rs` | ||||
