| Age | Commit message (Collapse) | Author | Lines |
|
|
|
|
|
expose the private item directly
|
|
couple of clippy::style changes
comparison_to_empty
iter_nth_zero
for_kv_map
manual_next_back
redundant_pattern
get_first
single_char_add_str
unnecessary_mut_passed
manual_map
manual_is_ascii_check
|
|
r=ozkanonur
rust-installer: Use env(1) in the shebang.
This fixes the case (e.g. *BSD) where bash is installed on the host system, but not at the typical location of /bin.
|
|
get_first
single_char_add_str
unnecessary_mut_passed
manual_map
manual_is_ascii_check
|
|
comparison_to_empty
iter_nth_zero
for_kv_map
manual_next_back
redundant_pattern
|
|
Migrate GUI colors test to original CSS color format
Follow-up of https://github.com/rust-lang/rust/pull/111459.
r? `@notriddle`
|
|
Fix test panics for submodule of book is not updated
Fixes #113963
|
|
clippy::style fixes
r? `@oli-obk`
filter_map_identity
iter_kv_map
needless_question_mark
redundant_at_rest_pattern
filter_next
derivable_impls
useless_format
|
|
match on chars instead of &strs for .split() or .strip_prefix()
|
|
|
|
remove redundant clones
|
|
|
|
filter_map_identity
iter_kv_map
needless_question_mark
redundant_at_rest_pattern
filter_next
derivable_impls
|
|
update Miri
r? `@ghost`
|
|
|
|
|
|
Rustup
|
|
|
|
|
|
Use `features()` over `features_untracked()` where possible
`Resolver` has a `TyCtxt` nowadays.
`@rustbot` label C-cleanup
|
|
Fix #[inline(always)] on closures with target feature 1.1
Fixes #108655. I think this is the most obvious solution that isn't overly complicated. The comment includes more justification, but I think this is likely better than demoting the `#[inline(always)]` to `#[inline]`, since existing code is unaffected.
|
|
Add Alias to smir
r? Spastorino
|
|
Support interpolated block for `try` and `async`
I'm putting this up for T-lang discussion, to decide whether or not they feel like this should be supported. This was raised in #112952, which surprised me. There doesn't seem to be a *technical* reason why we don't support this.
### Precedent:
This is supported:
```rust
macro_rules! always {
($block:block) => {
if true $block
}
}
fn main() {
always!({});
}
```
### Counterpoint:
However, for context, this is *not* supported:
```rust
macro_rules! unsafe_block {
($block:block) => {
unsafe $block
}
}
fn main() {
unsafe_block!({});
}
```
If this support for `async` and `try` with interpolated blocks is *not* desirable, then I can convert them to instead the same diagnostic as `unsafe $block` and make this situation a lot less ambiguous.
----
I'll try to write up more before T-lang triage on Tuesday. I couldn't find anything other than #69760 for why something like `unsafe $block` is not supported, and even that PR doesn't have much information.
Fixes #112952
|
|
|
|
|
|
Rollup of 6 pull requests
Successful merges:
- #112508 (Tweak spans for self arg, fix borrow suggestion for signature mismatch)
- #113901 (Get rid of subst-relate incompleteness in new solver)
- #113948 (Fix rustc-args passing issue in bootstrap)
- #113950 (Remove Scope::Elision from bound-vars resolution.)
- #113957 (Add regression test for issue #113941 - naive layout isn't refined)
- #113959 (Migrate GUI colors test to original CSS color format)
r? `@ghost`
`@rustbot` modify labels: rollup
|
|
|
|
Migrate GUI colors test to original CSS color format
Follow-up of https://github.com/rust-lang/rust/pull/111459.
r? `@notriddle`
|
|
Add regression test for issue #113941 - naive layout isn't refined
This PR adds a regression test for issue #113941 - `the naive layout isn't refined by the actual layout` based on the minimized repro https://github.com/rust-lang/rust/issues/113941#issuecomment-1646446769.
|
|
Remove Scope::Elision from bound-vars resolution.
This scope is a remnant of HIR-based lifetime resolution.
It's only role was to ensure that object lifetime resolution falled back to `'static`. This can be done using `ObjectLifetimeDefault` scope.
|
|
Fix rustc-args passing issue in bootstrap
Fixes #113178, r? `@jyn514`
|
|
Get rid of subst-relate incompleteness in new solver
We shouldn't need subst-relate if we have bidirectional-normalizes-to in the new solver.
The only potential issue may happen if we have an unconstrained projection like `<Wrapper<?0> as Trait>::Assoc == <Wrapper<T> as Trait>::Assoc` where they both normalize to something that doesn't mention any substs, which would possibly prefer `?0 = T` if we fall back to subst-relate. But I'd prefer if we remove incompleteness until we can determine some case where we need them, and the bidirectional-normalizes-to seems better to have in general.
I can update https://github.com/rust-lang/trait-system-refactor-initiative/issues/26 and https://github.com/rust-lang/trait-system-refactor-initiative/issues/25 once this lands.
r? `@lcnr`
|
|
r=cjgillot
Tweak spans for self arg, fix borrow suggestion for signature mismatch
1. Adjust a suggestion message that was annoying me
2. Fix #112503 by recording the right spans for the `self` part of the `&self` 0th argument
3. Remove the suggestion for adjusting a trait signature on type mismatch, bc that's gonna probably break all the other impls of the trait even if it fixes its one usage :sweat_smile:
|
|
Reuse the MIR validator for MIR inlining
Instead of having the inliner home-cook its own validation, we just check that the substituted MIR body passes the regular validation.
The MIR validation is first split in two: control flow validation (MIR syntax and CFG invariants) and type validation (subtyping relationship in assignments and projections). Only the latter can be affected by instantiating type parameters.
|
|
|
|
|
|
|
|
Sync rustc_codegen_cranelift
This time Cranelift has been updated to 0.98. A couple of bugs have been fixed and a decent amount of x86 vendor intrinsics have been implemented.
r? `@ghost`
`@rustbot` label +A-codegen +A-cranelift +T-compiler
|
|
|
|
sync_cg_clif-2023-07-22
|
|
Add BITS, from_bits, to_bits to IP addresses
ACP: rust-lang/libs-team#235
Tracking issue: #113744
|
|
|
|
|
|
Rollup of 6 pull requests
Successful merges:
- #112490 (Remove `#[cfg(all())]` workarounds from `c_char`)
- #113252 (Update the tracking issue for `const_cstr_from_ptr`)
- #113442 (Allow limited access to `OsString` bytes)
- #113876 (fix docs & example for `std::os::unix::prelude::FileExt::write_at`)
- #113898 (Fix size_hint for EncodeUtf16)
- #113934 (Multibyte character removal in String::pop and String::remove doctests)
r? `@ghost`
`@rustbot` modify labels: rollup
|
|
|
|
|
|
|
|
|