Dylan DPC
838884e022
Rollup merge of #69993 - ayushmishra2005:doc/61137-add-long-error-code-e0693, r=Dylan-DPC
...
Add long error explanation for E0693
Add long explanation for the E0693 error code
Part of #61137
r? @GuillaumeGomez
2020-03-15 02:44:23 +01:00
Dylan DPC
191a7965b1
Rollup merge of #69991 - contrun:fix-69980, r=Dylan-DPC
...
fix E0117 message out of sync
Closes https://github.com/rust-lang/rust/issues/69980
2020-03-15 02:44:22 +01:00
Dylan DPC
65f56dad14
Rollup merge of #69987 - kraai:mailmap, r=nikomatsakis
...
Add self to .mailmap
The variants are only used for [rust-lang/rust-clippy](https://github.com/rust-lang/rust-clippy ), but it seems like <https://thanks.rust-lang.org/ > only uses this `.mailmap`.
2020-03-15 02:44:20 +01:00
Dylan DPC
bf6e715fa0
Rollup merge of #69967 - mark-i-m:rinfctx, r=matthewjasper
...
Remove a few `Rc`s from RegionInferenceCtxt
fixes https://github.com/rust-lang/rust/issues/55853
r? @matthewjasper
2020-03-15 02:44:18 +01:00
Dylan DPC
f40272ca6f
Rollup merge of #69498 - mark-i-m:describe-it-2, r=matthewjasper
...
Change "method" to "associated function"
r? @matthewjasper
cc @Centril @eddyb #67742
I'm opening this mostly as a test to see what the diagnostic changes would be. It seems that this makes them somewhat more verbose, and I'm not sure it's worth it...
The relevant changes are the last two commits (it is rebased on top of #67742 )
2020-03-15 02:44:17 +01:00
Dylan DPC
0619e4649d
Rollup merge of #69471 - nnethercote:rm-sip-Hasher-short_write, r=dtolnay
...
Remove `sip::Hasher::short_write`.
`sip::Hasher::short_write` is currently unused. It is called by
`sip::Hasher::write_{u8,usize}`, but those methods are also unused,
because `DefaultHasher`, `SipHasher` and `SipHasher13` don't implement
any of the `write_xyz` methods, so all their write operations end up
calling `sip::Hasher::write`.
(I confirmed this by inserting a `panic!` in `sip::Hasher::short_write`
and running the tests -- they all passed.)
The alternative would be to add all the missing `write_xyz` methods.
This does give some significant speed-ups, but it hurts compile times a
little in some cases. See #69152 for details. This commit does the
conservative thing and doesn't change existing behaviour.
r? @rust-lang/libs
2020-03-15 02:44:15 +01:00
Dylan DPC
62c0579116
Rollup merge of #69357 - tmiasko:debuginfo-column, r=michaelwoerister
...
Emit 1-based column numbers in debuginfo
* Use byte offsets instead of char position offsets. Resolves #67360 .
* Use 1-based offsets instead of 0-based ones. Resolves #65437 .
* Consistently omit column information for msvc targets, matching clang behaviour (previously columns have been omitted from `DILocation`, but not from `DILexicalBlock`).
2020-03-15 02:44:13 +01:00
Ayush Mishra
2974685f09
Update src/librustc_error_codes/error_codes/E0634.md
...
Co-Authored-By: Dylan DPC <dylan.dpc@gmail.com>
2020-03-15 06:49:54 +05:30
Ayush Mishra
5760db14f9
Update src/librustc_error_codes/error_codes/E0634.md
...
Co-Authored-By: Dylan DPC <dylan.dpc@gmail.com>
2020-03-15 06:49:45 +05:30
Vadim Petrochenkov
2093d83afc
def_collector: Fully visit async functions
2020-03-15 03:15:47 +03:00
Dylan MacKenzie
d7e6649326
Return feature gate as a Symbol
2020-03-14 16:04:42 -07:00
Guillaume Gomez
138d29d358
Update ui tests
2020-03-14 23:51:45 +01:00
Timothée Gerber
6d521ecc62
Fix punctuation in rustdoc book
2020-03-14 23:40:29 +01:00
Timothée Gerber
131433a2c0
Change fenced code block type in rustdoc book
2020-03-14 23:31:34 +01:00
Dylan MacKenzie
6f75d3fcc0
Simplify Qualif
interface
2020-03-14 15:19:43 -07:00
Guillaume Gomez
ecb84c975d
Clean up E0412 and E0422 explanations
2020-03-14 23:19:22 +01:00
Timothée Gerber
68dc24fcbe
Clean up path separator in rustdoc book
2020-03-14 23:04:33 +01:00
John Kåre Alsaker
14fdd85a5a
Add some comments to the new queries
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
31183c39df
Add test for #69596
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
2af085d34f
Don't try to print missing HIR ids
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
8b8041efc0
Update tests
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
7118f71ea1
Update ich_nested_items.rs
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
6258c0144d
Reintroduce workaround for #62649
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
10b23e3fd3
Format function_interfaces.rs
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
274fb668b4
Replace Hir
with hir_owner
in tests
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
c0b60c428a
Replace HirBody
with hir_owner_items
in tests
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
739a1ef113
Create the hir_to_node_id
map before TyCtxt
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
396aeb83c0
Optimize the HIR map
2020-03-14 22:52:31 +01:00
John Kåre Alsaker
aea57aee5f
Don't hash HIR with bodies thrice
2020-03-14 22:52:30 +01:00
John Kåre Alsaker
0e316e29e6
Fix HIR map validation
2020-03-14 22:52:30 +01:00
John Kåre Alsaker
8b16b023b1
Index HIR after creating TyCtxt
2020-03-14 22:52:30 +01:00
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