| Age | Commit message (Collapse) | Author | Lines |
|
|
|
and table lookups on each access of crate metadata.
|
|
|
|
|
|
`#[track_caller]` feature gate (RFC 2091 1/N)
RFC text: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md
Tracking issue: https://github.com/rust-lang/rust/issues/47809
I started with @ayosec's commit to add the feature gate with tests and rebased it onto current master. I fixed up some tidy lints and added a test.
|
|
|
|
Tracking issue: https://github.com/rust-lang/rust/issues/61129
|
|
Ignore `ExprKind::DropTemps` for some ref suggestions
Introduce `Expr::peel_drop_temps()` to ignore `ExprKind::DropTemps` for suggestions that depend on the `ExprKind` for accuracy.
|
|
Add check for missing tests for error codes
Fixes #64811.
r? @Mark-Simulacrum
|
|
r=michaelwoerister
Remove -Zprofile-queries
r? @michaelwoerister
Per [zulip thread](https://zulip-archive.rust-lang.org/131828tcompiler/57361RemoveZprofilequeries.html).
|
|
Warn if include macro fails to include entire file
This currently introduces an error, mainly because that was just simpler, and I'm not entirely certain if we can introduce a lint without an RFC and such.
This is primarily to get feedback on the approach and overall aim -- in particular, do we think this is helpful? If so, we probably will need lang-team sign off and decide if it should be an error (as currently introduced by this PR), a lint, or a warning.
r? @petrochenkov
cc https://github.com/rust-lang/rust/issues/35560
|
|
|
|
|
|
|
|
|
|
function pointer const parameters.
|
|
|
|
Remove query-related macros
The query system has a few macros that only have one or two call sites, and I find they hurt readability. This PR removes them.
r? @michaelwoerister
|
|
r=michaelwoerister
Remove loaded_from_cache map from DepGraph
It's now unused, even with -Zquery-dep-graph
From https://github.com/rust-lang/rust/pull/63756/files#r316039379 -- it'll simplify that PR to get this landed separately so we can just remove some of the code that it touches.
r? @Zoxc or @michaelwoerister
|
|
Add long error explanation for E0495
Part of #61137.
|
|
This example failed to compile because of implicit `Sized` bound
for `A` parameter that wasn't required by `Trait`.
|
|
Avoid `SmallVec::collect`
We can get sizeable speed-ups by avoiding `SmallVec::collect` when the number of elements is small.
|
|
It's the same as `InferCtxt::commit_unconditionally()` except that it
is passed a snapshot and has a worse name.
The commit also changes `commit_unconditionally()` to receive a
snapshot, for consistency with `commit_if_ok()` and `probe()`.
|
|
|
|
fix bug in folding for constants
These was a bug in the folding for constants that caused it to overlook bound regions. This branch includes some other little things that I did while trying to track the bug down.
r? @oli-obk
|
|
Fix const generic arguments not displaying in types mismatch diagnostic
Fixes #61395
|
|
|
|
See also https://github.com/rust-lang/rustc-rayon/pull/3
|
|
|
|
|
|
Prevents number collision with another approved PR.
|
|
|
|
|
|
- The attribute is behind a feature gate.
- Error if both #[naked] and #[track_caller] are applied to the same function.
- Error if #[track_caller] is applied to a non-function item.
- Error if ABI is not "rust"
- Error if #[track_caller] is applied to a trait function.
Error codes and descriptions are pending.
|
|
Also, make `-Zverbose` dump all info about constants.
|
|
In such a case, the `Infer` is converted to a `Bound`
|
|
Existing code could overlook types/substitutions that are
embedded in (e.g.) an unevaluated constant.
|
|
Didn't find any bugs here, but you really don't want these to fall out
of sync.
|
|
Rollup of 4 pull requests
Successful merges:
- #63948 (Add feature gate for raw_dylib.)
- #65137 (remove event that causes panics in measureme tools)
- #65164 (Add long error explanation for E0566)
- #65173 (Update reference)
Failed merges:
r? @ghost
|
|
|
|
Add long error explanation for E0566
Part of #61137.
|
|
Remove as_str if the type is already &str
Fix https://github.com/rust-lang/rust/issues/62642
r? @estebank
do you think the suggestion tip is good enough?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rollup of 5 pull requests
Successful merges:
- #65095 (Sort error codes in librustc_passes)
- #65101 (Upgrade librustc_macros dependencies)
- #65142 (Ensure that associated `async fn`s have unique fresh param names)
- #65155 (Use shorthand initialization in rustdoc)
- #65158 (Remove dead module)
Failed merges:
r? @ghost
|