]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoSimplify type aliases.
Camille GILLOT [Sat, 7 Mar 2020 16:56:59 +0000 (17:56 +0100)]
Simplify type aliases.

4 years agoOffload try_collect_active_jobs.
Camille GILLOT [Sat, 7 Mar 2020 10:03:49 +0000 (11:03 +0100)]
Offload try_collect_active_jobs.

4 years agoRemove Q parameter from try_get_cached.
Camille GILLOT [Sat, 7 Mar 2020 16:19:47 +0000 (17:19 +0100)]
Remove Q parameter from try_get_cached.

4 years agoRemove Q parameter from JobOwner.
Camille GILLOT [Sat, 7 Mar 2020 09:38:44 +0000 (10:38 +0100)]
Remove Q parameter from JobOwner.

4 years agoRemove Q parameter from query stats.
Camille GILLOT [Fri, 6 Mar 2020 19:33:13 +0000 (20:33 +0100)]
Remove Q parameter from query stats.

4 years agoRemove Q parameter from alloc_self_profile_query_strings_for_query_cache.
Camille GILLOT [Fri, 6 Mar 2020 19:17:03 +0000 (20:17 +0100)]
Remove Q parameter from alloc_self_profile_query_strings_for_query_cache.

4 years agoRemove Q parameter from QueryCache::lookup.
Camille GILLOT [Fri, 6 Mar 2020 19:10:53 +0000 (20:10 +0100)]
Remove Q parameter from QueryCache::lookup.

4 years agoUnpack type arguments for QueryState.
Camille GILLOT [Fri, 6 Mar 2020 19:05:05 +0000 (20:05 +0100)]
Unpack type arguments for QueryState.

4 years agoUnpack type arguments for QueryLookup.
Camille GILLOT [Fri, 6 Mar 2020 18:54:19 +0000 (19:54 +0100)]
Unpack type arguments for QueryLookup.

4 years agoUnpack type arguments for QueryStateShard.
Camille GILLOT [Fri, 6 Mar 2020 17:36:11 +0000 (18:36 +0100)]
Unpack type arguments for QueryStateShard.

4 years agoMove impl of Queries with its definition.
Camille GILLOT [Sat, 7 Mar 2020 16:10:31 +0000 (17:10 +0100)]
Move impl of Queries with its definition.

4 years agoInline QueryAccessor::query.
Camille GILLOT [Sat, 7 Mar 2020 00:01:01 +0000 (01:01 +0100)]
Inline QueryAccessor::query.

4 years agoMake QueryAccessor::dep_kind an associated const.
Camille GILLOT [Fri, 6 Mar 2020 23:43:17 +0000 (00:43 +0100)]
Make QueryAccessor::dep_kind an associated const.

4 years agoRemove __query_compute module.
Camille GILLOT [Fri, 6 Mar 2020 20:36:09 +0000 (21:36 +0100)]
Remove __query_compute module.

4 years agoAuto merge of #70034 - Dylan-DPC:rollup-5yg771j, r=Dylan-DPC
bors [Mon, 16 Mar 2020 02:52:47 +0000 (02:52 +0000)]
Auto merge of #70034 - Dylan-DPC:rollup-5yg771j, r=Dylan-DPC

Rollup of 8 pull requests

Successful merges:

 - #69686 (Use `pprust` to print attributes in rustdoc)
 - #69858 (std: on Windows, use GetSystemTimePreciseAsFileTime if it is available)
 - #69917 (Cleanup E0412 and E0422)
 - #69964 (Add Node.js to PR CI image)
 - #69992 (Block version-specific docs from search engines)
 - #69995 (Add more context to the literal overflow message)
 - #69998 (Add long error explanation for E0634)
 - #70014 (Small fixes in rustdoc book)

Failed merges:

r? @ghost

4 years agoRollup merge of #70014 - TimotheeGerber:small-fix-rustdoc-book, r=Dylan-DPC
Dylan DPC [Mon, 16 Mar 2020 00:30:41 +0000 (01:30 +0100)]
Rollup merge of #70014 - TimotheeGerber:small-fix-rustdoc-book, r=Dylan-DPC

Small fixes in rustdoc book

I read the `rustdoc` book today and noticed some small typos/problems. Mainly:

 - `# fn foo() {}` was displayed when not needed because fenced block code type was `text` instead of `rust`;
 - two path separators were missing and some Windows-style separators were not consistent with the rest of them (mainly Linux-style).

Here are my proposed fixes. It is my first PR for the rust project. Don't hesitate to tell me if I am doing it wrong or if you need anything else.

Have a nice day!

4 years agoRollup merge of #69998 - ayushmishra2005:doc/61137-add-long-error-code-e0634, r=Dylan...
Dylan DPC [Mon, 16 Mar 2020 00:30:38 +0000 (01:30 +0100)]
Rollup merge of #69998 - ayushmishra2005:doc/61137-add-long-error-code-e0634, r=Dylan-DPC,GuillaumeGomez

Add long error explanation for E0634

Add long explanation for the E0634 error code
Part of #61137

r? @GuillaumeGomez

4 years agoRollup merge of #69995 - contrun:add-context-to-literal-overflow, r=ecstatic-morse
Dylan DPC [Mon, 16 Mar 2020 00:30:37 +0000 (01:30 +0100)]
Rollup merge of #69995 - contrun:add-context-to-literal-overflow, r=ecstatic-morse

Add more context to the literal overflow message

related to issue https://github.com/rust-lang/rust/issues/63733

4 years agoRollup merge of #69992 - kornelski:robots, r=steveklabnik
Dylan DPC [Mon, 16 Mar 2020 00:30:35 +0000 (01:30 +0100)]
Rollup merge of #69992 - kornelski:robots, r=steveklabnik

Block version-specific docs from search engines

Latest stable, beta and nightly URLs remain accessible because their URLs don't start with a version number. Robots.txt uses simple path prefixes, so it's OK that the disallow rules aren't full directory paths.

Direct links to old docs remain accessible to users, because robots.txt only affects crawlers.

With this change old docs for specific old versions of Rust won't pop up in search results. This is good, because users won't be getting obsolete documentation by accident.

4 years agoRollup merge of #69964 - ollie27:ci_nodejs, r=Mark-Simulacrum,GuillaumeGomez
Dylan DPC [Mon, 16 Mar 2020 00:30:33 +0000 (01:30 +0100)]
Rollup merge of #69964 - ollie27:ci_nodejs, r=Mark-Simulacrum,GuillaumeGomez

Add Node.js to PR CI image

This should allow the `rustdoc-js` and `rustdoc-js-std` test suites to run automatically on PRs.

4 years agoRollup merge of #69917 - GuillaumeGomez:cleanup-e0412, r=Dylan-DPC
Dylan DPC [Mon, 16 Mar 2020 00:30:31 +0000 (01:30 +0100)]
Rollup merge of #69917 - GuillaumeGomez:cleanup-e0412, r=Dylan-DPC

Cleanup E0412 and E0422

r? @Dylan-DPC

4 years agoRollup merge of #69858 - da-x:windows-precise-time, r=Dylan-DPC
Dylan DPC [Mon, 16 Mar 2020 00:30:28 +0000 (01:30 +0100)]
Rollup merge of #69858 - da-x:windows-precise-time, r=Dylan-DPC

std: on Windows, use GetSystemTimePreciseAsFileTime if it is available

This implements #67266.

4 years agoRollup merge of #69686 - varkor:rustdoc-attributes, r=GuillaumeGomez
Dylan DPC [Mon, 16 Mar 2020 00:30:24 +0000 (01:30 +0100)]
Rollup merge of #69686 - varkor:rustdoc-attributes, r=GuillaumeGomez

Use `pprust` to print attributes in rustdoc

Fixes https://github.com/rust-lang/rust/issues/69559.

I'm not sure what the original motivation was for the `render_attribute`, so I may be missing something, but replacing it with `pprust::attribute_to_string` seems to give the intended output (modulo some spacing idiosyncrasies).

r? @GuillaumeGomez

4 years agoAuto merge of #68944 - Zoxc:hir-map, r=eddyb
bors [Sun, 15 Mar 2020 20:40:16 +0000 (20:40 +0000)]
Auto merge of #68944 - Zoxc:hir-map, r=eddyb

Use queries for the HIR map

r? @eddyb cc @michaelwoerister

4 years agoAuto merge of #70024 - Centril:rollup-cppmaxr, r=Centril
bors [Sun, 15 Mar 2020 17:27:47 +0000 (17:27 +0000)]
Auto merge of #70024 - Centril:rollup-cppmaxr, r=Centril

Rollup of 8 pull requests

Successful merges:

 - #69528 (Add undo_leak to reset RefCell borrow state)
 - #69589 (ast: `Mac`/`Macro` -> `MacCall`)
 - #69661 (Implement From<&mut str> for String)
 - #69988 (rustc_metadata: Remove `rmeta::MacroDef`)
 - #70006 (resolve: Fix two issues in fresh binding disambiguation)
 - #70011 (def_collector: Fully visit async functions)
 - #70013 (Return feature gate as a `Symbol` )
 - #70018 (Fix "since" field for `Once::is_complete`'s `#[stable]` attribute)

Failed merges:

r? @ghost

4 years agoAdd FIXME note
varkor [Tue, 3 Mar 2020 23:47:13 +0000 (23:47 +0000)]
Add FIXME note

4 years agoRender full attributes in rustdoc
varkor [Tue, 3 Mar 2020 23:41:32 +0000 (23:41 +0000)]
Render full attributes in rustdoc

4 years agoRollup merge of #70018 - LukasKalbertodt:fix-once-is-complete-since, r=Centril
Mazdak Farrokhzad [Sun, 15 Mar 2020 14:40:15 +0000 (15:40 +0100)]
Rollup merge of #70018 - LukasKalbertodt:fix-once-is-complete-since, r=Centril

Fix "since" field for `Once::is_complete`'s `#[stable]` attribute

It was accidentally merged with the wrong version in #68945.  Thanks @jplatte for noticing.

This also needs to be beta backported.

4 years agoRollup merge of #70013 - ecstatic-morse:check-consts-feature-gate, r=oli-obk
Mazdak Farrokhzad [Sun, 15 Mar 2020 14:40:13 +0000 (15:40 +0100)]
Rollup merge of #70013 - ecstatic-morse:check-consts-feature-gate, r=oli-obk

Return feature gate as a `Symbol`

A minor refactoring that will be needed for #68940. That PR is blocked on me changing the error comments in a whole lot of UI tests.

r? @oli-obk

4 years agoRollup merge of #70011 - petrochenkov:asyncice, r=Centril
Mazdak Farrokhzad [Sun, 15 Mar 2020 14:40:12 +0000 (15:40 +0100)]
Rollup merge of #70011 - petrochenkov:asyncice, r=Centril

def_collector: Fully visit async functions

We forgot to visit attributes previously, it caused ICEs.

Special treatment of async functions is also moved from `visit_item` to `visit_fn` to reuse more of the default visitor.

Fixes https://github.com/rust-lang/rust/issues/67778.

4 years agoRollup merge of #70006 - petrochenkov:fresh, r=Centril
Mazdak Farrokhzad [Sun, 15 Mar 2020 14:40:10 +0000 (15:40 +0100)]
Rollup merge of #70006 - petrochenkov:fresh, r=Centril

resolve: Fix two issues in fresh binding disambiguation

Prevent fresh bindings from shadowing ambiguity items.
Fixes https://github.com/rust-lang/rust/issues/46079

Correctly treat const generic parameters in fresh binding disambiguation.
Fixes https://github.com/rust-lang/rust/issues/68853

4 years agoRollup merge of #69988 - petrochenkov:nomacrodef, r=Centril
Mazdak Farrokhzad [Sun, 15 Mar 2020 14:40:08 +0000 (15:40 +0100)]
Rollup merge of #69988 - petrochenkov:nomacrodef, r=Centril

rustc_metadata: Remove `rmeta::MacroDef`

And other related cleanups.

Follow-up to https://github.com/rust-lang/rust/pull/66364.
r? @Centril

4 years agoRollup merge of #69661 - lopopolo:string-from-mut-str, r=sfackler
Mazdak Farrokhzad [Sun, 15 Mar 2020 14:40:07 +0000 (15:40 +0100)]
Rollup merge of #69661 - lopopolo:string-from-mut-str, r=sfackler

Implement From<&mut str> for String

I ran into this missing impl when trying to do `String::from` on the result returned from this API in the `uuid` crate:

https://docs.rs/uuid/0.8.1/uuid/adapter/struct.Hyphenated.html#method.encode_lower

I wasn't sure what to put in the stability annotation. I'd appreciate some help with that :)

4 years agoRollup merge of #69589 - petrochenkov:maccall, r=Centril
Mazdak Farrokhzad [Sun, 15 Mar 2020 14:40:05 +0000 (15:40 +0100)]
Rollup merge of #69589 - petrochenkov:maccall, r=Centril

ast: `Mac`/`Macro` -> `MacCall`

It's now obvious that these refer to macro calls rather than to macro definitions.

It's also a single name instead of two different names in different places.

`rustc_expand` usually calls macro calls in a wide sense (including attributes and derives) "macro invocations", but structures and variants renamed in this PR are only relevant to fn-like macros, so it's simpler and clearer to just call them calls.

cc https://github.com/rust-lang/rust/pull/63586#discussion_r314232513
r? @eddyb

4 years agoRollup merge of #69528 - HeroicKatora:finalize-ref-cell, r=dtolnay
Mazdak Farrokhzad [Sun, 15 Mar 2020 14:40:03 +0000 (15:40 +0100)]
Rollup merge of #69528 - HeroicKatora:finalize-ref-cell, r=dtolnay

Add undo_leak to reset RefCell borrow state

This method is complementary for the feature cell_leak added in an
earlier PR. It allows *safely* reverting the effects of leaking a borrow guard by
statically proving that such a guard could not longer exist. This was
not added to the existing `get_mut` out of concern of impacting the
complexity of the otherwise pure pointer cast and because the name
`get_mut` poorly communicates the intent of resetting remaining borrows.

This is a follow-up to #68712 and uses the same tracking issue, #69099,
as these methods deal with the same mechanism and the idea came up
[in a review comment](https://github.com/rust-lang/rust/pull/68712#discussion_r384670041).

@dtolnay who reviewed the prior PR.
cc @RalfJung

4 years agoAuto merge of #69961 - RalfJung:miri, r=RalfJung
bors [Sun, 15 Mar 2020 14:18:14 +0000 (14:18 +0000)]
Auto merge of #69961 - RalfJung:miri, r=RalfJung

update miri

r? @ghost
Cc @oli-obk

Fixes https://github.com/rust-lang/rust/issues/69855

4 years agoAuto merge of #70016 - Dylan-DPC:rollup-5k7lxs3, r=Dylan-DPC
bors [Sun, 15 Mar 2020 10:52:37 +0000 (10:52 +0000)]
Auto merge of #70016 - Dylan-DPC:rollup-5k7lxs3, r=Dylan-DPC

Rollup of 7 pull requests

Successful merges:

 - #69357 (Emit 1-based column numbers in debuginfo)
 - #69471 (Remove `sip::Hasher::short_write`.)
 - #69498 (Change "method" to "associated function")
 - #69967 (Remove a few `Rc`s from RegionInferenceCtxt)
 - #69987 (Add self to .mailmap)
 - #69991 (fix E0117 message out of sync)
 - #69993 (Add long error explanation for E0693)

Failed merges:

r? @ghost

4 years agoupdate miri
Ralf Jung [Sun, 15 Mar 2020 10:51:09 +0000 (11:51 +0100)]
update miri

4 years agoresolve: Prevent fresh bindings from shadowing ambiguity items
Vadim Petrochenkov [Sat, 14 Mar 2020 16:44:11 +0000 (19:44 +0300)]
resolve: Prevent fresh bindings from shadowing ambiguity items

Correctly treat const generic parameters in fresh binding disambiguation

4 years agoFix "since" field for `Once::is_complete`'s `#[stable]` attribute
Lukas Kalbertodt [Sun, 15 Mar 2020 09:19:26 +0000 (10:19 +0100)]
Fix "since" field for `Once::is_complete`'s `#[stable]` attribute

It was accidentally merged with the wrong version.

4 years agoAdd more context to the literal overflow message
YI [Sat, 14 Mar 2020 03:57:04 +0000 (11:57 +0800)]
Add more context to the literal overflow message

4 years agoRollup merge of #69993 - ayushmishra2005:doc/61137-add-long-error-code-e0693, r=Dylan-DPC
Dylan DPC [Sun, 15 Mar 2020 01:44:23 +0000 (02:44 +0100)]
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

4 years agoRollup merge of #69991 - contrun:fix-69980, r=Dylan-DPC
Dylan DPC [Sun, 15 Mar 2020 01:44:22 +0000 (02:44 +0100)]
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

4 years agoRollup merge of #69987 - kraai:mailmap, r=nikomatsakis
Dylan DPC [Sun, 15 Mar 2020 01:44:20 +0000 (02:44 +0100)]
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`.

4 years agoRollup merge of #69967 - mark-i-m:rinfctx, r=matthewjasper
Dylan DPC [Sun, 15 Mar 2020 01:44:18 +0000 (02:44 +0100)]
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

4 years agoRollup merge of #69498 - mark-i-m:describe-it-2, r=matthewjasper
Dylan DPC [Sun, 15 Mar 2020 01:44:17 +0000 (02:44 +0100)]
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)

4 years agoRollup merge of #69471 - nnethercote:rm-sip-Hasher-short_write, r=dtolnay
Dylan DPC [Sun, 15 Mar 2020 01:44:15 +0000 (02:44 +0100)]
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

4 years agoRollup merge of #69357 - tmiasko:debuginfo-column, r=michaelwoerister
Dylan DPC [Sun, 15 Mar 2020 01:44:13 +0000 (02:44 +0100)]
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`).

4 years agoUpdate src/librustc_error_codes/error_codes/E0634.md
Ayush Mishra [Sun, 15 Mar 2020 01:19:54 +0000 (06:49 +0530)]
Update src/librustc_error_codes/error_codes/E0634.md

Co-Authored-By: Dylan DPC <dylan.dpc@gmail.com>
4 years agoUpdate src/librustc_error_codes/error_codes/E0634.md
Ayush Mishra [Sun, 15 Mar 2020 01:19:45 +0000 (06:49 +0530)]
Update src/librustc_error_codes/error_codes/E0634.md

Co-Authored-By: Dylan DPC <dylan.dpc@gmail.com>
4 years agodef_collector: Fully visit async functions
Vadim Petrochenkov [Sat, 14 Mar 2020 19:22:29 +0000 (22:22 +0300)]
def_collector: Fully visit async functions

4 years agoReturn feature gate as a `Symbol`
Dylan MacKenzie [Sat, 14 Mar 2020 22:59:10 +0000 (15:59 -0700)]
Return feature gate as a `Symbol`

4 years agoUpdate ui tests
Guillaume Gomez [Sat, 14 Mar 2020 22:51:45 +0000 (23:51 +0100)]
Update ui tests

4 years agoFix punctuation in rustdoc book
Timothée Gerber [Sat, 14 Mar 2020 22:40:29 +0000 (23:40 +0100)]
Fix punctuation in rustdoc book

4 years agoChange fenced code block type in rustdoc book
Timothée Gerber [Sat, 14 Mar 2020 22:31:34 +0000 (23:31 +0100)]
Change fenced code block type in rustdoc book

4 years agoClean up E0412 and E0422 explanations
Guillaume Gomez [Wed, 11 Mar 2020 12:06:54 +0000 (13:06 +0100)]
Clean up E0412 and E0422 explanations

4 years agoClean up path separator in rustdoc book
Timothée Gerber [Sat, 14 Mar 2020 22:04:33 +0000 (23:04 +0100)]
Clean up path separator in rustdoc book

4 years agoAdd some comments to the new queries
John Kåre Alsaker [Wed, 11 Mar 2020 14:20:24 +0000 (15:20 +0100)]
Add some comments to the new queries

4 years agoAdd test for #69596
John Kåre Alsaker [Tue, 10 Mar 2020 07:26:13 +0000 (08:26 +0100)]
Add test for #69596

4 years agoDon't try to print missing HIR ids
John Kåre Alsaker [Thu, 20 Feb 2020 18:24:44 +0000 (19:24 +0100)]
Don't try to print missing HIR ids

4 years agoUpdate tests
John Kåre Alsaker [Thu, 13 Feb 2020 10:17:49 +0000 (11:17 +0100)]
Update tests

4 years agoUpdate ich_nested_items.rs
John Kåre Alsaker [Wed, 12 Feb 2020 17:50:30 +0000 (18:50 +0100)]
Update ich_nested_items.rs

4 years agoReintroduce workaround for #62649
John Kåre Alsaker [Wed, 12 Feb 2020 17:11:32 +0000 (18:11 +0100)]
Reintroduce workaround for #62649

4 years agoFormat function_interfaces.rs
John Kåre Alsaker [Wed, 12 Feb 2020 15:01:24 +0000 (16:01 +0100)]
Format function_interfaces.rs

4 years agoReplace `Hir` with `hir_owner` in tests
John Kåre Alsaker [Wed, 12 Feb 2020 15:00:15 +0000 (16:00 +0100)]
Replace `Hir` with `hir_owner` in tests

4 years agoReplace `HirBody` with `hir_owner_items` in tests
John Kåre Alsaker [Wed, 12 Feb 2020 14:34:10 +0000 (15:34 +0100)]
Replace `HirBody` with `hir_owner_items` in tests

4 years agoCreate the `hir_to_node_id` map before `TyCtxt`
John Kåre Alsaker [Wed, 12 Feb 2020 14:11:33 +0000 (15:11 +0100)]
Create the `hir_to_node_id` map before `TyCtxt`

4 years agoOptimize the HIR map
John Kåre Alsaker [Mon, 10 Feb 2020 16:00:49 +0000 (17:00 +0100)]
Optimize the HIR map

4 years agoDon't hash HIR with bodies thrice
John Kåre Alsaker [Mon, 10 Feb 2020 13:29:21 +0000 (14:29 +0100)]
Don't hash HIR with bodies thrice

4 years agoFix HIR map validation
John Kåre Alsaker [Sun, 9 Feb 2020 16:11:02 +0000 (17:11 +0100)]
Fix HIR map validation

4 years agoIndex HIR after creating TyCtxt
John Kåre Alsaker [Sun, 9 Feb 2020 14:32:00 +0000 (15:32 +0100)]
Index HIR after creating TyCtxt

4 years agoOnly hash the Hir owner (including its bodies)
John Kåre Alsaker [Sun, 9 Feb 2020 11:13:08 +0000 (12:13 +0100)]
Only hash the Hir owner (including its bodies)

4 years agoRemove `input_task`
John Kåre Alsaker [Sun, 9 Feb 2020 09:31:13 +0000 (10:31 +0100)]
Remove `input_task`

4 years agoRemove `Hir` and `HirBody` dep nodes
John Kåre Alsaker [Sat, 8 Feb 2020 04:30:45 +0000 (05:30 +0100)]
Remove `Hir` and `HirBody` dep nodes

4 years agoClean up the collector
John Kåre Alsaker [Sat, 8 Feb 2020 04:18:34 +0000 (05:18 +0100)]
Clean up the collector

4 years agoRemove `AllLocalTraitImpls`
John Kåre Alsaker [Sat, 8 Feb 2020 03:26:12 +0000 (04:26 +0100)]
Remove `AllLocalTraitImpls`

4 years agoRemove the `map` field from `Map`
John Kåre Alsaker [Sat, 8 Feb 2020 03:24:42 +0000 (04:24 +0100)]
Remove the `map` field from `Map`

4 years agoUpdate `trait_impls`
John Kåre Alsaker [Sat, 8 Feb 2020 03:14:29 +0000 (04:14 +0100)]
Update `trait_impls`

4 years agoRemove comments
John Kåre Alsaker [Sat, 8 Feb 2020 02:30:57 +0000 (03:30 +0100)]
Remove comments

4 years agoUpdate `find_entry`
John Kåre Alsaker [Fri, 7 Feb 2020 18:17:48 +0000 (19:17 +0100)]
Update `find_entry`

4 years agoUpdate `is_hir_id_module`
John Kåre Alsaker [Fri, 7 Feb 2020 18:09:19 +0000 (19:09 +0100)]
Update `is_hir_id_module`

4 years agoUpdate `find`
John Kåre Alsaker [Fri, 7 Feb 2020 18:01:27 +0000 (19:01 +0100)]
Update `find`

4 years agoUpdate `get_parent_node`
John Kåre Alsaker [Fri, 7 Feb 2020 17:46:21 +0000 (18:46 +0100)]
Update `get_parent_node`

4 years agoUpdate `visit_item_likes_in_module`
John Kåre Alsaker [Fri, 7 Feb 2020 17:25:36 +0000 (18:25 +0100)]
Update `visit_item_likes_in_module`

4 years agoUpdate `krate_attrs` and `get_module`
John Kåre Alsaker [Fri, 7 Feb 2020 15:43:36 +0000 (16:43 +0100)]
Update `krate_attrs` and `get_module`

4 years agoUpdate `body_owner` and `maybe_body_owned_by`
John Kåre Alsaker [Fri, 7 Feb 2020 15:10:50 +0000 (16:10 +0100)]
Update `body_owner` and `maybe_body_owned_by`

4 years agoUpdate `fn_decl_by_hir_id` and `fn_sig_by_hir_id`
John Kåre Alsaker [Fri, 7 Feb 2020 14:34:39 +0000 (15:34 +0100)]
Update `fn_decl_by_hir_id` and `fn_sig_by_hir_id`

4 years agoUpdate item functions
John Kåre Alsaker [Fri, 7 Feb 2020 14:17:05 +0000 (15:17 +0100)]
Update item functions

4 years agoCreate Map after TyCtxt
John Kåre Alsaker [Fri, 7 Feb 2020 12:13:35 +0000 (13:13 +0100)]
Create Map after TyCtxt

4 years agoCollect the new maps
John Kåre Alsaker [Fri, 7 Feb 2020 10:45:04 +0000 (11:45 +0100)]
Collect the new maps

4 years agoAdd HIR queries
John Kåre Alsaker [Fri, 7 Feb 2020 10:14:47 +0000 (11:14 +0100)]
Add HIR queries

4 years agoAuto merge of #69999 - RalfJung:miri-unwind, r=oli-obk
bors [Sat, 14 Mar 2020 19:54:23 +0000 (19:54 +0000)]
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

4 years agoAuto merge of #69076 - cjgillot:split_trait, r=matthewjasper
bors [Sat, 14 Mar 2020 16:43:20 +0000 (16:43 +0000)]
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

4 years agoAuto merge of #69923 - matthiaskrgr:submodule_upd, r=Dylan-DPC
bors [Sat, 14 Mar 2020 13:28:50 +0000 (13:28 +0000)]
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

4 years agoTrim dependencies and features.
Camille GILLOT [Tue, 11 Feb 2020 21:39:02 +0000 (22:39 +0100)]
Trim dependencies and features.

4 years agoMake downstream crates compile.
Camille GILLOT [Tue, 11 Feb 2020 20:19:40 +0000 (21:19 +0100)]
Make downstream crates compile.

4 years agoSplit librustc_infer.
Camille GILLOT [Sat, 22 Feb 2020 10:44:18 +0000 (11:44 +0100)]
Split librustc_infer.

4 years agoMove rustc_infer::traits to new crate rustc_trait_selection.
Camille GILLOT [Tue, 11 Feb 2020 18:53:40 +0000 (19:53 +0100)]
Move rustc_infer::traits to new crate rustc_trait_selection.

4 years agoMode ProjectionCache to its own module.
Camille GILLOT [Tue, 11 Feb 2020 18:46:31 +0000 (19:46 +0100)]
Mode ProjectionCache to its own module.

4 years agoMove traits::query::outlives_bounds::explicit_outlives_bounds to infer::outlives.
Camille GILLOT [Mon, 10 Feb 2020 19:39:11 +0000 (20:39 +0100)]
Move traits::query::outlives_bounds::explicit_outlives_bounds to infer::outlives.