| Age | Commit message (Collapse) | Author | Lines |
|
When a `yield` is outside of a generator, check its value regardless to
avoid an ICE while trying to get all locals' types in writeback.
Fix #78653.
|
|
Only store a LocalDefId in some HIR nodes
Some HIR nodes are guaranteed to be HIR owners: Item, TraitItem, ImplItem, ForeignItem and MacroDef.
As a consequence, we do not need to store the `HirId`'s `local_id`, and we can directly store a `LocalDefId`.
This allows to avoid a bit of the dance with `tcx.hir().local_def_id` and `tcx.hir().local_def_id_to_hir_id` mappings.
|
|
Rollup of 6 pull requests
Successful merges:
- #82145 (Fix ES5 errors (IE11))
- #82160 (Fix typo in rustc_infer::infer::UndoLog)
- #82161 (Add long explanation for E0545)
- #82163 (avoid full-slicing slices)
- #82175 (validation: fix invalid-fn-ptr error message)
- #82184 ([Minor] Update discriminant_value docs)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
|
|
[Minor] Update discriminant_value docs
Updated for new `DiscriminantKind` trait.
|
|
validation: fix invalid-fn-ptr error message
https://github.com/rust-lang/rust/pull/82061 changed the code here to print an `ImmTy` instead of a `ScalarMaybeUninit`; that was an accident. So go back to printing a `ScalarMaybeUninit`.
r? ```@oli-obk```
|
|
avoid full-slicing slices
If we already have a slice, there is no need to get another full-range slice from that, just use the original.
clippy::redundant_slicing
|
|
r=GuillaumeGomez
Add long explanation for E0545
Helps with #61137
|
|
Fix typo in rustc_infer::infer::UndoLog
Also use double quotes.
|
|
Fix ES5 errors (IE11)
rustdoc is supposed to run on IE11 but someone reported me that it wasn't. I just confirmed it by using `es-check` with the `es5` option like this:
```
$ es-check es5 src/librustdoc/html/static/*.js
```
The PR fixes those issues and add CI checks to prevent regressions.
`@Mark-Simulacrum:` I added checks in the CI, but not sure if it's the correct way to do it. Any help on that side would be very appreciated!
r? `@Nemo157`
|
|
update Miri
This pulls in the recent cargo-miri fixes by `@hyd-dev.`
Cc `@rust-lang/miri` r? `@ghost`
Fixes https://github.com/rust-lang/rust/issues/82173
|
|
|
|
|
|
|
|
|
|
no need to check assertion on fast path as will always hold.
V small change. Easy to review though!
|
|
Ensures `make` tests run under /bin/dash (if available), like CI, and fixes a Makefile
Note: This cherrypicks #81688 (`@pnkfelix)`
Updates `tools.mk` to explicitly require `SHELL := /bin/dash`, since CI uses `dash` but other environments (including developer local machines) may default to `bash`.
Replaces bash-specific shell command in one Makefile with a dash-compatible alternative, and re-enables the affected Makefile test.
Removes apparently redundant definition of `UNAME`.
Also see: [zulip discussion thread](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/how.20to.20run.2Fbless.20src.2Ftest.2Frun-make-fulldeps.2Fcoverage.20.3F)
r? `@pnkfelix`
FYI: `@wesleywiser` `@tmandry`
|
|
Rollup of 19 pull requests
Successful merges:
- #81503 (Suggest to create a new `const` item if the `fn` in the array is a `const fn`)
- #81897 (Add match pattern diagnostics regression test)
- #81975 (Seal the CommandExt, OsStrExt and OsStringExt traits)
- #82009 (const_generics: Dont evaluate array length const when handling errors)
- #82060 (Fix typos in BTreeSet::{first, last} docs)
- #82061 (CTFE validation: catch ReadPointerAsBytes and better error)
- #82063 (Fixed minor typo in catch_unwind docs)
- #82067 (const_generics: Fix incorrect ty::ParamEnv::empty() usage)
- #82077 (Edit `rustc_arena::DropArena` docs)
- #82096 (Fix a typo)
- #82106 (Remove unnecessary `Option` in `default_doc`)
- #82107 (expand: Some cleanup)
- #82118 (Add missing env!-decl variant)
- #82119 (Fix typo in link to CreateSymbolicLinkW documentation.)
- #82120 (Stabilize Arguments::as_str)
- #82129 (Remove redundant bool_to_option feature gate)
- #82133 (Update link for extern prelude.)
- #82141 (32-bit ARM: Emit `lr` instead of `r14` when specified as an `asm!` output register.)
- #82147 (:arrow_up: rust-analyzer)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
|
|
If we already have a slice, there is no need to get another full-range slice from that, just use the original.
clippy::redundant_slicing
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Items are guaranteed to be HIR owner.
|
|
|
|
|
|
|
|
|
|
|
|
Also use double quotes.
|
|
:arrow_up: rust-analyzer
|
|
32-bit ARM: Emit `lr` instead of `r14` when specified as an `asm!` output register.
On 32-bit ARM platforms, the register `r14` has the alias `lr`. When used as an output register in `asm!`, rustc canonicalizes the name to `r14`. LLVM only knows the register by the name `lr`, and rejects it. This changes rustc's LLVM code generation to output `lr` instead.
closes #82052
r? ``@nagisa``
|
|
Update link for extern prelude.
There was some reorganization in the reference as part of https://github.com/rust-lang/reference/pull/937.
|
|
Remove redundant bool_to_option feature gate
|
|
Stabilize Arguments::as_str
Closes #74442
|
|
Fix typo in link to CreateSymbolicLinkW documentation.
|
|
Add missing env!-decl variant
Resolves #82117
|
|
expand: Some cleanup
See individual commits for details.
r? ``@Aaron1011``
|
|
Remove unnecessary `Option` in `default_doc`
Previously, there were two different ways to encode the same info: `None` or
`Some(&[])`. Now there is only one way, `&[]`.
|
|
Fix a typo
This pull request fixes a typo.
|
|
Edit `rustc_arena::DropArena` docs
- Add a "Safety" section, edit formatting for clarity
- Add missing punctuation in code comments
|
|
const_generics: Fix incorrect ty::ParamEnv::empty() usage
Fixes #80561
Not sure if I should keep the `debug!(..)`s or not but its the second time I've needed them so they sure seem useful lol
cc ``@lcnr``
r? ``@oli-obk``
|
|
Fixed minor typo in catch_unwind docs
Changed "a an exception" to "an exception" inside of the `std::panic::catch_unwind` docs.
|
|
CTFE validation: catch ReadPointerAsBytes and better error
r? ``@oli-obk``
Fixes https://github.com/rust-lang/rust/issues/79690
Cc https://github.com/rust-lang/miri/issues/1706
|
|
Fix typos in BTreeSet::{first, last} docs
map -> set
|
|
const_generics: Dont evaluate array length const when handling errors
Fixes #79518
Fixes #78246
cc ````@lcnr````
This was ICE'ing because we dont pass in the correct ``ParamEnv`` which meant that there was no ``Self: Foo`` predicate to make ``Self::Assoc`` well formed which caused an ICE when trying to normalize ``Self::Assoc`` in the mir interpreter
r? ````@varkor````
|