about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-08-07Auto merge of #70052 - Amanieu:hashbrown7, r=Mark-Simulacrumbors-50/+37
Update hashbrown to 0.8.1 This update includes: - https://github.com/rust-lang/hashbrown/pull/146, which improves the performance of `Clone` and implements `clone_from`. - https://github.com/rust-lang/hashbrown/pull/159, which reduces the size of `HashMap` by 8 bytes. - https://github.com/rust-lang/hashbrown/pull/162, which avoids creating small 1-element tables. Fixes #28481
2020-08-07Fix natvis testsAmanieu d'Antras-15/+15
2020-08-06Rollup merge of #75227 - Amanieu:fix_asm_arch, r=Mark-SimulacrumManish Goregaokar-3/+29
Fix ICE when using asm! on an unsupported architecture Fixes #75220
2020-08-06Rollup merge of #75203 - canova:btreemap-into-iter, r=dtolnayManish Goregaokar-0/+23
Make `IntoIterator` lifetime bounds of `&BTreeMap` match with `&HashMap` This is a pretty small change on the lifetime bounds of `IntoIterator` implementations of both `&BTreeMap` and `&mut BTreeMap`. This is loosening the lifetime bounds, so more code should be accepted with this PR. This is lifetime bounds will still be implicit since we have `type Item = (&'a K, &'a V);` in the implementation. This change will make the HashMap and BTreeMap share the same signature, so we can share the same function/trait with both HashMap and BTreeMap in the code. Fixes #74034. r? @dtolnay hey, I was touching this file on my previous PR and wanted to fix this on the way. Would you mind taking a look at this, or redirecting it if you are busy?
2020-08-06Rollup merge of #75079 - jyn514:disambiguator, r=ManishearthManish Goregaokar-49/+329
Disallow linking to items with a mismatched disambiguator Closes https://github.com/rust-lang/rust/issues/74851 r? @Manishearth
2020-08-07Handle new HashMap layout in CDB, MSVC, WinDbg, etc.MaulingMonkey-31/+4
2020-08-07Handle new HashMap layout in GDB and LLDBAmanieu d'Antras-4/+18
2020-08-06Add doc-comment for `kind_side_channel`Joshua Nelson-0/+3
2020-08-07Auto merge of #75233 - RalfJung:miri, r=RalfJungbors-10/+8
update Miri Fixes https://github.com/rust-lang/rust/issues/74999 Cc @rust-lang/miri r? @ghost
2020-08-07Rollup merge of #75236 - syntacticsugarglider:patch-1, r=jonas-schievinkYuki Okushi-1/+1
Fix typo "biset" -> "bitset"
2020-08-07Rollup merge of #75232 - leijurv:patch-1, r=jonas-schievinkYuki Okushi-1/+1
Fix typo "TraitObligatiom" -> "TraitObligation"
2020-08-07Rollup merge of #75217 - GuillaumeGomez:cleanup-e0747, r=Dylan-DPCYuki Okushi-2/+2
Clean up E0747 explanation r? @Dylan-DPC
2020-08-07Rollup merge of #75210 - nnethercote:change-type-of-available_cgus, ↵Yuki Okushi-6/+5
r=ecstatic-morse Change the type of `AssertModuleSource::available_cgus`. It's currently a `BTreeSet<Symbol>`, which is a strange type. The `BTreeSet` suggests that element order is important, but `Symbol` is a type whose ordering isn't useful to humans. The ordering of the collection only manifests in an obscure error message ("no module named `...`") that doesn't appear in any tests. This commit changes the `Symbol` to a `String`, which is more typical.
2020-08-07Rollup merge of #75190 - GuillaumeGomez:cleanup-e0746, r=Dylan-DPCYuki Okushi-4/+6
Clean up E0746 explanation r? @Dylan-DPC
2020-08-07Rollup merge of #75188 - Aaron1011:fix/fieldless-tuple-error, r=varkorYuki Okushi-4/+28
Handle fieldless tuple structs in diagnostic code Fixes #75062
2020-08-07Rollup merge of #75183 - Aaron1011:toolstate/a-rustfmt, r=nikomatsakisYuki Okushi-1/+1
Label rustfmt toolstate issues with A-rustfmt This makes it easier to filter toolstate issues by the tool involved.
2020-08-07Rollup merge of #75181 - WaffleLapkin:patch-2, r=ecstaticmorseYuki Okushi-1/+1
Fix typo in `librustc_feature/active.rs`
2020-08-07Rollup merge of #74888 - infinity0:ignore-endian-big, r=nikomatsakisYuki Okushi-9/+28
compiletest: ignore-endian-big, fixes #74829, fixes #74885 See discussion on #74829 I tested it on a Debian s390x machine, works well.
2020-08-06Fix typo "biset" -> "bitset"Izzy Swart-1/+1
2020-08-06Remove dead codeJoshua Nelson-17/+1
2020-08-06Fix outdated codeJoshua Nelson-6/+4
2020-08-06Improve testsJoshua Nelson-19/+22
2020-08-06Use the proper kind for associated itemsJoshua Nelson-13/+25
See comments in the diff; this is such a hack. The reason this can't be done properly in `register_res` is because there's no way to get back the parent type: calling `tcx.parent(assoc_item)` gets you the _impl_, not the type. You can call `tcx.impl_trait_ref(impl_).self_ty()`, but there's no way to go from that to a DefId without unwrapping.
2020-08-06update MiriRalf Jung-10/+8
2020-08-06Fix typo "TraitObligatiom" -> "TraitObligation"Leijurv-1/+1
2020-08-06Still print help even if there's no spanJoshua Nelson-0/+2
2020-08-07Change the type of `AssertModuleSource::available_cgus`.Nicholas Nethercote-6/+5
It's currently a `BTreeSet<Symbol>`, which is a strange type. The `BTreeSet` suggests that element order is important, but `Symbol` is a type whose ordering isn't useful to humans. The ordering of the collection only manifests in an obscure error message ("no module named `...`") that doesn't appear in any tests. This commit changes the `Symbol` to a `String`, which is more typical.
2020-08-06Fix ICE when using asm! on an unsupported architectureAmanieu d'Antras-3/+29
Fixes #75220
2020-08-06Auto merge of #75218 - Aaron1011:feature/prof-metadata-query, r=Mark-Simulacrumbors-1/+1
Record query name when profiling "metadata_decode_entry"
2020-08-06Record query name when profiling "metadata_decode_entry"Aaron Hill-1/+1
2020-08-06Auto merge of #74889 - JohnTitor:hrtb-tests, r=nikomatsakisbors-0/+28
Add HRTB-related regression test Closes #59311 and cc #71546 This closes the former but the test is taken from https://github.com/rust-lang/rust/issues/71546#issuecomment-620638437 since it seems they have the same cause and it's simplified.
2020-08-06Clean up E0747 explanationGuillaume Gomez-2/+2
2020-08-06Auto merge of #75008 - eddyb:rmeta-indexed-trait-impls, r=nikomatsakisbors-37/+54
rustc_metadata: track the simplified Self type for every trait impl. For the `traits_impls_of` query, we index the impls by `fast_reject::SimplifiedType` (a "shallow type"), which allows some simple cases like `impl Trait<..> for Foo<..>` to be efficiently iterated over, by e.g. `for_each_relevant_impl`. This PR encodes the `fast_reject::SimplifiedType` cross-crate to avoid needing to deserialize the `Self` type of every `impl` in order to simplify it - the simplification itself should be cheap, but the deserialization is less so. We could go further from here and make loading the list of impls lazy, for a given simplified `Self` type, but that would have more complicated implications for performance, and this PR doesn't do anything in that regard. r? @nikomatsakis cc @Mark-Simulacrum
2020-08-05Suggest f() for functions and add a test caseJoshua Nelson-2/+16
2020-08-05Add a test for BTreeMap lifetime bound to see if it compilesNazım Can Altınova-0/+23
2020-08-06Add a FIXME commentYuki Okushi-1/+5
2020-08-05Auto merge of #75166 - JulianKnodt:i64494, r=lcnrbors-0/+37
Add regression test for #64494 Add regression test to indicate if this compilation ever succeeds. Fixes #64494 r? @lcnr
2020-08-05Auto merge of #75194 - Aaron1011:feature/macro-backtrace-numbers, r=eddybbors-6/+6
Show backtrace numbers in backtrace whenever more than one is involved Previously, we only displayed 'frame' numbers in a macro backtrace when more than two frames were involved. This commit should help make backtrace more readable, since these kinds of messages can quickly get confusing.
2020-08-05Show backtrace numbers in backtrace whenever more than one is involvedAaron Hill-6/+6
Previously, we only displayed 'frame' numbers in a macro backtrace when more than two frames were involved. This commit should help make backtrace more readable, since these kinds of messages can quickly get confusing.
2020-08-05Auto merge of #75165 - JulianKnodt:i72787, r=lcnrbors-0/+74
Add regression test for #72787 Add regression test for Issue #72787 Fixes #72787 ~~Still waiting on running tests locally to bless the error output~~ r? @lcnr
2020-08-05Clean up E0746 explanationGuillaume Gomez-4/+6
2020-08-05Handle fieldless tuple structs in diagnostic codeAaron Hill-4/+28
Fixes #75062
2020-08-05Auto merge of #75169 - ehuss:update-cargo, r=ehussbors-0/+0
Update cargo 8 commits in 2d5c2381e4e50484bf281fc1bfe19743aa9eb37a..1653f354644834073d6d2541e27fae94588e685e 2020-07-31 21:56:08 +0000 to 2020-08-04 23:14:37 +0000 - Fix close_output test. (rust-lang/cargo#8587) - clippy fixes, use matches! macro in more places (rust-lang/cargo#8575) - Display embedded man pages for built-in commands. (rust-lang/cargo#8456) - Add mdman for generating man pages. (rust-lang/cargo#8577) - Fix typo 'more then' -&gt; 'more than' in error and comments (rust-lang/cargo#8581) - cargo login: make login message less ambiguous (rust-lang/cargo#8579) - Fix broken link in Build Cache chapter. (rust-lang/cargo#8578) - Fix intra-doc tests for renamed lint. (rust-lang/cargo#8576)
2020-08-05Auto merge of #75124 - nnethercote:clean-up-rustdoc-main, r=oli-obkbors-73/+53
Clean up rustdoc's `main()` It can be simplified and made more similar to rustc's `main()`. r? @oli-obk
2020-08-05Label rustfmt toolstate issues with A-rustfmtAaron Hill-1/+1
This makes it easier to filter toolstate issues by the tool involved.
2020-08-05Fix typo in `librustc_feature/active.rs`Waffle Lapkin-1/+1
2020-08-05Auto merge of #75155 - davidtwco:polymorphization-incr-comp-optimisations, ↵bors-15/+61
r=lcnr polymorphization: various improvements This PR includes a handful of polymorphisation-related changes: - @Mark-Simulacrum's suggestions [from this comment](https://github.com/rust-lang/rust/pull/74633#issuecomment-668684433): - Use a `FiniteBitSet<u32>` over a `FiniteBitSet<u64>` as most functions won't have 64 generic parameters. - Don't encode polymorphisation results in metadata when every parameter is used (in this case, just invoking polymorphisation will probably be quicker). - @lcnr's suggestion [from this comment](https://github.com/rust-lang/rust/pull/74717#discussion_r463690015). - Add an debug assertion in `ensure_monomorphic_enough` to make sure that polymorphisation did what we expect. r? @lcnr
2020-08-05Auto merge of #75037 - richkadel:llvm-coverage-map-gen-5.2, r=wesleywiserbors-359/+384
Completes support for coverage in external crates Follow-up to #74959 : The prior PR corrected for errors encountered when trying to generate the coverage map on source code inlined from external crates (including macros and generics) by avoiding adding external DefIds to the coverage map. This made it possible to generate a coverage report including external crates, but the external crate coverage was incomplete (did not include coverage for the DefIds that were eliminated. The root issue was that the coverage map was converting Span locations to source file and locations, using the SourceMap for the current crate, and this would not work for spans from external crates (compliled with a different SourceMap). The solution was to convert the Spans to filename and location during MIR generation instead, so precompiled external crates would already have the correct source code locations embedded in their MIR, when imported into another crate. @wesleywiser FYI r? @tmandry
2020-08-05Unresolved link -> incompatible link kindJoshua Nelson-22/+21
Clearly it has been resolved, because we say on the next line what it resolved to.
2020-08-05Give a much better error message if the struct failed to resolveJoshua Nelson-145/+182