]> git.lizzy.rs Git - rust.git/log
rust.git
16 months agoRollup merge of #107527 - notriddle:notriddle/wcagcontrast, r=GuillaumeGomez
Guillaume Gomez [Tue, 31 Jan 2023 22:38:54 +0000 (23:38 +0100)]
Rollup merge of #107527 - notriddle:notriddle/wcagcontrast, r=GuillaumeGomez

rustdoc: stop making unstable items transparent

Fixes #93393

16 months agoRollup merge of #107525 - RalfJung:pointee-info, r=eddyb
Guillaume Gomez [Tue, 31 Jan 2023 22:38:54 +0000 (23:38 +0100)]
Rollup merge of #107525 - RalfJung:pointee-info, r=eddyb

PointeeInfo is advisory only

https://github.com/rust-lang/rust/pull/107248 fixed PointeeInfo being used in ways that don't actually work. Hopefully this comments helps avoid such issues in the future.

Cc ``@eddyb``

16 months agoRollup merge of #107508 - WaffleLapkin:uneq'15, r=oli-obk
Guillaume Gomez [Tue, 31 Jan 2023 22:38:53 +0000 (23:38 +0100)]
Rollup merge of #107508 - WaffleLapkin:uneq'15, r=oli-obk

`Edition` micro refactor

r? ``@oli-obk``

16 months agoRollup merge of #107491 - notriddle:notriddle/setting-check, r=GuillaumeGomez
Guillaume Gomez [Tue, 31 Jan 2023 22:38:53 +0000 (23:38 +0100)]
Rollup merge of #107491 - notriddle:notriddle/setting-check, r=GuillaumeGomez

rustdoc: remove unused CSS from `.setting-check`

These rules were needed for the mobile-style switches, but those were removed in 0f3ae6218ef1d9e9b14bf983b463785b14abc205

16 months agoRollup merge of #107486 - compiler-errors:bound-ty-keep-name, r=oli-obk
Guillaume Gomez [Tue, 31 Jan 2023 22:38:52 +0000 (23:38 +0100)]
Rollup merge of #107486 - compiler-errors:bound-ty-keep-name, r=oli-obk

Track bound types like bound regions

When we instantiate bound types into placeholder types, we throw away the names for some reason. These names are particularly useful for error reporting once we have `for<T>` binders.

r? types

16 months agoRollup merge of #107467 - WaffleLapkin:uneq, r=oli-obk
Guillaume Gomez [Tue, 31 Jan 2023 22:38:52 +0000 (23:38 +0100)]
Rollup merge of #107467 - WaffleLapkin:uneq, r=oli-obk

Improve enum checks

Some light refactoring.

16 months agoRollup merge of #107412 - tshepang:needless-check, r=wesleywiser
Guillaume Gomez [Tue, 31 Jan 2023 22:38:51 +0000 (23:38 +0100)]
Rollup merge of #107412 - tshepang:needless-check, r=wesleywiser

avoid needless checks

16 months agoRollup merge of #107354 - tspiteri:source-serif-4.005, r=GuillaumeGomez
Guillaume Gomez [Tue, 31 Jan 2023 22:38:50 +0000 (23:38 +0100)]
Rollup merge of #107354 - tspiteri:source-serif-4.005, r=GuillaumeGomez

rustdoc: update Source Serif 4 from 4.004 to 4.005

[Version 4.005](https://github.com/adobe-fonts/source-serif/releases/tag/4.005R) was released on 2023-01-20.

16 months agoRollup merge of #107348 - lcnr:project-solve-new, r=compiler-errors
Guillaume Gomez [Tue, 31 Jan 2023 22:38:50 +0000 (23:38 +0100)]
Rollup merge of #107348 - lcnr:project-solve-new, r=compiler-errors

small refactor to new projection code

extract `eq_term_and_make_canonical_response` into a helper function which also is another guarantee that the expected term does not influence candidate selection for projections.

also change `evaluate_all(vec![single_goal])` to use `evaluate_goal`.

the second commit now also adds a `debug_assert!` to `evaluate_goal`.

16 months agoRollup merge of #107331 - GuillaumeGomez:cleanup-js, r=notriddle
Guillaume Gomez [Tue, 31 Jan 2023 22:38:49 +0000 (23:38 +0100)]
Rollup merge of #107331 - GuillaumeGomez:cleanup-js, r=notriddle

Clean up eslint annotations and remove unused JS function

Thanks to https://github.com/rust-lang/rust/pull/107177 I realized that some eslint annotations might be unneeded so I cleaned them up. I also removed the unused function while we wait for https://github.com/rust-lang/rust/pull/107177 to be updated.

r? ``@notriddle``

16 months agoRollup merge of #106898 - estebank:ice-forms-are-a-headache, r=Mark-Simulacrum
Guillaume Gomez [Tue, 31 Jan 2023 22:38:49 +0000 (23:38 +0100)]
Rollup merge of #106898 - estebank:ice-forms-are-a-headache, r=Mark-Simulacrum

Include both md and yaml ICE ticket templates

* Existing compilers link to the md version
* The YAML version field for the backtrace *doesn't let us paste a full backtrace*
* We will need the YAML version in order to be able to submit reports once we start storing the backtrace to disk

Follow up to #106831. Reaction to #106874, which made me realize that *really* long backtraces are rejected by GitHub Forms. A single backtrace won't hit this, but ICEs sometimes compound.

16 months agoAuto merge of #107297 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini
bors [Tue, 31 Jan 2023 19:24:29 +0000 (19:24 +0000)]
Auto merge of #107297 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini

Bump bootstrap compiler to 1.68

This also changes our stage0.json to include the rustc component for the rustfmt pinned nightly toolchain, which is currently necessary due to rustfmt dynamically linking to that toolchain's librustc_driver and libstd.

r? `@pietroalbini`

16 months agorustdoc: stop making unstable items transparent
Michael Howell [Tue, 31 Jan 2023 18:27:09 +0000 (11:27 -0700)]
rustdoc: stop making unstable items transparent

Fixes #93393

16 months agoPointeeInfo is advisory only
Ralf Jung [Tue, 31 Jan 2023 17:49:03 +0000 (18:49 +0100)]
PointeeInfo is advisory only

16 months agoDownload rustc component for rustfmt toolchain as well
Mark Rousskov [Wed, 25 Jan 2023 23:48:07 +0000 (18:48 -0500)]
Download rustc component for rustfmt toolchain as well

16 months agoAuto merge of #106399 - estebank:type-err-span-label, r=nagisa
bors [Tue, 31 Jan 2023 13:53:40 +0000 (13:53 +0000)]
Auto merge of #106399 - estebank:type-err-span-label, r=nagisa

Modify primary span label for E0308

Looking at the reactions to https://hachyderm.io/`@ekuber/109622160673605438,` a lot of people seem to have trouble understanding the current output, where the primary span label on type errors talks about the specific types that diverged, but these can be deeply nested type parameters. Because of that we could see "expected i32, found u32" in the label while the note said "expected Vec<i32>, found Vec<u32>". This understandably confuses people. I believe that once people learn to read these errors it starts to make more sense, but this PR changes the output to be more in line with what people might expect, without sacrificing terseness.

Fix #68220.

16 months agoClean up eslint annotations and remove unused JS function
Guillaume Gomez [Thu, 26 Jan 2023 17:03:37 +0000 (18:03 +0100)]
Clean up eslint annotations and remove unused JS function

16 months agoAuto merge of #100754 - davidtwco:translation-incremental, r=compiler-errors
bors [Tue, 31 Jan 2023 10:20:58 +0000 (10:20 +0000)]
Auto merge of #100754 - davidtwco:translation-incremental, r=compiler-errors

incremental: migrate diagnostics

- Apply the diagnostic migration lints to more functions on `Session`, namely: `span_warn`, `span_warn_with_code`, `warn` `note_without_error`, `span_note_without_error`, `struct_note_without_error`.
- Add impls of `IntoDiagnosticArg` for `std::io::Error`, `std::path::Path` and `std::path::PathBuf`.
- Migrate the `rustc_incremental` crate's diagnostics to translatable diagnostic structs.

r? `@compiler-errors`
cc #100717

16 months agoDon't accept `Edition` by ref
Maybe Waffle [Tue, 31 Jan 2023 10:07:29 +0000 (10:07 +0000)]
Don't accept `Edition` by ref

16 months agoDon't do `.edition().rust_*()`
Maybe Waffle [Tue, 31 Jan 2023 09:56:50 +0000 (09:56 +0000)]
Don't do `.edition().rust_*()`

16 months agoDocument `rust_2015` methods
Maybe Waffle [Tue, 31 Jan 2023 09:52:54 +0000 (09:52 +0000)]
Document `rust_2015` methods

16 months agoUse `Edition` methods a bit more
Maybe Waffle [Tue, 31 Jan 2023 09:50:56 +0000 (09:50 +0000)]
Use `Edition` methods a bit more

16 months agoReview changes
Maybe Waffle [Tue, 31 Jan 2023 07:44:34 +0000 (07:44 +0000)]
Review changes

16 months agoAuto merge of #107498 - JohnTitor:rollup-2i6g4uk, r=JohnTitor
bors [Tue, 31 Jan 2023 06:25:30 +0000 (06:25 +0000)]
Auto merge of #107498 - JohnTitor:rollup-2i6g4uk, r=JohnTitor

Rollup of 8 pull requests

Successful merges:

 - #107245 (Implement unsizing in the new trait solver)
 - #107445 (Remove `GenFuture` from core)
 - #107473 (Update books)
 - #107476 (rustdoc: remove unnecessary wrapper `div.item-decl` from HTML)
 - #107477 (Migrate last part of CSS themes to CSS variables)
 - #107479 (Use `ObligationCtxt::new_in_snapshot` in `satisfied_from_param_env`)
 - #107482 (rustdoc: remove meta keywords from HTML)
 - #107494 (fix link in std::path::Path::display())

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

16 months agoRollup merge of #107494 - lebensterben:patch-1, r=JohnTitor
Yuki Okushi [Tue, 31 Jan 2023 02:46:26 +0000 (11:46 +0900)]
Rollup merge of #107494 - lebensterben:patch-1, r=JohnTitor

fix link in std::path::Path::display()

The link `Debug` points to should be the trait `Debug`, not the macro `Debug`.

16 months agoRollup merge of #107482 - notriddle:notriddle/keywords, r=jsha
Yuki Okushi [Tue, 31 Jan 2023 02:46:26 +0000 (11:46 +0900)]
Rollup merge of #107482 - notriddle:notriddle/keywords, r=jsha

rustdoc: remove meta keywords from HTML

Discussed in <https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/.60.3Cmeta.20name.3D.22keywords.22.3E.60>

16 months agoRollup merge of #107479 - compiler-errors:probe-can-call-ocx, r=BoxyUwU
Yuki Okushi [Tue, 31 Jan 2023 02:46:25 +0000 (11:46 +0900)]
Rollup merge of #107479 - compiler-errors:probe-can-call-ocx, r=BoxyUwU

Use `ObligationCtxt::new_in_snapshot` in `satisfied_from_param_env`

We can evaluate nested `ConstEvaluatable` obligations in an evaluation probe, which will ICE if we use `ObligationCtxt::new`.

Fixes #107474
Fixes #106666

r? `@BoxyUwU` but feel free to reassign
cc `@JulianKnodt` who i think added this assertion code

Not sure if the rustdoc test is needed, but can't hurt. They're the same root cause, though.

16 months agoRollup merge of #107477 - GuillaumeGomez:css-var, r=notriddle
Yuki Okushi [Tue, 31 Jan 2023 02:46:25 +0000 (11:46 +0900)]
Rollup merge of #107477 - GuillaumeGomez:css-var, r=notriddle

Migrate last part of CSS themes to CSS variables

No changes in the output. This is already tested in `tests/rustdoc-gui/search-tab.goml` so no need to add a GUI test.

r? `@notriddle`

16 months agoRollup merge of #107476 - notriddle:notriddle/item-decl-3, r=GuillaumeGomez
Yuki Okushi [Tue, 31 Jan 2023 02:46:24 +0000 (11:46 +0900)]
Rollup merge of #107476 - notriddle:notriddle/item-decl-3, r=GuillaumeGomez

rustdoc: remove unnecessary wrapper `div.item-decl` from HTML

16 months agoRollup merge of #107473 - rustbot:docs-update, r=ehuss
Yuki Okushi [Tue, 31 Jan 2023 02:46:24 +0000 (11:46 +0900)]
Rollup merge of #107473 - rustbot:docs-update, r=ehuss

Update books

## rust-lang/book

2 commits in 2cd1b5593d26dc6a03c20f8619187ad4b2485552..f2a78f64b668f63f581203c6bac509903f7c00ee
2023-01-23 18:19:32 UTC to 2023-01-23 15:15:22 UTC

- Change CamelCase to UpperCamelCase
- Fix broken link to the No Starch Press version (rust-lang/book#3513)

## rust-embedded/book

3 commits in 19f798d448835a4888e3b3eae7fe69f1d61d8681..f1a4614aa41cc544b91b79760a709e113f3451d7
2023-01-26 15:21:58 UTC to 2023-01-18 07:51:06 UTC

- Fix typo in the registers.md (rust-embedded/book#343)
- Macports install instructions (rust-embedded/book#342)
- remove extern crate statements (rust-embedded/book#340)

## rust-lang/nomicon

2 commits in 960d610e7f33889a2577f5f17c26f0d5c82b30df..bd1829d235296952bf72ca55635e360584b8805e
2023-01-18 03:14:58 UTC to 2023-01-17 20:05:07 UTC

- Copyedits to FFI and unwinding section (rust-lang/nomicon#396)
- Fix typo in dropck documentation (rust-lang/nomicon#397)

## rust-lang/reference

2 commits in 2cb0ed9ba56360949f492f9866afe8c293f9f9da..22882fb3f7b4d69fdc0d1731e8b9cfcb6910537d
2023-01-23 13:21:28 UTC to 2023-01-20 18:38:44 UTC

- Fix typo “assigment” (…and more) (rust-lang/reference#1322)
- Syntax correction for trait-bounds.md (rust-lang/reference#1319)

## rust-lang/rust-by-example

1 commits in a9fb7d13eadfcc5f457962731f105b97f9a7474a..134376872e8c387ef369507e0ee9b5a0e3272718
2023-01-25 11:56:37 UTC to 2023-01-25 11:56:37 UTC

- update std_misc/file/create.md: fixed grammar (rust-lang/rust-by-example#1668)

## rust-lang/rustc-dev-guide

12 commits in 7352353ae91c48b136d2ca7d03822e1448165e1e..e359ee27fc3da3356d71a732128c0a1abe02e53a
2023-01-30 15:08:16 UTC to 2023-01-17 12:44:19 UTC

- New infcx usage (rust-lang/rustc-dev-guide#1571)
- Create a chapter for AST validation (rust-lang/rustc-dev-guide#1524)
- Use ephemeral PAT for linkcheck (rust-lang/rustc-dev-guide#1569)
- add section for the new trait solver (rust-lang/rustc-dev-guide#1551)
- version 5 is now not supported (rust-lang/rustc-dev-guide#1568)
- there are still no locale bundles (rust-lang/rustc-dev-guide#1567)
- bumpt date-check examples to current month (rust-lang/rustc-dev-guide#1566)
- Update hir.md (rust-lang/rustc-dev-guide#1565)
- rustc_typeck exists no more (rust-lang/rustc-dev-guide#1559)
- Correct tests misplacement (rust-lang/rustc-dev-guide#1564)
- Update resolution.md (rust-lang/rustc-dev-guide#1561)
- Update asm.md  (rust-lang/rustc-dev-guide#1560)

16 months agoRollup merge of #107445 - Swatinem:rm-genfuture, r=cuviper
Yuki Okushi [Tue, 31 Jan 2023 02:46:23 +0000 (11:46 +0900)]
Rollup merge of #107445 - Swatinem:rm-genfuture, r=cuviper

Remove `GenFuture` from core

The handling of async constructs in the compiler does not rely on `GenFuture` anymore since `1.67`, so this code can now be removed from `core`.

16 months agoRollup merge of #107245 - compiler-errors:new-solver-unsizing, r=lcnr
Yuki Okushi [Tue, 31 Jan 2023 02:46:22 +0000 (11:46 +0900)]
Rollup merge of #107245 - compiler-errors:new-solver-unsizing, r=lcnr

Implement unsizing in the new trait solver

This makes hello world compile! Ignore the first commit, that's just #107146 which is waiting on merge.

I'll leave some comments inline about design choices that might be debatable.

r? `@lcnr` (until we have a new trait solver reviewer group...)

16 months agoAuto merge of #107443 - cjgillot:generator-less-query, r=compiler-errors
bors [Tue, 31 Jan 2023 02:46:11 +0000 (02:46 +0000)]
Auto merge of #107443 - cjgillot:generator-less-query, r=compiler-errors

Test drop_tracking_mir before querying generator.

r? `@ghost`

16 months agofix link in std::path::Path::display()
Lucius Hu [Tue, 31 Jan 2023 00:20:27 +0000 (00:20 +0000)]
fix link in std::path::Path::display()

The link `Debug` points to should be the trait `Debug`, not the macro `Debug`.

16 months agoAuto merge of #105650 - cassaundra:float-literal-suggestion, r=pnkfelix
bors [Tue, 31 Jan 2023 00:03:08 +0000 (00:03 +0000)]
Auto merge of #105650 - cassaundra:float-literal-suggestion, r=pnkfelix

Fix invalid float literal suggestions when recovering an integer

Only suggest adding a zero to integers with a preceding dot when the change will result in a valid floating point literal.

For example, `.0x0` should not be turned into `0.0x0`.

r? nnethercote

16 months agorustdoc: remove unused CSS from `.setting-check`
Michael Howell [Mon, 30 Jan 2023 23:36:57 +0000 (16:36 -0700)]
rustdoc: remove unused CSS from `.setting-check`

These rules were needed for the mobile-style switches, but those
were removed in 0f3ae6218ef1d9e9b14bf983b463785b14abc205

16 months agoTrack bound types like bound regions
Michael Goulet [Tue, 17 Jan 2023 03:27:48 +0000 (03:27 +0000)]
Track bound types like bound regions

16 months agoFix unquoted projection types in label
Esteban Küber [Mon, 30 Jan 2023 22:02:30 +0000 (22:02 +0000)]
Fix unquoted projection types in label

16 months agoMake structured suggestion for fn casting verbose
Esteban Küber [Mon, 30 Jan 2023 21:55:25 +0000 (21:55 +0000)]
Make structured suggestion for fn casting verbose

16 months agoTweak E0271 wording
Esteban Küber [Fri, 6 Jan 2023 20:28:46 +0000 (20:28 +0000)]
Tweak E0271 wording

16 months agoMention fn coercion rules (needs to be expanded)
Esteban Küber [Fri, 6 Jan 2023 20:15:10 +0000 (20:15 +0000)]
Mention fn coercion rules (needs to be expanded)

16 months agoFix invalid float literal suggestions when recovering an integer
Cassaundra Smith [Mon, 30 Jan 2023 21:39:25 +0000 (13:39 -0800)]
Fix invalid float literal suggestions when recovering an integer

Only suggest adding a zero to integers with a preceding dot when the change will
result in a valid floating point literal.

For example, `.0x0` should not be turned into `0.0x0`.

16 months agoTweak use of trimmed paths
Esteban Küber [Fri, 6 Jan 2023 19:21:47 +0000 (19:21 +0000)]
Tweak use of trimmed paths

16 months agoHide lifetimes of `impl Trait` in force trimmed paths
Esteban Küber [Fri, 6 Jan 2023 01:22:24 +0000 (01:22 +0000)]
Hide lifetimes of `impl Trait` in force trimmed paths

16 months agoDo not mention lifetime names in force trimmed paths
Esteban Küber [Fri, 6 Jan 2023 01:11:50 +0000 (01:11 +0000)]
Do not mention lifetime names in force trimmed paths

16 months agoDon't show `for<'lt>` in force trimmed paths
Esteban Küber [Fri, 6 Jan 2023 01:03:52 +0000 (01:03 +0000)]
Don't show `for<'lt>` in force trimmed paths

16 months agoreview comments
Esteban Küber [Fri, 6 Jan 2023 00:53:31 +0000 (00:53 +0000)]
review comments

16 months agoModify primary span label for E0308
Esteban Küber [Tue, 3 Jan 2023 02:00:33 +0000 (18:00 -0800)]
Modify primary span label for E0308

The previous output was unintuitive to users.

16 months agoAuto merge of #107197 - aliemjay:patch-2, r=jackh726
bors [Mon, 30 Jan 2023 19:42:49 +0000 (19:42 +0000)]
Auto merge of #107197 - aliemjay:patch-2, r=jackh726

assume MIR types are fully normalized in ascribe_user_type

This FIXME was introduced in c6a17bf8bcfa60c8b0436251d2cf70d8eca4d198 but it should've been restricted to `ascribe_user_type_skip_wf`.

16 months agorustdoc: remove meta keywords from HTML
Michael Howell [Mon, 30 Jan 2023 19:20:06 +0000 (12:20 -0700)]
rustdoc: remove meta keywords from HTML

Discussed in
<https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/.60.3Cmeta.20name.3D.22keywords.22.3E.60>

16 months agonits
Michael Goulet [Wed, 25 Jan 2023 17:02:16 +0000 (17:02 +0000)]
nits

16 months agoTrait upcasting support in new solver
Michael Goulet [Mon, 23 Jan 2023 23:56:54 +0000 (23:56 +0000)]
Trait upcasting support in new solver

16 months agoImplement unsizing in the new trait solver
Michael Goulet [Mon, 23 Jan 2023 22:33:59 +0000 (22:33 +0000)]
Implement unsizing in the new trait solver

16 months agoUse ObligationCtxt::new_in_snapshot in satisfied_from_param_env
Michael Goulet [Mon, 30 Jan 2023 19:04:55 +0000 (19:04 +0000)]
Use ObligationCtxt::new_in_snapshot in satisfied_from_param_env

16 months agoMigrate last part of CSS themes to CSS variables
Guillaume Gomez [Mon, 30 Jan 2023 18:28:47 +0000 (19:28 +0100)]
Migrate last part of CSS themes to CSS variables

16 months agostage-step cfgs
Mark Rousskov [Wed, 25 Jan 2023 14:48:32 +0000 (09:48 -0500)]
stage-step cfgs

16 months agorustdoc: remove unnecessary wrapper div.item-decl from HTML
Michael Howell [Mon, 30 Jan 2023 18:05:12 +0000 (11:05 -0700)]
rustdoc: remove unnecessary wrapper div.item-decl from HTML

16 months agoincremental: migrate diagnostics
David Wood [Mon, 26 Sep 2022 14:42:12 +0000 (15:42 +0100)]
incremental: migrate diagnostics

Migrate the `rustc_incremental` crate's diagnostics to translatable
diagnostic structs.

Signed-off-by: David Wood <david.wood@huawei.com>
16 months agosession: diagnostic migration lint on more fns
David Wood [Fri, 19 Aug 2022 13:48:15 +0000 (14:48 +0100)]
session: diagnostic migration lint on more fns

Apply the diagnostic migration lint to more functions on `Session`.

Signed-off-by: David Wood <david.wood@huawei.com>
16 months agosession: impl `IntoDiagnosticArg` for `CrateType`
David Wood [Tue, 30 Aug 2022 16:01:54 +0000 (17:01 +0100)]
session: impl `IntoDiagnosticArg` for `CrateType`

Forward the `Display` implementation for `CrateType` to
`IntoDiagnosticArg` so that it can be used in diagnostic structs.

Signed-off-by: David Wood <david.wood@huawei.com>
16 months agoerrors: implement `IntoDiagnosticArg` for `&T`
David Wood [Tue, 30 Aug 2022 16:00:20 +0000 (17:00 +0100)]
errors: implement `IntoDiagnosticArg` for `&T`

Implement `IntoDiagnosticArg` for `&'a T` when `T` implements
`IntoDiagnosticArg` and `Clone`. Makes it easier to write diagnostic
structs that borrow something which implements `IntoDiagnosticArg`.

Signed-off-by: David Wood <david.wood@huawei.com>
16 months agoerrors: add `emit_note`/`create_note` on `Handler`
David Wood [Fri, 14 Oct 2022 13:00:06 +0000 (14:00 +0100)]
errors: add `emit_note`/`create_note` on `Handler`

Support for emission of notes was added in f8ebc72 but `emit_note` and
`create_note` functions weren't added to `Handler`.

Signed-off-by: David Wood <david.wood@huawei.com>
16 months agoAuto merge of #107472 - matthiaskrgr:rollup-s9gn4n7, r=matthiaskrgr
bors [Mon, 30 Jan 2023 17:01:29 +0000 (17:01 +0000)]
Auto merge of #107472 - matthiaskrgr:rollup-s9gn4n7, r=matthiaskrgr

Rollup of 7 pull requests

Successful merges:

 - #107125 (Add and use expect methods to hir.)
 - #107172 (Reimplement NormalizeArrayLen based on SsaLocals)
 - #107177 (Keep all theme-updating logic together)
 - #107424 (Make Vec::clone_from and slice::clone_into share the same code)
 - #107455 (use a more descriptive name)
 - #107465 (`has_allow_dead_code_or_lang_attr` micro refactor)
 - #107469 (Change turbofish context link to an archive link)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

16 months agoUpdate books
rustbot [Mon, 30 Jan 2023 17:01:05 +0000 (12:01 -0500)]
Update books

16 months agoRollup merge of #107469 - LLBlumire:master, r=jyn514
Matthias Krüger [Mon, 30 Jan 2023 16:50:12 +0000 (17:50 +0100)]
Rollup merge of #107469 - LLBlumire:master, r=jyn514

Change turbofish context link to an archive link

The original tweet in the chain linked to (via quote tweet), and thus the through line of links back to Anna's tweet where she named the turbofish (https://web.archive.org/web/20210911061514/https://twitter.com/whoisaldeka/status/914914008225816576) are lost as the user whoisaldeka has deleted their twitter account.

Switching to an archive link preserves this through line, allowing someone to browse back to see the point at which Anna created the turbofish, as was the original intent of including this context.

I was sharing this test with some friends as I often do, and noticed the changes (I had only seen the version from before her death previously). Looking for context myself, I realized the deleted twitter account was breaking an important link in the chain for the context of who Anna was to begin with, and the exact moment the turbofish was so named.

As an alternative to using an archive, we could link to both the tweet where Anna names the turbofish, and the tweet where she refers to herself as its guardian, as two separate links - not requiring the quote tweet to connect them.

16 months agoRollup merge of #107465 - WaffleLapkin:has_allow_dead_code_or_lang_attr, r=Nilstrieb
Matthias Krüger [Mon, 30 Jan 2023 16:50:11 +0000 (17:50 +0100)]
Rollup merge of #107465 - WaffleLapkin:has_allow_dead_code_or_lang_attr, r=Nilstrieb

`has_allow_dead_code_or_lang_attr` micro refactor

r? `@Nilstrieb`

16 months agoRollup merge of #107455 - tshepang:better-name, r=wesleywiser
Matthias Krüger [Mon, 30 Jan 2023 16:50:11 +0000 (17:50 +0100)]
Rollup merge of #107455 - tshepang:better-name, r=wesleywiser

use a more descriptive name

I found it hard to distinguish between the two method names.

Also, the comment just repeats the `expect` string.

16 months agoRollup merge of #107424 - bpeel:clone-into-from-share-code, r=scottmcm
Matthias Krüger [Mon, 30 Jan 2023 16:50:10 +0000 (17:50 +0100)]
Rollup merge of #107424 - bpeel:clone-into-from-share-code, r=scottmcm

Make Vec::clone_from and slice::clone_into share the same code

In the past, `Vec::clone_from` was implemented using `slice::clone_into`. The code from `clone_into` was later duplicated into `clone_from` in 8725e4c337, which is the commit that adds custom allocator support to Vec. Presumably this was done because the `slice::clone_into` method only works for vecs with the default allocator so it would have the wrong type to clone into `Vec<T, A>`.

Later on in 361398009be6 the code for the two methods diverged because the `Vec::clone_from` version gained a specialization to optimize the case when T is Copy. In order to reduce code duplication and make them both be able to take advantage of this specialization, this PR moves the specialization into the slice module and makes vec use it again.

16 months agoRollup merge of #107177 - thanatos:fix-doc-errant-light-theme, r=notriddle
Matthias Krüger [Mon, 30 Jan 2023 16:50:09 +0000 (17:50 +0100)]
Rollup merge of #107177 - thanatos:fix-doc-errant-light-theme, r=notriddle

Keep all theme-updating logic together

Prior to this PR, if the page is restored from the browser bfcache¹, we call `switchToSavedTheme`. But `switchToSavedTheme` never looks at the `use-system-theme` preference. Further, if it can't find a saved theme, it will fall back to the default of "light".

For a user with cookies disabled² whose preferred color scheme is dark, this means the theme will wobble back and forth between dark and light. The sequence that occurs is,

1. The page is loaded. During a page load, we consult `use-system-theme`: as cookies are disabled, this preference is unset. The default is true.

   Because the default is true, we look at the preferred color scheme: for our example user, that's "dark". **The page theme is set to dark.** We'll attempt to store these preferences in localStorage, but fail due to cookies being disabled.

2. The user navigates through the docs. Subsequent page loads happen, and the same process in step 1 recurs. Previous pages are (potentially) put into the bfcache.

3. The user navigates backwards/forwards, causing a page in bfcache to be pulled out of cache. The `pageShow` event handler is triggered. However, this calls `switchToSavedTheme`: this doesn't consider the system theme, as noted above. Instead, it only looks for a saved theme. However, with cookies disabled, there is none. It defaults to light. **The page theme is set to light!** The user wonders why the dark theme is lost.

There are effectively two functions trying to determine and apply the correct theme: `updateSystemTheme` and `switchToSavedTheme`. Thus, we merge them into just one: `updateTheme`. This function contains all the logic for determining the correct theme, and is called in all circumstances where we need to set the theme:

* The initial page load
* If the browser preferred color scheme (i.e., light/dark mode) is changed
* If the page is restored from bfcache
* If the user updates the theme preferences (i.e., in `settings.js`)

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

¹bfcache: https://web.dev/bfcache/ The bfcache is used to sleep a page, if the user navigates away from it, and to restore it from cache if the user returns to it.

²Note that the browser preference that enables/disables cookies really controls many forms of storage. The same preference thus also affects localStorage. (This is so a normal browser user doesn't need to understand the distinction between "cookies" and "localStorage".)

16 months agoRollup merge of #107172 - cjgillot:no-nal, r=nagisa
Matthias Krüger [Mon, 30 Jan 2023 16:50:09 +0000 (17:50 +0100)]
Rollup merge of #107172 - cjgillot:no-nal, r=nagisa

Reimplement NormalizeArrayLen based on SsaLocals

Based on https://github.com/rust-lang/rust/pull/106908
Fixes https://github.com/rust-lang/rust/issues/105929

Only the last commit "Reimplement NormalizeArrayLen" is relevant.

16 months agoRollup merge of #107125 - WaffleLapkin:expect_an_item_in_your_hir_by_the_next_morning...
Matthias Krüger [Mon, 30 Jan 2023 16:50:08 +0000 (17:50 +0100)]
Rollup merge of #107125 - WaffleLapkin:expect_an_item_in_your_hir_by_the_next_morning, r=Nilstrieb

Add and use expect methods to hir.

[The future has come](https://github.com/rust-lang/rust/pull/106090/files#r1070062462).

r? `@Nilstrieb`

tbh I'm not even sure if it's worth it

16 months agoUpdate bastion-of-the-turbofish.rs
Lucille Blumire [Mon, 30 Jan 2023 14:22:41 +0000 (14:22 +0000)]
Update bastion-of-the-turbofish.rs

The original tweet in the chain linked to, and thus the through line of links back to Anna's tweet where she named the turbofish (https://web.archive.org/web/20210911061514/https://twitter.com/whoisaldeka/status/914914008225816576) are lost as the user whoisaldeka has deleted their twitter account.

Switching to an archive link preserves this through line, allowing someone to browse back to see the point at which Anna created the turbofish, as was the original intent of including this context.

16 months agoAuto merge of #107080 - Urgau:cleanup-bootstrap-extra-check-cfgs, r=Mark-Simulacrum
bors [Mon, 30 Jan 2023 13:56:40 +0000 (13:56 +0000)]
Auto merge of #107080 - Urgau:cleanup-bootstrap-extra-check-cfgs, r=Mark-Simulacrum

bootstrap: cleanup the list of extra check cfgs

This PR performs some cleanups on the `EXTRA_CHECK_CFGS` list in bootstrap.

- `target_os=watchos`: no longer relevant because there are now proper targets `*-apple-watchos`
 - `target_arch=nvptx64`: target `nvptx64-nvidia-cuda` makes it useless
 - `target_arch=le32`: target was removed (https://github.com/rust-lang/rust/pull/45041)
 - `release`: was removed from rustfmt (https://github.com/rust-lang/rustfmt/pull/5375 and https://github.com/rust-lang/rustfmt/pull/5449)
 - `dont_compile_me`: was removed from stdarch (https://github.com/rust-lang/stdarch/pull/1308)

Also made some external cfg exception mode clear and only activated for rustc and rustc tools (as to not have the Standard Library unintentionally depend on them).

16 months agoReplace some `_ == _ || _ == _`s with `matches!(_, _ | _)`s
Maybe Waffle [Mon, 30 Jan 2023 12:01:09 +0000 (12:01 +0000)]
Replace some `_ == _ || _ == _`s with `matches!(_, _ | _)`s

16 months agoUse `Mutability::{is_mut, is_not}`
Maybe Waffle [Mon, 30 Jan 2023 12:00:11 +0000 (12:00 +0000)]
Use `Mutability::{is_mut, is_not}`

16 months agoReplace enum `==`s with `match`es where it makes sense
Maybe Waffle [Mon, 30 Jan 2023 11:03:32 +0000 (11:03 +0000)]
Replace enum `==`s with `match`es where it makes sense

16 months agoAuto merge of #107463 - Dylan-DPC:rollup-6mq1li8, r=Dylan-DPC
bors [Mon, 30 Jan 2023 11:14:21 +0000 (11:14 +0000)]
Auto merge of #107463 - Dylan-DPC:rollup-6mq1li8, r=Dylan-DPC

Rollup of 6 pull requests

Successful merges:

 - #101569 (Don't re-export private/unstable ArgumentV1 from `alloc`.)
 - #106106 (Pass `branch.{branch}.remote=origin` to `git submodule update`)
 - #107146 (Make `unsizing_params_for_adt` into a query)
 - #107264 (Add option to include private items in library docs)
 - #107452 (Fix typo in `{Rc, Arc}::get_mut_unchecked` docs)
 - #107459 (end entry paragraph with a period (.))

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

16 months agoConsider `#[allow(dead_code)]` before lang items
Maybe Waffle [Mon, 30 Jan 2023 10:54:33 +0000 (10:54 +0000)]
Consider `#[allow(dead_code)]` before lang items

16 months agoSplit `has_allow_dead_code_or_lang_attr` into sub functions
Maybe Waffle [Mon, 30 Jan 2023 10:53:11 +0000 (10:53 +0000)]
Split `has_allow_dead_code_or_lang_attr` into sub functions

16 months agoRollup merge of #107459 - tshepang:cosistency, r=WaffleLapkin
Dylan DPC [Mon, 30 Jan 2023 09:41:47 +0000 (15:11 +0530)]
Rollup merge of #107459 - tshepang:cosistency, r=WaffleLapkin

end entry paragraph with a period (.)

16 months agoRollup merge of #107452 - y21:get-mut-unchecked-typo, r=Mark-Simulacrum
Dylan DPC [Mon, 30 Jan 2023 09:41:46 +0000 (15:11 +0530)]
Rollup merge of #107452 - y21:get-mut-unchecked-typo, r=Mark-Simulacrum

Fix typo in `{Rc, Arc}::get_mut_unchecked` docs

Just a correction in the documentation of `{Rc, Arc}::get_mut_unchecked`.

16 months agoRollup merge of #107264 - ferrocene:pa-private-items, r=Mark-Simulacrum
Dylan DPC [Mon, 30 Jan 2023 09:41:46 +0000 (15:11 +0530)]
Rollup merge of #107264 - ferrocene:pa-private-items, r=Mark-Simulacrum

Add option to include private items in library docs

I need to perform some one-off analysis on libcore, and I wanted to use the unstable JSON rustdoc output to easily do it. Unfortunately, there is currently no way to include unstable items in the library docs. This PR adds support for that, with the off-by-default `build.library-docs-private-items` setting.

16 months agoRollup merge of #107146 - compiler-errors:unsizing-params, r=cjgillot
Dylan DPC [Mon, 30 Jan 2023 09:41:45 +0000 (15:11 +0530)]
Rollup merge of #107146 - compiler-errors:unsizing-params, r=cjgillot

Make `unsizing_params_for_adt` into a query

Addresses a FIXME in confirmation.

r? ``@ghost``

16 months agoRollup merge of #106106 - jyn514:remote-tracking-branch, r=Mark-Simulacrum
Dylan DPC [Mon, 30 Jan 2023 09:41:45 +0000 (15:11 +0530)]
Rollup merge of #106106 - jyn514:remote-tracking-branch, r=Mark-Simulacrum

Pass `branch.{branch}.remote=origin` to `git submodule update`

This works around a bug in git itself.
Fixes https://github.com/rust-lang/rust/issues/101144.

16 months agoRollup merge of #101569 - m-ou-se:alloc-no-rexport-argumentv1, r=thomcc
Dylan DPC [Mon, 30 Jan 2023 09:41:44 +0000 (15:11 +0530)]
Rollup merge of #101569 - m-ou-se:alloc-no-rexport-argumentv1, r=thomcc

Don't re-export private/unstable ArgumentV1 from `alloc`.

The `alloc::fmt::ArgumentV1` re-export was marked as `#[stable]` even though the original `core::fmt::ArgumentV1` is `#[unstable]` (and `#[doc(hidden)]`).

(It wasn't usable though:

```
error[E0658]: use of unstable library feature 'fmt_internals': internal to format_args!
 --> src/main.rs:4:12
  |
4 |     let _: alloc::fmt::ArgumentV1 = todo!();
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: add `#![feature(fmt_internals)]` to the crate attributes to enable
```
)

Part of #99012

16 months agoKeep all theme-updating logic together
Roy Wellington Ⅳ [Sat, 21 Jan 2023 23:21:43 +0000 (18:21 -0500)]
Keep all theme-updating logic together

Prior to this PR, if the page is restored from the browser bfcache¹, we
call `switchToSavedTheme`. But `switchToSavedTheme` never looks at the
`use-system-theme` preference. Further, if it can't find a saved theme,
it will fall back to the default of "light".

For a user with cookies disabled² whose preferred color scheme is dark,
this means the theme will wobble back and forth between dark and light.
The sequence that occurs is,

1. The page is loaded. During a page load, we consult
   `use-system-theme`: as cookies are disabled, this preference is
   unset. The default is true.

   Because the default is true, we look at the preferred color scheme:
   for our example user, that's "dark". **The page theme is set to
   dark.** We'll attempt to store these preferences in localStorage, but
   fail due to cookies being disabled.

2. The user navigates through the docs. Subsequent page loads happen,
   and the same process in step 1 recurs. Previous pages are
   (potentially) put into the bfcache.

3. The user navigates backwards/forwards, causing a page in bfcache to
   be pulled out of cache. The `pageShow` event handler is triggered.
   However, this calls `switchToSavedTheme`: this doesn't consider the
   system theme, as noted above. Instead, it only looks for a saved
   theme. However, with cookies disabled, there is none. It defaults to
   light. **The page theme is set to light!** The user wonders why the
   dark theme is lost.

There are effectively two functions trying to determine and apply the
correct theme: `updateSystemTheme` and `switchToSavedTheme`. Thus, we
merge them into just one: `updateTheme`. This function contains all the
logic for determining the correct theme, and is called in all
circumstances where we need to set the theme:

* The initial page load
* If the browser preferred color scheme (i.e., light/dark mode) is
  changed
* If the page is restored from bfcache
* If the user updates the theme preferences (i.e., in `settings.js`)

Fixes #94250.

¹bfcache: https://web.dev/bfcache/ The bfcache is used to sleep a page,
if the user navigates away from it, and to restore it from cache if the
user returns to it.

²Note that the browser preference that enables/disables cookies really
controls many forms of storage. The same preference thus also affects
localStorage. (This is so a normal browser user doesn't need to
understand the distinction between "cookies" and "localStorage".)

16 months agoAuto merge of #104429 - nnethercote:more-deriving-on-packed-structs, r=RalfJung
bors [Mon, 30 Jan 2023 07:02:01 +0000 (07:02 +0000)]
Auto merge of #104429 - nnethercote:more-deriving-on-packed-structs, r=RalfJung

More deriving on packed structs

See [here](https://github.com/rust-lang/rust/pull/104429#issuecomment-1320909245) for the t-lang nomination summary, and [here](https://github.com/rust-lang/rust/pull/104429#issuecomment-1360077895) for the approval.

r? `@RalfJung`

16 months agofix `TraitItemKind::expect_type` docs
Maybe Waffle [Mon, 30 Jan 2023 05:55:20 +0000 (05:55 +0000)]
fix `TraitItemKind::expect_type` docs

16 months agoUse `expect_{use,fn}` in a couple of places
Maybe Waffle [Mon, 30 Jan 2023 05:50:37 +0000 (05:50 +0000)]
Use `expect_{use,fn}` in a couple of places

16 months agoImprove ICE messages for `*::expect_*`
Maybe Waffle [Mon, 30 Jan 2023 05:50:06 +0000 (05:50 +0000)]
Improve ICE messages for `*::expect_*`

16 months agoend entry paragraph with a period (.)
Tshepang Mbambo [Mon, 30 Jan 2023 05:37:02 +0000 (07:37 +0200)]
end entry paragraph with a period (.)

16 months agouse a more descriptive name
Tshepang Mbambo [Mon, 30 Jan 2023 05:20:38 +0000 (07:20 +0200)]
use a more descriptive name

16 months agoAllow more deriving on packed structs.
Nicholas Nethercote [Mon, 21 Nov 2022 03:40:32 +0000 (14:40 +1100)]
Allow more deriving on packed structs.

Currently, deriving on packed structs has some non-trivial limitations,
related to the fact that taking references on unaligned fields is UB.

The current approach to field accesses in derived code:
- Normal case: `&self.0`
- In a packed struct that derives `Copy`: `&{self.0}`
- In a packed struct that doesn't derive `Copy`: `&self.0`

Plus, we disallow deriving any builtin traits other than `Default` for any
packed generic type, because it's possible that there might be
misaligned fields. This is a fairly broad restriction.

Plus, we disallow deriving any builtin traits other than `Default` for most
packed types that don't derive `Copy`. (The exceptions are those where the
alignments inherently satisfy the packing, e.g. in a type with
`repr(packed(N))` where all the fields have alignments of `N` or less
anyway. Such types are pretty strange, because the `packed` attribute is
not having any effect.)

This commit introduces a new, simpler approach to field accesses:
- Normal case: `&self.0`
- In a packed struct: `&{self.0}`

In the latter case, this requires that all fields impl `Copy`, which is
a new restriction. This means that the following example compiles under
the old approach and doesn't compile under the new approach.
```
 #[derive(Debug)]
 struct NonCopy(u8);

 #[derive(Debug)
 #[repr(packed)]
 struct MyType(NonCopy);
```
(Note that the old approach's support for cases like this was brittle.
Changing the `u8` to a `u16` would be enough to stop it working. So not
much capability is lost here.)

However, the other constraints from the old rules are removed. We can now
derive builtin traits for packed generic structs like this:
```
 trait Trait { type A; }

 #[derive(Hash)]
 #[repr(packed)]
 pub struct Foo<T: Trait>(T, T::A);
```
To allow this, we add a `T: Copy` bound in the derived impl and a `T::A:
Copy` bound in where clauses. So `T` and `T::A` must impl `Copy`.

We can now also derive builtin traits for packed structs that don't derive
`Copy`, so long as the fields impl `Copy`:
```
 #[derive(Hash)]
 #[repr(packed)]
 pub struct Foo(u32);
```
This includes types that hand-impl `Copy` rather than deriving it, such as the
following, that show up in winapi-0.2:
```
 #[derive(Clone)]
 #[repr(packed)]
 struct MyType(i32);

 impl Copy for MyType {}
```
The new approach is simpler to understand and implement, and it avoids
the need for the `unsafe_derive_on_repr_packed` check.

One exception is required for backwards-compatibility: we allow `[u8]`
fields for now. There is a new lint for this,
`byte_slice_in_packed_struct_with_derive`.

16 months agoAuto merge of #103019 - Kobzol:ci-multistage-python, r=Mark-Simulacrum
bors [Sun, 29 Jan 2023 22:14:18 +0000 (22:14 +0000)]
Auto merge of #103019 - Kobzol:ci-multistage-python, r=Mark-Simulacrum

Port pgo.sh to Python

This PR ports the `pgo.sh` multi stage build file from bash to Python, to make it easier to add new functionality and gather statistics. Main changes:

1) `pgo.sh` rewritten from Bash to Python. Jump from ~200 Bash LOC to ~650 Python LOC. Bash is, unsurprisingly, more concise for running scripts and binaries.
2) Better logging. Each separate stage is now clearly separated in logs, and the logs can be quickly grepped to find out which stage has completed or failed, and how long it took.
3) Better statistics. At the end of the run, there is now a table that shows the duration of the individual stages, along with a percentual ratio of the total workflow run:

```
2023-01-15T18:13:49.9896916Z stage-build INFO: Timer results
2023-01-15T18:13:49.9902185Z ---------------------------------------------------------
2023-01-15T18:13:49.9902605Z Build rustc (LLVM PGO):                 1815.67s (21.47%)
2023-01-15T18:13:49.9902949Z Gather profiles (LLVM PGO):              418.73s ( 4.95%)
2023-01-15T18:13:49.9903269Z Build rustc (rustc PGO):                 584.46s ( 6.91%)
2023-01-15T18:13:49.9903835Z Gather profiles (rustc PGO):             806.32s ( 9.53%)
2023-01-15T18:13:49.9904154Z Build rustc (LLVM BOLT):                1662.92s (19.66%)
2023-01-15T18:13:49.9904464Z Gather profiles (LLVM BOLT):             715.18s ( 8.46%)
2023-01-15T18:13:49.9914463Z Final build:                            2454.00s (29.02%)
2023-01-15T18:13:49.9914798Z Total duration:                         8457.27s
2023-01-15T18:13:49.9915305Z ---------------------------------------------------------
```

A sample run can be seen [here](https://github.com/rust-lang/rust/actions/runs/3923980164/jobs/6707932029).

I tried to keep the code compatible with Python 3.6 and don't use dependencies, which required me to reimplement some small pieces of functionality (like formatting bytes). I suppose that it shouldn't be so hard to upgrade to a newer Python or install dependencies in the CI container, but I'd like to avoid it if it won't be needed.

The code is in a single file `stage-build.py`, so it's a bit cluttered. I can also separate it into multiple files, although having it in a single file has some benefits. The code could definitely be nicer, but I'm a bit wary of introducing a lot of abstraction and similar stuff, as long as the code is stuffed into a single file.

Currently, the Python pipeline should faithfully mirror the bash pipeline one by one. After this PR, I'd like to try to optimize it, e.g. by caching the LLVM builds on S3.

r? `@Mark-Simulacrum`

16 months agoRemove obsolete comment.
Camille GILLOT [Sun, 29 Jan 2023 22:09:51 +0000 (22:09 +0000)]
Remove obsolete comment.

16 months agoReimplement NormalizeArrayLen.
Camille GILLOT [Sat, 21 Jan 2023 20:51:21 +0000 (20:51 +0000)]
Reimplement NormalizeArrayLen.

16 months agoAuto merge of #107451 - matthiaskrgr:rollup-m4ucfu8, r=matthiaskrgr
bors [Sun, 29 Jan 2023 19:29:49 +0000 (19:29 +0000)]
Auto merge of #107451 - matthiaskrgr:rollup-m4ucfu8, r=matthiaskrgr

Rollup of 11 pull requests

Successful merges:

 - #96763 (Fix maintainer validation message)
 - #106540 (Insert whitespace to avoid ident concatenation in suggestion)
 - #106763 (print why a test was ignored if its the only test specified)
 - #106769 (libtest: Print why a test was ignored if it's the only test specified.)
 - #106798 (Implement `signum` with `Ord`)
 - #107006 (Output tree representation on thir-tree)
 - #107078 (Update wording of invalid_doc_attributes docs.)
 - #107169 (Pass `--locked` to the x test tidy call)
 - #107431 (docs: remove colon from time header)
 - #107432 (rustdoc: remove unused class `has-srclink`)
 - #107448 (When stamp doesn't exist, should say Error, and print path to stamp file)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

16 months agoUpdate tests.
Mara Bos [Thu, 8 Sep 2022 10:45:17 +0000 (12:45 +0200)]
Update tests.

16 months agoDon't re-export private/unstable ArgumentV1 from `alloc`.
Mara Bos [Thu, 8 Sep 2022 10:26:27 +0000 (12:26 +0200)]
Don't re-export private/unstable ArgumentV1 from `alloc`.

16 months agofix typo in {Rc, Arc}::get_mut_unchecked docs
y21 [Sun, 29 Jan 2023 19:11:36 +0000 (20:11 +0100)]
fix typo in {Rc, Arc}::get_mut_unchecked docs