| Age | Commit message (Collapse) | Author | Lines |
|
[stable] Rust 1.41.0 stable release
This PR produces the 1.41.0 stable release, backporting the following PRs as well:
* #68494: Make pointers to statics internal
* #67928: Update RELEASES.md for 1.41.0
r? @ghost
|
|
|
|
|
|
|
|
|
|
|
|
[beta] backports
This backports:
* Do not ICE on malformed suggestion spans #68256
* Distinguish between private items and hidden items in rustdoc #67875
* Revert parts of #66405. #67471
It also includes a few formatting commits to permit the backports to proceed cleanly (those are scoped to the relevant files, but still generate noise, of course). This was deemed easier than attempting to manually deal with the formatting.
r? @ghost
|
|
|
|
|
|
|
|
I believe rustdoc should not be conflating private items (visibility
lower than `pub`) and hidden items (attribute `doc(hidden)`). This
matters now that Cargo is passing --document-private-items by default
for bin crates. In bin crates that rely on macros, intentionally hidden
implementation details of the macros can overwhelm the actual useful
internal API that one would want to document.
This PR restores the strip-hidden pass when documenting private items,
and introduces a separate unstable --document-hidden-items option to
skip the strip-hidden pass. The two options are orthogonal to one
another.
|
|
|
|
Because it caused major performance regressions in some cases.
That PR had five commits, two of which affected performance, and three
of which were refactorings. This change undoes the performance-affecting
changes, while keeping the refactorings in place.
Fixes #67454.
|
|
|
|
Beta backports
- expect `fn` after `const unsafe` / `const extern` #68073
- Do not ICE on unicode next point #68084
- rustdoc: Don't allow `#![feature(...)]` on stable or beta #67989
r? @Mark-Simulacrum
|
|
(cherry picked from commit 40571995984a0f2c466f77955e7d147887c2179b)
|
|
(cherry picked from commit f6e9fd037a7b55f8f4fe78694b77d9788b18dfeb)
|
|
(cherry picked from commit b93ef68245807bac97cd17ea9eaa13169380d815)
|
|
(cherry picked from commit d558f6a570a782cd1c2e54de790f4f968b0de5f1)
|
|
(cherry picked from commit 3250057da983fa4d5bfd0799adaa41cb038f0e25)
|
|
Use `shrink_to_hi` instead of `next_point`
Fix #68000.
(cherry picked from commit fcd850fc5db2501d14b2e0cbfac8aa890d700e55)
|
|
(cherry picked from commit 915db7ae6430baef99f186ba40f08e105b7694fe)
|
|
[Beta] Backports
I did not include https://github.com/rust-lang/rust/pull/67134 and https://github.com/rust-lang/rust/pull/67289 since they seem to be on beta already.
* Fix up Command Debug output when arg0 is specified. https://github.com/rust-lang/rust/pull/67219
* Do not ICE on unnamed future #67289
* Don't suppress move errors for union fields #67314
* Reenable static linking of libstdc++ on windows-gnu #67410
* Use the correct type for static qualifs #67621
* Treat extern statics just like statics in the "const pointer to static" representation #67630
* Do not ICE on lifetime error involving closures #67687
|
|
|
|
|
|
representation
|
|
|
|
|
|
|
|
|
|
PR https://github.com/rust-lang/rust/pull/66512 added the ability to set argv[0] on
Command. As a side effect, it changed the Debug output to print both the program and
argv[0], which in practice results in stuttery output ("echo echo foo").
This PR reverts the behaviour to the the old one, so that the command is only printed
once - unless arg0 has been set. In that case it emits "[command] arg0 arg1 ...".
|
|
[beta] Switch to bootstrapping from dev-static stable
r? @ghost
|
|
|
|
Rollup of 8 pull requests
Successful merges:
- #67249 (Improve code generated for `starts_with(<literal char>)`)
- #67308 (Delete flaky test net::tcp::tests::fast_rebind)
- #67318 (Improve typeck & lowering docs for slice patterns)
- #67322 (use Self alias in place of macros)
- #67323 (make transparent enums more ordinary)
- #67336 (Fix JS error when loading page with search)
- #67344 (.gitignore: Don't ignore a file that exists in the repository)
- #67349 (Minor: update Unsize docs for dyn syntax)
Failed merges:
r? @ghost
|
|
Minor: update Unsize docs for dyn syntax
|
|
r=Dylan-DPC
.gitignore: Don't ignore a file that exists in the repository
.gitignore should not ignore files that exist in the repository. The
ignore of .cargo applies to the committed .cargo directory used in an
example:
$ git ls-files --exclude-standard --ignored
src/test/run-make/thumb-none-qemu/example/.cargo/config
Explicitly un-ignore that file.
|
|
Fix JS error when loading page with search
For example when you load this page: https://doc.rust-lang.org/nightly/std/num/struct.NonZeroI8.html?search=foo, you get a nice JS error:
```
TypeError: ev is undefined
```
r? @kinnison
|
|
make transparent enums more ordinary
By recognizing that structs & unions have one variant, we can make the treatment of transparent enums less ad-hoc.
cc https://github.com/rust-lang/rust/issues/60405
r? @davidtwco
|
|
use Self alias in place of macros
|
|
Improve typeck & lowering docs for slice patterns
cc #62254
r? @matthewjasper
|
|
Delete flaky test net::tcp::tests::fast_rebind
This test is unreliable for at least 3 users on two platforms: see #57509 and #51006. It was added 5 years ago in #22015. Do we know whether this is testing something important that would indicate a bug in our implementation, or if it's fine to remove?
r? @sfackler @alexcrichton because this somewhat resembles #59018
Closes #57509. Closes #51006.
|
|
Improve code generated for `starts_with(<literal char>)`
This PR includes two minor improvements to the code generated when checking for string prefix/suffix.
The first commit simplifies the str/str operation, by taking advantage of the raw UTF-8 representation.
The second commit replaces the current str/char matching logic with a char->str encoding and then the previous method.
The resulting code should be equivalent in the generic case (one char is being encoded versus one char being decoded), but it becomes easy to optimize in the case of a literal char, which in most cases a developer might expect to be at least as simple as that of a literal string.
This PR should fix #41993
|
|
|
|
|
|
Rollup of 7 pull requests
Successful merges:
- #65778 (Stabilize `std::{rc,sync}::Weak::{weak_count, strong_count}`)
- #66570 (stabilize Result::map_or)
- #66735 (Add str::strip_prefix and str::strip_suffix)
- #66771 (Stabilize the `core::panic` module)
- #67317 (fix type_name_of_val doc comment)
- #67324 (Fix repetition in matches/mod.rs)
- #67325 (cleanup with push_fake_read)
Failed merges:
r? @ghost
|
|
.gitignore should not ignore files that exist in the repository. The
ignore of .cargo applies to the committed .cargo directory used in an
example:
$ git ls-files --exclude-standard --ignored
src/test/run-make/thumb-none-qemu/example/.cargo/config
Explicitly un-ignore that file.
|
|
|
|
cleanup with push_fake_read
...and make things a bit more readable.
r? @matthewjasper
|
|
Fix repetition in matches/mod.rs
r? @matthewjasper
|
|
fix type_name_of_val doc comment
.
|