Commit Graph

108669 Commits

Author SHA1 Message Date
John Kåre Alsaker
3538cb38fc Only hash the Hir owner (including its bodies) 2020-03-14 22:52:30 +01:00
John Kåre Alsaker
d73268b05c Remove input_task 2020-03-14 22:52:30 +01:00
John Kåre Alsaker
b97d4383a4 Remove Hir and HirBody dep nodes 2020-03-14 22:52:30 +01:00
John Kåre Alsaker
e9d166fac5 Clean up the collector 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
fa09db8468 Remove AllLocalTraitImpls 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
d99b17fa64 Remove the map field from Map 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
072449c0dc Update trait_impls 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
270ee7eca3 Remove comments 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
61527c8d8c Update find_entry 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
21942a5cf6 Update is_hir_id_module 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
9c4308ed92 Update find 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
d5827d8bc1 Update get_parent_node 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
b40e6baec7 Update visit_item_likes_in_module 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
38e613c4eb Update krate_attrs and get_module 2020-03-14 22:52:29 +01:00
John Kåre Alsaker
0c68b7a7fa Update body_owner and maybe_body_owned_by 2020-03-14 22:52:28 +01:00
John Kåre Alsaker
d3c73940b7 Update fn_decl_by_hir_id and fn_sig_by_hir_id 2020-03-14 22:52:28 +01:00
John Kåre Alsaker
e1a9626bb3 Update item functions 2020-03-14 22:52:28 +01:00
John Kåre Alsaker
518c78fbd3 Create Map after TyCtxt 2020-03-14 22:52:28 +01:00
John Kåre Alsaker
21386e1355 Collect the new maps 2020-03-14 22:52:28 +01:00
John Kåre Alsaker
cfa1d4e383 Add HIR queries 2020-03-14 22:52:28 +01:00
Amanieu d'Antras
864d05bc8a Add a workaround for catch_unwind in stage1 mingw target
Fixes #70001
2020-03-14 20:55:50 +01:00
bors
7cdbc87a49 Auto merge of #69999 - RalfJung:miri-unwind, r=oli-obk
adjust Miri to needs of changed unwinding strategy

As expected, https://github.com/rust-lang/rust/pull/67502 broke unwinding in Miri. To fix it we have to adjust parts of the engine and the panic runtime, which this PR does. The Miri-side changes are in https://github.com/rust-lang/miri/pull/1227.

Cc @oli-obk @Aaron1011 @Mark-Simulacrum @Amanieu
2020-03-14 19:54:23 +00:00
Guillaume Gomez
8216a32d32 remove compilation warning 2020-03-14 18:17:20 +01:00
Guillaume Gomez
d4ea327f24 Make ignore and compile fail signs more visible 2020-03-14 18:17:08 +01:00
bors
131772c5e0 Auto merge of #69076 - cjgillot:split_trait, r=matthewjasper
Split librustc::{traits,infer} to their respective crates

Followup on #67953.

I tried to follow the existing module structures.

cc @eddyb
r? @Zoxc
2020-03-14 16:43:20 +00:00
Vadim Petrochenkov
e80cb2032c resolve: Fix regression in resolution of raw keywords in paths 2020-03-14 19:21:38 +03:00
Jonas Schievink
38fa3783ce Swap inserts to keep the original ordering 2020-03-14 15:46:57 +01:00
bors
0f1e814c11 Auto merge of #69923 - matthiaskrgr:submodule_upd, r=Dylan-DPC
submodules: update clippy from 329923ed to fdce47ba

Changes:
````
add CR feedback
Improve documentation
Use `edition:2018` flag more widely
Update tests/ui/needless_doc_main.rs
Move links to the end of each chapter on adding_lints
Move links to the end of each chapter on CONTRIBUTING
Clean-up adding_lints.md
Clean-up CONTRIBUTING.md
needless_doc_main: only check rust code
Use `node_type_opt` over `node_type`
Fix doc
Fix ICE with trivial_bounds feature
clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy.
update rust-lang.github.io to rustc-dev-guide.rust-lang.org
Improve placeholder in map_unit_fn
Fix match single binding when in a let stmt
Improve error messages for {option,result}_map_unit_fn
Mention the setup instructions in CONTRIBUTING
redundant_pattern: take binding (ref, ref mut) into account in suggestion.
check_pat: delay creation of the "normal" vec until we reach the branch where is is actually needed
deps: bump itertools 0.8 -> 0.9
add lint on File::read_to_string and File::read_to_end
transition rustc-guide to rustc-dev-guide
Rename macro_use_import -> macro_use_imports
warn on macro_use attr
Fix deploy script for tag deploys
````

Fixes rust-lang#69957
2020-03-14 13:28:50 +00:00
Camille GILLOT
0144a97946 Trim dependencies and features. 2020-03-14 14:18:15 +01:00
Camille GILLOT
1fcdc52f70 Make downstream crates compile. 2020-03-14 14:17:43 +01:00
Camille GILLOT
0535dd3721 Split librustc_infer. 2020-03-14 14:17:13 +01:00
Camille GILLOT
c1e3d556bf Move rustc_infer::traits to new crate rustc_trait_selection. 2020-03-14 14:15:50 +01:00
Camille GILLOT
21d4e063bc Mode ProjectionCache to its own module. 2020-03-14 14:15:14 +01:00
Camille GILLOT
796ca64e9a Move traits::query::outlives_bounds::explicit_outlives_bounds to infer::outlives. 2020-03-14 14:14:51 +01:00
Jonas Schievink
49aabd8a60 Fix rebase fallout 2020-03-14 14:14:50 +01:00
Camille GILLOT
98444ca53e Move opaque_types::unexpected_hidden_region_diagnostic to error_reporting. 2020-03-14 14:14:13 +01:00
Camille GILLOT
3e5259d3eb Move IntercrateAmbiguityCause back to rustc::traits::select. 2020-03-14 14:10:56 +01:00
Jonas Schievink
4266807e44 Add a test for generator discriminants 2020-03-14 14:09:48 +01:00
Jonas Schievink
b2779d8596 Use smaller discriminants for generators 2020-03-14 14:09:48 +01:00
Ralf Jung
139a8c34bc fix a codegen test 2020-03-14 14:05:26 +01:00
Ralf Jung
59350e4ae2 increase slack for stack size test 2020-03-14 14:05:26 +01:00
Ralf Jung
058ff728dc debug-assert ptr sanity in ptr::write 2020-03-14 14:05:26 +01:00
Ralf Jung
b450e1baf4 fix comment, rustfmt 2020-03-14 13:09:02 +01:00
Ralf Jung
b5938adb4d adjust Miri to needs of changed unwinding strategy 2020-03-14 11:51:27 +01:00
Ralf Jung
4452843720 update panicking comments in libstd 2020-03-14 11:36:40 +01:00
Ayush Kumar Mishra
4bd6ebcc31 Add long error explanation for E0634 #61137 2020-03-14 16:01:03 +05:30
Ralf Jung
9c5d8e9b52 adjust Miri interaction with panic runtime 2020-03-14 11:24:11 +01:00
Ralf Jung
62087439a4 add Scalar::from methods for signed integers 2020-03-14 11:12:32 +01:00
bors
42ce9b4e90 Auto merge of #69744 - ecstatic-morse:fix-enum-discr-effect-test, r=oli-obk
Add `mir-opt` test for more precise drop elaboration

Depends on #69676. This test should ensure that the problem fixed in that PR does not reoccur.

This has been split out from #69676 since the test fails on certain targets where no cleanup blocks are emitted. I have to find the correct `ignore` directives.

r? @oli-obk
2020-03-14 08:26:54 +00:00
Ayush Kumar Mishra
1c88052fa0 Add long error explanation for E0693 #61137 2020-03-14 08:41:05 +05:30