about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2020-01-05simplify reexports in rustc::hirMazdak Farrokhzad-78/+72
2020-01-05Auto merge of #67777 - Zoxc:time-refactor, r=wesleywiserbors-477/+472
Use self profile infrastructure for -Z time and -Z time-passes There's no longer indentation for -Z time and -Z time-passes and duplicate timers between self profiling and -Z time-passes have been removed. r? @wesleywiser
2020-01-05Use self profile infrastructure for -Z time and -Z time-passesJohn Kåre Alsaker-477/+472
2020-01-05Auto merge of #67808 - Marwes:projection_normalization_recurse, r=nikomatsakisbors-0/+3
perf: Don't recurse into types that do not need normalizing A bit speculative at this stage but profiling shows that type folding takes up a substantial amount of time during normalization which may indicate that many types may be folded despite there being nothing to normalize
2020-01-04Auto merge of #67803 - Centril:librustc_hir, r=Zoxcbors-950/+1104
Extract `rustc_hir` out of `rustc` The new crate contains: ```rust pub mod def; pub mod def_id; mod hir; pub mod hir_id; pub mod itemlikevisit; pub mod pat_util; pub mod print; mod stable_hash_impls; pub use hir::*; pub use hir_id::*; pub use stable_hash_impls::HashStableContext; ``` Remains to be done in follow-up PRs: - Move `rustc::hir::map` into `rustc_hir_map` -- this has to be a separate crate due to the `dep_graph` (blocked on https://github.com/rust-lang/rust/pull/67761). - Move references to `rustc::hir` to `rustc_hir` where possible. cc https://github.com/rust-lang/rust/issues/65031 r? @Zoxc
2020-01-04Auto merge of #67874 - Dylan-DPC:rollup-xy6bkoe, r=Dylan-DPCbors-197/+211
Rollup of 4 pull requests Successful merges: - #67137 (libstd uses `core::panic::Location` where possible.) - #67709 (Introduce an option for disabling deduplication of diagnostics) - #67775 (Make "use $crate" a hard error) - #67812 (Tweak and extend internal BTreeMap documentation, including debug asserts.) Failed merges: r? @ghost
2020-01-04Rollup merge of #67812 - ssomers:btreemap_internal_doc, r=rkruppeDylan DPC-15/+39
Tweak and extend internal BTreeMap documentation, including debug asserts. Gathered from work on various other pull requests (e.g. #67725, #67686).
2020-01-04Rollup merge of #67775 - mental32:master, r=Dylan-DPCDylan DPC-25/+15
Make "use $crate" a hard error Closes #37390
2020-01-04Rollup merge of #67709 - petrochenkov:nodedup2, r=CentrilDylan DPC-63/+67
Introduce an option for disabling deduplication of diagnostics With the intent of using it in UI tests (https://github.com/rust-lang/rust/pull/67122). The option is boolean (`-Z deduplicate-diagnostics=yes/no`) and can be specified multiple times with later values overriding earlier values (`-Z deduplicate-diagnostics=no -Z deduplicate-diagnostics=yes` == `-Z deduplicate-diagnostics=yes`), so it can be set in a hierarchical way, e.g. UI testing infra may disable the deduplication by default with specific tests being able to enable it back.
2020-01-04Rollup merge of #67137 - anp:tracked-panic-internals, r=eddybDylan DPC-94/+90
libstd uses `core::panic::Location` where possible. cc @eddyb
2020-01-04pacify the parallel compilerMazdak Farrokhzad-1/+5
2020-01-04cleanup librustc_hir/Cargo.tomlMazdak Farrokhzad-43/+3
2020-01-04hir::{hir,def,itemlikevisit,pat_util,print} -> rustc_hirMazdak Farrokhzad-311/+420
Also fix fallout wrt. HashStable.
2020-01-04extract Export, ExportMap from hir::defMazdak Farrokhzad-65/+75
2020-01-04simplify self::Namespace::* importMazdak Farrokhzad-11/+9
2020-01-04move {Par}DeepVisitor to intravisitMazdak Farrokhzad-59/+56
2020-01-04hir::hir: simplify some importsMazdak Farrokhzad-16/+10
2020-01-04split hir/mod.rs -> hir.rs & hir/hir.rsMazdak Farrokhzad-24/+41
2020-01-04Restrict visibility of location_triple_for_span.Adam Perry-1/+1
2020-01-04Clean up comments in panicking infra.Adam Perry-11/+8
2020-01-04Update ABI in const impls of panic_fn/begin_panic_fn.Adam Perry-39/+22
2020-01-04Test cleanups to match #[track_caller] in panic!.Adam Perry-8/+26
* Removes unnecessary feature flag from track_caller test. * Tests of panic internals no longer need to explicitly construct Location. * Add #![warn(const_err)] to retain-never-const per @oli-obk. * Add track_caller test with diverging function.
2020-01-04core and std macros and panic internals use panic::Location::caller.Adam Perry-37/+35
2020-01-04move `HirId` to librustc_hir::hir_idMazdak Farrokhzad-85/+83
2020-01-04move def_id to new rustc_hir crateMazdak Farrokhzad-20/+117
2020-01-04move describe_as_module to where it's usedMazdak Farrokhzad-18/+22
2020-01-04remove DefId::to_dep_node (dead code)Mazdak Farrokhzad-6/+0
2020-01-04{HirId,ItemLocal}{Map,Set} -> rustc::hir & nix rustc::nodemapMazdak Farrokhzad-34/+16
2020-01-04DefId{Map,Set} -> rustc::hir::def_idMazdak Farrokhzad-48/+32
2020-01-04canonicalize rustc_session importsMazdak Farrokhzad-3/+2
2020-01-04move Node{Map,Set} -> rustc_session::node_idMazdak Farrokhzad-14/+21
2020-01-04define_id_collections -> rustc_data_structuresMazdak Farrokhzad-6/+9
2020-01-04canonicalize FxHash{Map,Set} importsMazdak Farrokhzad-117/+112
2020-01-04extract rustc::middle::codegen_fn_attrsMazdak Farrokhzad-149/+151
2020-01-04fn adt_kind -> wfcheckMazdak Farrokhzad-13/+13
2020-01-04Tweak and extend internal documentation, including debug asserts.Stein Somers-15/+39
Co-Authored-By: Robin Kruppe <robin.kruppe@gmail.com>
2020-01-04Auto merge of #67866 - GuillaumeGomez:rollup-32vsg5b, r=GuillaumeGomezbors-218/+204
Rollup of 4 pull requests Successful merges: - #67822 (Revert `const_err` lint checking of casts) - #67823 (improve some `Drop`-related error messages) - #67837 (Clean up err codes) - #67848 (Remove unused `#[link_name = "m"]` attributes) Failed merges: r? @ghost
2020-01-04Rollup merge of #67848 - ollie27:float_link_name_attr, r=Dylan-DPCGuillaume Gomez-3/+0
Remove unused `#[link_name = "m"]` attributes These were perhaps supposed to be `#[link(name = "m")]` but linking libm should be handled by the libc crate anyway. They should have triggered a compile error: #47725
2020-01-04Rollup merge of #67837 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPCGuillaume Gomez-13/+35
Clean up err codes r? @Dylan-DPC
2020-01-04Rollup merge of #67823 - euclio:drop-improvements, r=petrochenkovGuillaume Gomez-111/+151
improve some `Drop`-related error messages
2020-01-04Rollup merge of #67822 - wesleywiser:revert_67676, r=oli-obkGuillaume Gomez-91/+18
Revert `const_err` lint checking of casts Reverts part of #67676 r? @oli-obk cc @SimonSapin
2020-01-04Auto merge of #67788 - cjgillot:delint-day, r=Zoxcbors-944/+1011
Move early and late lint mechanisms to librustc_lint. As requested, split from #67737 r? @Zoxc
2020-01-04try to fix ui errorsYuki Okushi-0/+2
2020-01-04Auto merge of #67853 - Centril:rollup-sx5zi9n, r=Centrilbors-537/+758
Rollup of 8 pull requests Successful merges: - #66913 (Suggest calling method when first argument is `self`) - #67531 (no longer promote non-pattern const functions) - #67773 (Add a test for #37333) - #67786 (Nix reexports from `rustc_span` in `syntax`) - #67789 (Cleanup linkchecker whitelist) - #67810 (Implement uncommon_codepoints lint.) - #67835 (tweak wording of mismatched delimiter errors) - #67845 (Also remove const-hack for abs) Failed merges: r? @ghost
2020-01-04Update E0164.mdDylan DPC-1/+1
2020-01-04Rollup merge of #67845 - jumbatm:also-unconst-hack-abs, r=oli-obkMazdak Farrokhzad-18/+6
Also remove const-hack for abs Closes #67842. r? @oli-obk
2020-01-04Rollup merge of #67835 - euclio:delimiter-wording, r=CentrilMazdak Farrokhzad-135/+135
tweak wording of mismatched delimiter errors This PR improves the wording of the "incorrect delimiter" error messages. Here's a quick rationale: - *"un-closed" -> "unclosed"*: "unclosed" is valid English, so there's no need to hyphenate the prefix. This should be pretty uncontroversial, I think. - *"close delimiter" -> "closing delimiter"*: In my anecdotal experience, I've always heard "closing delimiter" or "closing parenthesis". In addition, the codebase already uses this terminology in comments and function names more than "close delimiter", which could indicate that it's more intuitive. - "incorrect delimiter" -> "mismatched delimiter": "Incorrect delimiter" is vague; why is it incorrect? "mismatched" clearly indicates why the delimiter is causing the error. r? @estebank
2020-01-04Rollup merge of #67810 - crlf0710:uncommon_codepoints_lint, r=ManishearthMazdak Farrokhzad-4/+84
Implement uncommon_codepoints lint. Part of #55467 . The checks of `$crate` and `{{root}}` are very unfortunate. But i'm not sure where they belongs to.
2020-01-04Rollup merge of #67789 - ollie27:linkchecker_whitelist, r=nikomatsakisMazdak Farrokhzad-20/+9
Cleanup linkchecker whitelist linkchecker is no longer run on the compiler docs so they can be removed from the whitelist.
2020-01-04Rollup merge of #67786 - Centril:canon-span, r=petrochenkovMazdak Farrokhzad-356/+352
Nix reexports from `rustc_span` in `syntax` Remove reexports `syntax::{source_map, symbol, edition}` and use `rustc_span` paths directly. r? @petrochenkov