summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2021-03-23removed tests introduced or changed by PR #77885, which is reverted here.Felix S. Klock II-44/+0
2021-03-22Set release channel to stableMark Rousskov-1/+1
2021-03-18Auto merge of #83171 - pnkfelix:revert-81473-warn-write-only-fields, ↵bors-47/+0
r=Mark-Simulacrum Revert PR 81473 to resolve (on beta) issues 81626 and 81658. Revert PR #81473 to resolve (on beta) issues #81626 and #81658. Revert "Add missing brace" This reverts commit 85ad773049536d7fed9a94ae0ac74f97135c8655. Revert "Simplify base_expr" This reverts commit 899aae465eb4ef295dc1eeb2603f744568e0768c. Revert "Warn write-only fields" This reverts commit d3c69a4c0dd98af2611b7553d1a65afef6a6ccb0.
2021-03-16[beta] Update cargoEric Huss-0/+0
2021-03-15Revert PR 81473 to resolve (on beta) issues 81626 and 81658.Felix S. Klock II-47/+0
Revert "Add missing brace" This reverts commit 85ad773049536d7fed9a94ae0ac74f97135c8655. Revert "Simplify base_expr" This reverts commit 899aae465eb4ef295dc1eeb2603f744568e0768c. Revert "Warn write-only fields" This reverts commit d3c69a4c0dd98af2611b7553d1a65afef6a6ccb0.
2021-03-12[beta] Update cargoEric Huss-0/+0
2021-03-10Fix s390x stack-split argsJosh Stone-0/+0
2021-03-10Revert LLVM D81803 because it broke Windows 7Josh Stone-0/+0
This submodule update reverts <https://reviews.llvm.org/D81803>. While that change is meant to fix a real bug, [LLVM PR42623], it caused new permission errors on Windows 7 that make it unable to build any archives. This is probably the same root cause as [LLVM PR48378]. Fixes #81051. We'll file a new Rust issue to track the LLVM resolution. [LLVM PR42623]: https://bugs.llvm.org/show_bug.cgi?id=42623 [LLVM PR48378]: https://bugs.llvm.org/show_bug.cgi?id=48378 (cherry picked from commit 31814c41aa8df26450bb3aa2dac0883d95394bca)
2021-03-10Substitute erased lifetimes on bad placeholder typeEsteban Küber-2/+32
Fix #82455. (cherry picked from commit 5ad60888275852136adea38aebc7fcce69b52474)
2021-03-10Add testDániel Buga-0/+11
(cherry picked from commit d3f75ebf609eed01b39fb7528745f2fce88e33e6)
2021-03-10Remove duplicate stringDániel Buga-1/+0
(cherry picked from commit 3be69b100f6678c42eff36e18505c2ba9419647a)
2021-03-10[intra-doc links] Don't check feature gates of items re-exported across cratesJoshua Nelson-0/+11
It should be never break another crate to re-export a public item. Note that this doesn't check the feature gate at *all* for other crates: - Feature-gates aren't currently serialized, so the only way to check the gate is with ad-hoc attribute checking. - Checking the feature gate twice (once when documenting the original crate and one when documenting the current crate) seems not great. This should still catch using the feature most of the time though, since people tend to document their own crates. (cherry picked from commit fdb32e997bef725f538f66dcfd96b1c1e51d2c56)
2021-03-10Fix popping singleton paths in when generating E0433Ömer Sinan Ağacan-0/+12
Fixes #82156 (cherry picked from commit 9889e44470cbc6ae3c8e2fcfb6016ed15ed8cf51)
2021-03-10rustdoc: treat edition 2021 as unstableEric Huss-12/+2
(cherry picked from commit ee0e841a2e949cba1dcf3a2fb04e9a673681e4fd)
2021-02-22[beta] Update cargoEric Huss-0/+0
2021-02-13Do not ICE on range patterns in function argumentsLeSeulArtichaut-5/+2
2021-02-13Add regression test for #81289LeSeulArtichaut-0/+18
2021-02-13Revert "Get rid of custom pretty-printing in rustdoc"LeSeulArtichaut-1/+71
This reverts commit 31375d2074aeed0c6f173aa200f0bd3bf6d36756.
2021-02-13parser: Fix panic in 'const impl' recoveryÖmer Sinan Ağacan-0/+22
The panic happens when in recovery parsing a full `impl` (`parse_item_impl`) fails and we drop the `DiagnosticBuilder` for the recovery suggestion and return the `parse_item_impl` error. We now raise the original error "expected identifier found `impl`" when parsing the `impl` fails. Note that the regression test is slightly simplified version of the original repro in #81806, to make the error output smaller and more resilient to unrelated changes in parser error messages. Fixes #81806
2021-02-13bootstrap: fix wrong docs installation pathPietro Albini-1/+1
2021-02-13Bump stage0 to released stableMark Rousskov-2/+2
2021-02-11Ignore failures of RLS on aarch64 WindowsMark Rousskov-1/+7
2021-02-10bootstrap: Locate llvm-dwp based on llvm-config bindirDavid Tolnay-2/+5
2021-02-10remove unused backtrace refsCaleb Cartwright-1/+0
2021-02-10update RLS and rustfmtCaleb Cartwright-5/+5
2021-02-09Permit unstable features during PGO benchmarksMark Rousskov-0/+2
2021-02-09Update fulldeps testMark Rousskov-29/+18
2021-02-09prepare beta 1.51.0Pietro Albini-5/+5
2021-02-06Rollup merge of #81753 - tmiasko:inline-instruction-set, r=oli-obkMara Bos-0/+146
Never MIR inline functions with a different instruction set
2021-02-06Rollup merge of #81675 - poliorcetics:respect-shortness, r=jyn514Mara Bos-1/+34
Make rustdoc respect `--error-format short` in doctests Note that this will not work with `cargo test`, only with `rustdoc --test`, I'll have to modify `cargo` as well. Fix #81662. `@rustbot` label +T-rustdoc +A-doctests
2021-02-06Rollup merge of #80011 - Stupremee:stabilize-peekable-next-if, r=dtolnayMara Bos-1/+0
Stabilize `peekable_next_if` This PR stabilizes the `peekable_next_if` feature Resolves #72480
2021-02-05Auto merge of #81257 - ↵bors-10747/+10745
pnkfelix:issue-80949-short-term-resolution-via-revert-of-pr-78373, r=matthewjasper Revert 78373 ("dont leak return value after panic in drop") Short term resolution for issue #80949. Reopen #47949 after this lands. (We plan to fine-tune PR #78373 to not run into this problem.)
2021-02-05Rollup merge of #81781 - m-ou-se:fix-ci, r=pietroalbiniMara Bos-1/+1
Fix `install-awscli.sh` error in CI This fixes the `install-awscli.sh` error about missing `'bdist_wheel'`.
2021-02-05Rollup merge of #81763 - camelid:rustdoc-passes-desc-up, r=GuillaumeGomezMara Bos-7/+7
Cleanup rustdoc pass descriptions a bit Also changed a couple of comments from "intra-doc-links" to "intra-doc links" (my understanding is that "intra-doc links" is the standard way to refer to them).
2021-02-05Rollup merge of #81730 - RustyYato:object-safe-allocator, r=AmanieuMara Bos-0/+13
Make `Allocator` object-safe This allows rust-lang/wg-allocators#83: polymorphic allocators
2021-02-05Rollup merge of #81500 - CraftSpider:union-kind, r=jyn514Mara Bos-6/+20
Remove struct_type from union output Also bumps the format number and adds a test Rationale: It's illegal to have unions of the form `union Union(i32, f32);`, or `union Union;`. The struct_type field was recently removed from the rustdoc Union AST, at which time this field was changed to always just read "union". It makes sense to completely remove it, as it provides no information.
2021-02-05Rollup merge of #81497 - camelid:rustdoc-display_fn-remove-cell, r=jyn514Mara Bos-11/+11
rustdoc: Move `display_fn` struct inside `display_fn` This makes it clear that it's an implementation detail of `display_fn` and shouldn't be used elsewhere, and it enforces in the compiler that no one else can use it. r? ````@GuillaumeGomez````
2021-02-05Rollup merge of #81456 - Amanieu:remote-test-server, r=AmanieuMara Bos-17/+10
Make remote-test-server easier to use with new targets While testing #81455 I encountered 2 issues with `remote-test-server`: - It is built with the stage 0 toolchain, which does not support a newly added target. - It overwrites `LD_LIBRARY_PATH` instead of appending to it, which prevents the use of a custom sysroot for target libraries.
2021-02-05Rollup merge of #81318 - CraftSpider:json-trait-fix, r=jyn514Mara Bos-11/+30
rustdoc-json: Fix has_body Previously, `has_body` was always true. Now propagate the type of the method to set it correctly. Relies on #81287, that will need to be merged first.
2021-02-05Rollup merge of #81307 - estebank:invalid-byte-str-span, r=petrochenkovMara Bos-103/+142
Handle `Span`s for byte and raw strings and add more detail CC #81208.
2021-02-05Rollup merge of #80726 - lcnr:unsize-query, r=oli-obkMara Bos-0/+36
relax adt unsizing requirements Changes unsizing of structs in case the last struct field shares generic params with other adt fields which do not change. This change is currently insta stable and changes the language, so it at least requires a lang fcp. I feel like the current state is fairly unintuitive. An example for what's now allowed would be https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=6dd331d23f5c9ffc8c978175aae2e967 ```rust struct A<T, U: ?Sized>(T, B<T, U>); // previously ERR // struct A<T, U: ?Sized>(T, B<[u32; 1], U>); // ok struct B<T, U: ?Sized>(T, U); fn main() { let x = A([0; 1], B([0; 1], [0; 1])); let y: &A<[u32; 1], [u32]> = &x; assert_eq!(y.1.1.len(), 1); } ```
2021-02-05Rollup merge of #79554 - b-naber:generic-associated-types-in-trait-paths, ↵Mara Bos-37/+897
r=jackh726 Generic associated types in trait paths This is the second part of https://github.com/rust-lang/rust/pull/78978 This should fix: Fixes #67510 Fixes #68648 Fixes #68649 Fixes #68650 Fixes #68652 Fixes #74684 Fixes #76535 Fixes #79422 Fixes #80433 and implement the remaining functionality needed for https://github.com/rust-lang/rust/issues/44265 r? ``@matthewjasper``
2021-02-05Fix `install-awscli.sh` error in CI.Mara Bos-1/+1
2021-02-05Auto merge of #81688 - pnkfelix:fix-llvm-version-check-in-run-make-tests, ↵bors-22/+4
r=simulacrum Use `# min-llvm-version: 11.0` to force a minimum LLVM version Use `# min-llvm-version: 11.0` to force a minimum LLVM version, rather than ad-hoc internal solution. In particular: the specific code to define LLVM_VERSION_11_PLUS here was, for some reason, using `$(shell ...)` with bash-specific variable replacement code. On non-bash platforms like dash, that `shell` invocation would fail, and the LLVM_VERSION_11_PLUS check would always fail, the test would always be ignored, and thus be treated as a "success" (in the sense that `--bless` would never do anything). * Note in particular that GNU Make treats the SHELL variable as a very special case: it does not inherit the value of SHELL from the user's environment. Except on Windows. See more explanation in the [GNU Make docs](https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html). * The effect of this is that these tests end up using `/bin/sh` (except on Windows) for their `$(shell ...)` invocations, and thus we see differing behaviors depending on whether your `/bin/sh` links to `/bin/dash` or to `/bin/bash`. This was causing me a lot of pain.
2021-02-04Bless code coverage testWesley Wiser-104/+6
2021-02-04regression test for issue 80949.Felix S. Klock II-0/+34
2021-02-04Revert "Simplify unscheduling of drops after moves"Felix S. Klock II-18/+55
This reverts commit b766abc88f78f36193ddefb1079dbc832346b358.
2021-02-04Revert "Use `record_operands_moved` more aggresively"Felix S. Klock II-99/+187
This reverts commit 7f3e8551dde7f14641618cdb8fda2f99ff1d74b6.
2021-02-04Revert "Avoid leaking block expression values"Felix S. Klock II-10645/+10582
This reverts commit 4fef39113a514bb270f5661a82fdba17d3e41dbb.
2021-02-05Auto merge of #81756 - ehuss:update-cargo, r=ehussbors-0/+0
Update cargo 5 commits in e099df243bb2495b9b197f79c19f124032b1e778..34170fcd6e0947808a1ac63ac85ffc0da7dace2f 2021-02-01 16:24:34 +0000 to 2021-02-04 15:52:52 +0000 - Fix permission issue with `cargo vendor`. (rust-lang/cargo#9131) - Add split-debuginfo profile option (rust-lang/cargo#9112) - Add RegistryBuilder for tests, and update crates-io error handling. (rust-lang/cargo#9126) - Add some documentation for index and registry stuff. (rust-lang/cargo#9125) - Fix env/cfg set for `cargo test` and `cargo run`. (rust-lang/cargo#9122)