| Age | Commit message (Collapse) | Author | Lines |
|
Upgrade librustc_macros dependencies
Passed tests on Linux.
|
|
Sort error codes in librustc_passes
This is just a little cleanup.
|
|
Deny specializing items not in the parent impl
Part of https://github.com/rust-lang/rust/issues/29661 (https://github.com/rust-lang/rfcs/pull/2532). At least sort of?
This was discussed in https://github.com/rust-lang/rust/pull/61812#discussion_r300504114 and is needed for that PR to make progress (fixing an unsoundness).
One annoyance with doing this is that it sometimes requires users to copy-paste a provided trait method into an impl just to mark it `default` (ie. there is no syntax to forward this impl method to the provided trait method).
cc @Centril and @arielb1
|
|
|
|
- the old interface between HermitCore and the Rust Standard Library
based on a small C library (newlib)
- remove this interface and call directly the unikernel
- remove the dependency to the HermitCore linker
- use rust-lld as linker
|
|
|
|
|
|
r=Mark-Simulacrum
Optimize integral pattern matching
Various improvements to integral pattern matching. Together they reduce instruction counts for `unicode_normalization-check-clean` by about 16%.
r? @Mark-Simulacrum
|
|
It's now unused, even with -Zquery-dep-graph
|
|
|
|
Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
|
|
Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
|
|
Make re-export collection deterministic
Fixes https://github.com/rust-lang/rust/issues/65036
Previously, we were using an `FxHashMap` to collect module re-exports.
However, re-exports end up getting serialized into crate metadata, which
means that metadata generation was non-deterministic. This resulted in
spurious error messages changes (e.g. PR #64906) due to pretty-printing
implicitly depending on the order of re-exports when computing the
proper path to show to the user.
See #65042 for a long-term strategy to detect this kind of issue
|
|
|
|
|
|
Revert #63649 - "Upgrade Emscripten targets to use upstream LLVM backend"
This change caused the runtime of the linux-asmjs builder to nearly double from 2+ hours to about 4 hours, which happens to be the bors timeout. (It made it in barely under 4 hours when it was merged.) This is causing timeouts on all new changes.
This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing
changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
|
|
lint: extern non-exhaustive types are improper
This PR makes the `improper_ctype` lint trigger for non-exhaustive types when those types aren't defined in the current crate, as per [this comment](https://github.com/rust-lang/rust/issues/44109#issuecomment-537583344).
cc @Centril
|
|
Fix typo on `now()` comments
Fix typo, update words, and remove some redundant word.
Also rustfmt on the rest of the file (hope this is okay :)
revival of #61433
r? @kennytm
|
|
Replace some instances of `as *[const | mut] _` with `.cast()`
While in `codegen_llvm`, noticed some places for the recent `pointer::cast` method.
|
|
Account for macro invocation in `let mut $pat` diagnostic.
Fixes https://github.com/rust-lang/rust/issues/65122.
r? @estebank
|
|
Update the documented default of -Z mutable-noalias
It has been fully disabled by default since #54639.
|
|
Remove unneeded visit_statement definition
r? @oli-obk
|
|
Fix lonely backtick
That backtick won't be sad anymore
|
|
Allow unused attributes to avoid incremental bug
cc #65023
This isn't labeled as fixing that issue because it's not really a fix, just a patch.
|
|
Split out some passes from librustc
This is just moving them out to librustc_passes -- I've not measured compile time or run time. I don't expect any significant impact, but this seems prudent regardless.
|
|
Replace GeneratorSubsts with SubstsRef
Closes #42340
r? @nikomatsakis
|
|
wesleywiser:fix_const_prop_ice_on_polymorphic_promoted_mir, r=oli-obk
[const-prop] Fix ICE when trying to eval polymorphic promoted MIR
Fixes #64908
r? @oli-obk
cc @nikomatsakis @pnkfelix
|
|
Do not ICE when dereferencing non-Copy raw pointer
CC #52262. Confirmed to remove the unnecessary ICE, but without a repro case.
|
|
When encountering chained operators use heuristics to recover from bad turbofish
|
|
std: Reduce checks for `feature = "backtrace"`
This is a stylistic change to libstd to reduce the number of checks of
`feature = "backtrace"` now that we unconditionally depend on the
`backtrace` crate and rely on it having an empty implementation.
otherwise.
|
|
Stabilize UdpSocket::peer_addr
Fixes #59127
|
|
Stabilize `Option::as_deref` and `Option::as_deref_mut`
The tracking issue https://github.com/rust-lang/rust/issues/50264 still has unresolved question for the corresponding `Result` methods.
|
|
r=alexcrichton"
This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing
changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
|
|
Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
|
|
|
|
|
|
|
|
|
|
Now that `Resolutions` has a deterministic iteration order, it's no
longer necessary to sort its entries before iterating over them
|
|
Previously, we were using an `FxHashMap` to collect module re-exports.
However, re-exports end up getting serialized into crate metadata, which
means that metadata generation was non-deterministic. This resulted in
spurious error messages changes (e.g. PR #64906) due to pretty-printing
implicitly depending on the order of re-exports when computing the
proper path to show to the user.
See #65042 for a long-term strategy to detect this kind of issue
|
|
the measureme tools summarize and crox do not alow a event to go out of scope of the parent event
codegen_and_optimize_crate ends after the codegen_crate event
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This commit makes the `improper_ctype` lint trigger for non-exhaustive
types when those types aren't defined in the current crate.
Signed-off-by: David Wood <david@davidtw.co>
|