about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2022-11-29Rollup merge of #104523 - flba-eb:fix_nto_target_name, r=wesleywiserMatthias Krüger-12/+30
Don't use periods in target names Using a period in the target name can cause issues in e.g. cargo, see also https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Running.20tests.20on.20remote.20target
2022-11-29Rollup merge of #103876 - oli-obk:tait_implications, r=lcnrMatthias Krüger-0/+117
type alias impl trait: add tests showing that hidden type only outlives lifetimes that occur in bounds fixes #103642 https://github.com/rust-lang/rust/pull/102417 only made sure that hidden types cannot outlive lifetimes other than the ones mentioned on bounds, but didn't allow us to actually infer anything from that. cc `@aliemjay`
2022-11-29Auto merge of #105012 - WaffleLapkin:into, r=oli-obkbors-0/+2
Make `tcx.mk_const` more permissive wrt `kind` argument (`impl Into`) r? `@oli-obk` you've asked for this >:)
2022-11-29Auto merge of #105041 - matthiaskrgr:rollup-7ffry90, r=matthiaskrgrbors-145/+134
Rollup of 10 pull requests Successful merges: - #104465 (Document more settings for building rustc for Fuchsia) - #104951 (Simplify checking for `GeneratorKind::Async`) - #104959 (Revert #104269 (to avoid spurious hang/test failure in CI)) - #104978 (notify the rust-analyzer team on changes to the rust-analyzer subtree) - #105010 (Fix documentation of asymptotic complexity for rustc_data_structures::SortedMap) - #105016 (Add sentence when rustdoc search is running) - #105020 (rustdoc: merge background-image rules in rustdoc-toggle CSS) - #105024 (rustdoc: remove `fnname` CSS class that's styled exactly like `fn`) - #105027 (Rustdoc-Json: Add tests for linking to foreign variants.) - #105038 (Clean up pr 104954) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-11-29Rollup merge of #105038 - Rageking8:clean-up-pr-104954, r=compiler-errorsMatthias Krüger-3/+2
Clean up pr 104954 UI test filename typo fix and a simple comment rewording. Thanks. CC `@vincenzopalazzo` (you spelled your name wrongly in the FIXME) r? `@estebank`
2022-11-29Rollup merge of #105027 - aDotInTheVoid:rdj-foreign-variant-test, ↵Matthias Krüger-0/+25
r=GuillaumeGomez Rustdoc-Json: Add tests for linking to foreign variants. I initially taught these would be bugs, but it turn out they work perfectly, and the variant is added to paths. Most of the work is done by jsondoclint checking all the ID's resolve (although this wont happen for links until #105015, which in turn is blocked on removing foreign traits), but we do check that neither the enum nor the variant is inlined, so it must be resolved correctly through paths. r? ``@GuillaumeGomez``
2022-11-29Rollup merge of #105024 - notriddle:notriddle/fnname, r=jyn514Matthias Krüger-35/+34
rustdoc: remove `fnname` CSS class that's styled exactly like `fn` It's not obvious why this was ever a separate class name, since even in c4219a478354b464079b1b7ab081e071e8e39765 when it was first added, it was styled identically to regular `fn` links.
2022-11-29Rollup merge of #105020 - notriddle:notriddle/rustdoc-toggle, r=GuillaumeGomezMatthias Krüger-8/+1
rustdoc: merge background-image rules in rustdoc-toggle CSS
2022-11-29Rollup merge of #105016 - GuillaumeGomez:load-sentence-rustdoc, r=notriddleMatthias Krüger-8/+12
Add sentence when rustdoc search is running This is a small improvement, mostly relevant on big search indexes. As soon as the search starts, it'll display: ![image](https://user-images.githubusercontent.com/3050060/204336014-4660634a-09a0-4d5e-a772-d7e1e810dddf.png) cc ``@jsha`` r? ``@notriddle``
2022-11-29Rollup merge of #104959 - compiler-errors:revert-104269, r=lcnrMatthias Krüger-68/+0
Revert #104269 (to avoid spurious hang/test failure in CI) Causes hangs/memory overflows in the test suite apparently :cry: Reopens #104225 Fixes #104957 r? ``@lcnr``
2022-11-29Rollup merge of #104465 - djkoloski:improve_fuchsia_testing_docs, r=tmandryMatthias Krüger-23/+60
Document more settings for building rustc for Fuchsia This documents that you need to link for Fuchsia with `lld` and provides configuration settings for both `clang` and `lld`. It also adjusts the documentation for running the test suite to recommend installing to a prefix. r? ``@tmandry``
2022-11-29Auto merge of #105001 - nicholasbishop:bishop-more-uefi-test, r=jyn514bors-17/+74
test-various: Add tests for {i686,aarch64}-unknown-uefi This extends the existing test for x86_64-unknown-uefi to test the other two UEFI targets as well.
2022-11-29clean up pr 104954Rageking8-3/+2
2022-11-28Rustdoc-Json: Add tests for linking to foreign variants.Nixon Enraght-Moony-0/+25
2022-11-28rustdoc: remove `fnname` CSS class that's styled exactly like `fn`Michael Howell-35/+34
It's not obvious why this was ever a separate class name, since even in c4219a478354b464079b1b7ab081e071e8e39765 when it was first added, it was styled identically to regular `fn` links.
2022-11-28Permit deps (scarry)Maybe Waffle-0/+2
2022-11-28rustdoc: merge background-image rules in rustdoc-toggle CSSMichael Howell-8/+1
2022-11-28Add sentence when rustdoc search is runningGuillaume Gomez-8/+12
2022-11-28Rollup merge of #104956 - mucinoab:issue-104870, r=compiler-errorsMatthias Krüger-0/+41
Avoid ICE if the Clone trait is not found while building error suggestions Fixes #104870 r? `@compiler-errors`
2022-11-28Rollup merge of #104954 - vincenzopalazzo:macros/prinf, r=estebankMatthias Krüger-0/+23
make simple check of prinf function Fixes https://github.com/rust-lang/rust/issues/92898 With this commit we start to make some simple check when the name resolution fails, and we generate some helper messages in case the name is a C name like in the case of the `printf` and suggest the correct rust method. `@rustbot` r? `@pnkfelix` Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2022-11-28Rollup merge of #104936 - cjgillot:self-rpit-orig-too, r=oli-obkMatthias Krüger-0/+66
Ignore bivariant parameters in test_type_match. https://github.com/rust-lang/rust/pull/103491 made opaque types bivariant with respect of some of their lifetime parameters. Because of this bivariance, some lifetime variables were not unified to anything during borrowck, and were considered as unequal by borrowck type test. This PR makes type test ignore the bivariant parameters in test_type_match. Fixes https://github.com/rust-lang/rust/issues/104815 r? `@oli-obk`
2022-11-28Rollup merge of #104933 - RalfJung:interpret-partial-ord, r=oli-obkMatthias Krüger-1/+1
interpret: remove PartialOrd from a bunch of types that do not have or need a sensible order r? `@oli-obk`
2022-11-28Rollup merge of #104804 - nnethercote:MetaItemLit, r=petrochenkovMatthias Krüger-18/+25
Rename `ast::Lit` as `ast::MetaItemLit`. And some other literal cleanups. r? `@petrochenkov`
2022-11-28Auto merge of #105008 - Dylan-DPC:rollup-wcd19yu, r=Dylan-DPCbors-119/+103
Rollup of 6 pull requests Successful merges: - #104360 (Stabilize native library modifier `verbatim`) - #104732 (Refactor `ty::ClosureKind` related stuff) - #104795 (Change multiline span ASCII art visual order) - #104890 (small method code cleanup) - #104907 (Remove `SelectionContext::infcx()` in favor of field access) - #104927 (Simplify some binder shifting logic) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-11-28Auto merge of #102991 - Sp00ph:master, r=scottmcmbors-25/+16
Update VecDeque implementation to use head+len instead of head+tail (See #99805) This changes `alloc::collections::VecDeque`'s internal representation from using head and tail indices to using a head index and a length field. It has a few advantages over the current design: * It allows the buffer to be of length 0, which means the `VecDeque::new` new longer has to allocate and could be changed to a `const fn` * It allows the `VecDeque` to fill the buffer completely, unlike the old implementation, which always had to leave a free space * It removes the restriction for the size to be a power of two, allowing it to properly `shrink_to_fit`, unlike the old `VecDeque` * The above points also combine to allow the `Vec<T> -> VecDeque<T>` conversion to be very cheap and guaranteed O(1). I mention this in the `From<Vec<T>>` impl, but it's not a strong guarantee just yet, as that would likely need some form of API change proposal. All the tests seem to pass for the new `VecDeque`, with some slight adjustments. r? `@scottmcm`
2022-11-28Rollup merge of #104795 - estebank:multiline-spans, r=TaKO8KiDylan DPC-50/+46
Change multiline span ASCII art visual order Tweak the ASCII art for nested multiline spans so that we minimize line overlaps. Partially addresses https://github.com/rust-lang/rust/issues/61017.
2022-11-28Rollup merge of #104732 - WaffleLapkin:from_def_idn't, r=compiler-errorsDylan DPC-1/+1
Refactor `ty::ClosureKind` related stuff I've tried to fix all duplication and weirdness, but if I missed something do tell :p r? `@compiler-errors`
2022-11-28Rollup merge of #104360 - petrochenkov:stabverb, r=TaKO8KiDylan DPC-68/+56
Stabilize native library modifier `verbatim` Stabilization report - https://github.com/rust-lang/rust/pull/104360#issuecomment-1312724787. cc https://github.com/rust-lang/rust/issues/81490 Closes https://github.com/rust-lang/rust/issues/99425
2022-11-28fix clippy testsEsteban Küber-13/+13
2022-11-28Tweak outputEsteban Küber-23/+19
2022-11-28Change multiline span ASCII art visual orderEsteban Küber-50/+50
2022-11-28Rename `NestedMetaItem::[Ll]iteral` as `NestedMetaItem::[Ll]it`.Nicholas Nethercote-10/+8
We already use a mix of `Literal` and `Lit`. The latter is better because it is shorter without causing any ambiguity.
2022-11-28Rename `ast::Lit` as `ast::MetaItemLit`.Nicholas Nethercote-9/+18
2022-11-28test-various: Add tests for {i686,aarch64}-unknown-uefiNicholas Bishop-17/+74
This extends the existing test for x86_64-unknown-uefi to test the other two UEFI targets as well.
2022-11-28Auto merge of #104915 - weihanglo:update-cargo, r=ehussbors-0/+2
Update cargo 5 commits in ba607b23db8398723d659249d9abf5536bc322e5..e027c4b5d25af2119b1956fac42863b9b3242744 2022-11-22 20:52:39 +0000 to 2022-11-25 19:44:46 +0000 - fix: Move off atty to resolve soundness issue (rust-lang/cargo#11420) - add newline char to `cargo install .` error message for easier reading. (rust-lang/cargo#11401) - chore: Upgrade to env_logger (rust-lang/cargo#11417) - Change rustdoc-scrape-examples to be a target-level configuration (rust-lang/cargo#10343) - temporarily disable test `lto::test_profile` (rust-lang/cargo#11419) r+ `@ghost`
2022-11-27Avoid ICE if the Clone trait is not found while building error suggestionsBruno A. Muciño-0/+41
2022-11-28Auto merge of #104990 - matthiaskrgr:rollup-oskk8v3, r=matthiaskrgrbors-522/+943
Rollup of 4 pull requests Successful merges: - #104955 (Switch rustdoc-gui test to function call) - #104976 (Prefer doc comments over `//`-comments in compiler) - #104984 (Remove Crate::primitives field) - #104989 (update Miri) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-11-27Fix `pretty-std` testMarkus Everling-2/+2
2022-11-27Rollup merge of #104989 - RalfJung:miri, r=RalfJungMatthias Krüger-500/+893
update Miri r? `@ghost`
2022-11-27Rollup merge of #104984 - GuillaumeGomez:remote-crate-primitives, r=notriddleMatthias Krüger-5/+21
Remove Crate::primitives field It is a new approach to #90447. Instead of removing primitives from everywhere (ie from `BadImplStripper`), I just removed them from the `Crate` type, allowing to reduce its size. cc `@camelid` r? `@notriddle`
2022-11-27Rollup merge of #104955 - GuillaumeGomez:migrate-to-func, r=notriddleMatthias Krüger-17/+29
Switch rustdoc-gui test to function call r? `@notriddle`
2022-11-27Auto merge of #104506 - ↵bors-1/+3
joshtriplett:style-principles-readability-in-plain-text, r=compiler-errors Expand a style-guide principle: readability in plain text
2022-11-27clippyRalf Jung-19/+15
2022-11-27advice on josh pushingRalf Jung-0/+7
2022-11-27Merge from rustcRalf Jung-21338/+15795
2022-11-27Preparing for merge from rustcRalf Jung-1/+1
2022-11-27Stabilize native library modifier `verbatim`Vadim Petrochenkov-68/+56
2022-11-27Auto merge of #2694 - RalfJung:retag-deref-check, r=saethlinbors-157/+339
fix handling of spurious accesses during retag The `dereferenceable` attribute we emit for LLVM is checked during retag in Stacked Borrows. However, we currently don't properly do that for retagging of `&mut !Unpin`, which this PR fixes. Also this adjusts retagging to inform the data race model of the accesses as well. Fixes https://github.com/rust-lang/miri/issues/2648. Also fixes https://github.com/rust-lang/miri/issues/2693 since the same issue arose for retagging as well. r? `@saethlin`
2022-11-27Auto merge of #104983 - matthiaskrgr:rollup-018sk73, r=matthiaskrgrbors-80/+222
Rollup of 8 pull requests Successful merges: - #95836 (Use `rust_out{exe_suffix}` for doctests) - #104882 (notify lcnr on changes to `ObligationCtxt`) - #104892 (Explain how to get the discriminant out of a `#[repr(T)] enum` with payload) - #104917 (Allow non-org members to label `requires-debug-assertions`) - #104931 (Pretty-print generators with their `generator_kind`) - #104934 (Remove redundant `all` in cfg) - #104944 (Support unit tests for jsondoclint) - #104946 (rustdoc: improve popover focus handling JS) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-11-27Fix natvis `VecDeque` formatterMarkus Everling-8/+7