summary refs log tree commit diff
path: root/src/librustc_metadata
AgeCommit message (Collapse)AuthorLines
2019-06-21Stabilize profile-guided optimization.Michael Woerister-1/+1
2019-06-19Rollup merge of #61898 - petrochenkov:sekind, r=eddybMazdak Farrokhzad-36/+34
syntax: Factor out common fields from `SyntaxExtension` variants And some other related cleanups. Continuation of https://github.com/rust-lang/rust/pull/61606. This will also help to unblock https://github.com/rust-lang/rust/pull/61877.
2019-06-18rustc: reintroduce lifetime bounds where necessary.Eduard-Mihai Burtescu-13/+14
2019-06-18rustc: remove leftover lifetimes with no bounds from where clauses.Eduard-Mihai Burtescu-4/+1
2019-06-18rustc: remove 'x: 'y bounds (except from comments/strings).Eduard-Mihai Burtescu-4/+4
2019-06-18syntax: Factor out common fields from `SyntaxExtension` variantsVadim Petrochenkov-36/+34
2019-06-18Auto merge of #61864 - lzutao:ptr-null, r=sfacklerbors-1/+1
Make use of `ptr::null(_mut)` instead of casting zero There are few places that I don't replace the zero casting pointer with `ptr::null` or `ptr::null_mut`: ```bash % git grep -E '[ ([{]0 as \*' src/libcore/ptr/mod.rs:216:pub const fn null<T>() -> *const T { 0 as *const T } src/libcore/ptr/mod.rs:231:pub const fn null_mut<T>() -> *mut T { 0 as *mut T } src/test/run-pass/consts/const-cast-ptr-int.rs:12:static a: TestStruct = TestStruct{x: 0 as *const u8}; src/test/ui/issues/issue-45730.rs:5: let x: *const _ = 0 as *const _; //~ ERROR cannot cast src/test/ui/issues/issue-45730.rs:8: let x = 0 as *const i32 as *const _ as *mut _; //~ ERROR cannot cast src/test/ui/issues/issue-45730.stderr:14:LL | let x: *const _ = 0 as *const _; src/test/ui/issues/issue-45730.stderr:24:LL | let x = 0 as *const i32 as *const _ as *mut _; src/test/ui/lint/lint-forbid-internal-unsafe.rs:15: println!("{}", evil!(*(0 as *const u8))); src/test/ui/order-dependent-cast-inference.rs:5: let mut y = 0 as *const _; src/test/ui/order-dependent-cast-inference.stderr:4:LL | let mut y = 0 as *const _; ``` r? @sfackler
2019-06-17remove _by_hir_id if there is no NodeId counterpartljedrz-3/+3
2019-06-17Make use of `ptr::null(_mut)` instead of casting zeroLzu Tao-1/+1
2019-06-16Separate librustc_metadata modulechansuke-49/+48
2019-06-15Remove unnecessary `.clone()`Shotaro Yamada-1/+1
2019-06-14Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-15/+4
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-38/+39
2019-06-13Rollup merge of #61757 - sfackler:deprecate-once-init, r=alexcrichtonMazdak Farrokhzad-2/+2
Deprecate ONCE_INIT in future 1.38 release Once::new() has been a stable const fn for a while now. Closes #61746
2019-06-12Deprecate ONCE_INITSteven Fackler-2/+2
Once::new() has been a stable const fn for a while now. Closes #61746
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-60/+45
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-34/+34
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-5/+5
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-55/+55
2019-06-11Auto merge of #61741 - Centril:rollup-fgro5kz, r=Centrilbors-4/+4
Rollup of 11 pull requests Successful merges: - #61518 (Add loops to doc list of things not stable in const fn) - #61526 (move some tests into subfolders) - #61550 (Windows 10 SDK is also required now.) - #61606 (Remove some legacy proc macro flavors) - #61652 (Mention slice patterns in array) - #61686 (librustc_errors: Add some more documentation) - #61698 (typeck: Fix const generic in repeat param ICE.) - #61707 (Azure: retry failed awscli installs) - #61715 (make sure make_ascii_lowercase actually leaves upper-case non-ASCII characters alone) - #61724 (core: use memcmp optimization for 128 bit integer slices) - #61726 (Use `for_each` in `Iterator::partition`) Failed merges: r? @ghost
2019-06-11Add deny(unused_lifetimes) to all the crates that have deny(internal).Eduard-Mihai Burtescu-0/+1
2019-06-10syntax: Rename variants of `SyntaxExtension` for consistencyVadim Petrochenkov-4/+4
2019-06-06Make constructors actually be const functionsMatthew Jasper-0/+1
2019-06-01Rollup merge of #61389 - Zoxc:arena-cleanup, r=eddybMazdak Farrokhzad-3/+3
Remove GlobalArenas and use Arena instead r? @eddyb
2019-05-31rustc_codegen_utils: add new mangling scheme implementation.Eduard-Mihai Burtescu-0/+4
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