Commit Graph

38 Commits

Author SHA1 Message Date
Mazdak Farrokhzad e233331a51 syntax::print -> new crate rustc_ast_pretty 2020-02-01 18:59:49 +01:00
Dylan MacKenzie 4743995ed3 Use named fields for `hir::ItemKind::Impl` 2020-01-17 16:14:29 -08:00
Matthias Krüger 7fbd30b1ae don't clone types that are copy
found via clippy
2020-01-16 23:48:49 +01:00
Tomasz Miąsko 36d0812570 Remove sanitizer_runtime attribute 2020-01-09 07:54:02 +01:00
Mazdak Farrokhzad 0997388b87 normalize rustc::hir::intravisit imports 2020-01-08 22:09:42 +01:00
Mazdak Farrokhzad 8351667091 intravisit: abstract over HIR Map 2020-01-08 22:01:07 +01:00
Mazdak Farrokhzad ebfd8673a7 Remove rustc_hir reexports in rustc::hir. 2020-01-05 12:49:22 +01:00
Mazdak Farrokhzad 7901c7f707 canonicalize FxHash{Map,Set} imports 2020-01-04 18:57:22 +01:00
Mazdak Farrokhzad 4ff12ce4c1 Normalize `syntax::symbol` imports. 2020-01-02 13:57:04 +01:00
Mazdak Farrokhzad 75e4783f63 Normalize `syntax::source_map` imports. 2020-01-02 13:57:04 +01:00
Vadim Petrochenkov 70f1d57048 Rename `syntax_pos` to `rustc_span` in source code 2020-01-01 09:15:18 +03:00
Camille GILLOT aa3678d4f4 Remove HirVec from Generics. 2019-12-30 11:29:29 +01:00
Camille GILLOT 36f95ab3fa Fallout in other crates. 2019-12-27 19:20:28 +01:00
Camille GILLOT 8284035372 Fallout in other crates. 2019-12-26 23:38:46 +01:00
Mark Rousskov a06baa56b9 Format the world 2019-12-22 17:42:47 -05:00
Camille GILLOT 42c03e4bb4 Use Arena inside hir::Mod. 2019-12-21 23:34:34 +01:00
Camille GILLOT e2526120f2 Use Arena inside hir::StructField. 2019-12-21 23:33:42 +01:00
Camille GILLOT 5fec1ca0ff Use Arena inside hir::ImplItem. 2019-12-21 23:31:47 +01:00
Camille GILLOT 0f7d77363b Use Arena inside hir::TraitItem. 2019-12-21 23:30:52 +01:00
Camille GILLOT acf33f2d6b Use Arena inside hir::ForeignItem. 2019-12-21 23:29:27 +01:00
Camille GILLOT abbe6259e1 Handle Attributes in arena. 2019-12-21 23:20:09 +01:00
Camille GILLOT 084e6722f9 Use Arena inside hir::Item. 2019-12-21 23:17:29 +01:00
Camille GILLOT 4dc79f1f7d Use Arena inside hir::Crate. 2019-12-21 23:12:44 +01:00
Mazdak Farrokhzad a7aec3f207 1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}.
2. mir::Mutability -> ast::Mutability.
2019-12-20 22:22:44 +01:00
Oliver Scherer 5e17e39881 Require stable/unstable annotations for the constness of all stable functions with a `const` modifier 2019-12-13 11:27:02 +01:00
Mahmut Bulut f1bacb2dca Check intrinsics for callability in const fns 2019-12-03 10:20:15 +01:00
Vadim Petrochenkov 9be526e8eb rustc_metadata: Move `has_global_allocator` from session to cstore 2019-11-28 20:59:57 +03:00
Eduard-Mihai Burtescu a0556b3b79 rustc_metadata: use a macro to deduplicate LazyPerDefTables and PerDefTableBuilders. 2019-11-27 15:16:25 +02:00
Eduard-Mihai Burtescu d7444c122e rustc_metadata: remove Encodable requirements from LazyMeta impls. 2019-11-27 15:16:04 +02:00
Eduard-Mihai Burtescu ee42979eeb rustc_metadata: use a separate TableBuilder type to build a Table. 2019-11-27 15:15:57 +02:00
Eduard-Mihai Burtescu 67421bdfdf rustc_metadata: replace PerDefTable<T> with Table<DefIndex, T>. 2019-11-27 15:15:57 +02:00
Dylan MacKenzie a1135cc946 Remove newtype for qualifs in `rustc_metadata`
We have a proper type for these now, so the wrapper is no longer
necessary.
2019-11-15 10:33:52 -08:00
Dylan MacKenzie 056edc0d48 Use a bespoke type for the result of `mir_const_qualif` 2019-11-15 10:33:52 -08:00
Camille GILLOT 76128f89a1 Fix tidy. 2019-11-10 12:45:31 +01:00
Camille GILLOT ed640c6a27 Merge hir::Mutability into ast::Mutability. 2019-11-10 12:21:05 +01:00
Dylan MacKenzie 3783ef6dbe Stop returning promotables from `mir_const_qualif` 2019-11-08 14:52:22 -08:00
Mazdak Farrokhzad 30d7279628 hir::ItemKind::Fn: use hir::MethodSig 2019-11-08 09:32:20 +01:00
Vadim Petrochenkov 5eb1cf1619 rustc_metadata: Rename `schema` to `rmeta`
And change `rmeta.rs` to `rmeta/mod.rs`
2019-11-07 21:06:48 +03:00