about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-07-24Improve code readabilityGuillaume Gomez-32/+27
2023-07-24Add regression test for #81141Guillaume Gomez-0/+34
2023-07-24If re-export is private, get the next item until a public one is found or ↵Guillaume Gomez-3/+93
expose the private item directly
2023-07-24Auto merge of #113978 - matthiaskrgr:clippy_072023_style, r=fee1-deadbors-32/+27
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
2023-07-24Auto merge of #113940 - inferiorhumanorgans:installer-no-hardcode-bash-path, ↵bors-1/+1
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.
2023-07-23more clippy::style fixes:Matthias Krüger-20/+12
get_first single_char_add_str unnecessary_mut_passed manual_map manual_is_ascii_check
2023-07-23fix some clippy::style findingsMatthias Krüger-12/+15
comparison_to_empty iter_nth_zero for_kv_map manual_next_back redundant_pattern
2023-07-23Auto merge of #113976 - GuillaumeGomez:migrate-gui-test-color-23, r=notriddlebors-2/+2
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? `@notriddle`
2023-07-23Auto merge of #113965 - chenyukang:yukang-fix-113963-panic, r=ozkanonurbors-9/+19
Fix test panics for submodule of book is not updated Fixes #113963
2023-07-23Auto merge of #113975 - matthiaskrgr:clippy_07_2023, r=fee1-deadbors-32/+20
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
2023-07-23Auto merge of #113973 - matthiaskrgr:charstr, r=cjgillotbors-7/+7
match on chars instead of &strs for .split() or .strip_prefix()
2023-07-23Migrate GUI colors test to original CSS color formatGuillaume Gomez-2/+2
2023-07-23Auto merge of #113972 - matthiaskrgr:clones_123, r=cjgillotbors-4/+4
remove redundant clones
2023-07-23fix clippy::useless_formatMatthias Krüger-16/+12
2023-07-23fix couple of clippy findings:Matthias Krüger-16/+8
filter_map_identity iter_kv_map needless_question_mark redundant_at_rest_pattern filter_next derivable_impls
2023-07-23Auto merge of #113974 - RalfJung:miri, r=RalfJungbors-100/+166
update Miri r? `@ghost`
2023-07-23match on chars instead of &strs for .split() or .strip_prefix()Matthias Krüger-7/+7
2023-07-23remove redundant clonesMatthias Krüger-4/+4
2023-07-23Auto merge of #2990 - RalfJung:rustup, r=RalfJungbors-1747/+1917
Rustup
2023-07-23Merge from rustcRalf Jung-1746/+1916
2023-07-23Preparing for merge from rustcRalf Jung-1/+1
2023-07-23Auto merge of #113961 - fmease:fewer-features_untracked, r=compiler-errorsbors-5/+2
Use `features()` over `features_untracked()` where possible `Resolver` has a `TyCtxt` nowadays. `@rustbot` label C-cleanup
2023-07-23Auto merge of #111836 - calebzulawski:target-feature-closure, r=workingjubileebors-1/+67
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.
2023-07-22Auto merge of #113943 - ericmarkmartin:smir-ty-alias, r=spastorinobors-1/+51
Add Alias to smir r? Spastorino
2023-07-22Auto merge of #112953 - compiler-errors:interpolated-block-exprs, r=WaffleLapkinbors-4/+45
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
2023-07-22add docs for AliasKind::InherentEric Mark Martin-0/+1
2023-07-22add Alias for smirEric Mark Martin-1/+50
2023-07-22Auto merge of #113968 - matthiaskrgr:rollup-7vdfcba, r=matthiaskrgrbors-110/+217
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
2023-07-22Use features() over features_untracked() where possibleLeón Orell Valerian Liehr-5/+2
2023-07-22Rollup merge of #113959 - GuillaumeGomez:migrate-gui-test-color-22, r=notriddleMatthias Krüger-24/+25
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? `@notriddle`
2023-07-22Rollup merge of #113957 - Urgau:regression-test-issue-113941, r=dtolnayMatthias Krüger-0/+13
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.
2023-07-22Rollup merge of #113950 - cjgillot:clean-resolve, r=jackh726Matthias Krüger-38/+21
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.
2023-07-22Rollup merge of #113948 - chenyukang:yukang-fix-113178-bootstrap, r=clubby789Matthias Krüger-0/+7
Fix rustc-args passing issue in bootstrap Fixes #113178, r? `@jyn514`
2023-07-22Rollup merge of #113901 - compiler-errors:only-bidi-norm, r=lcnrMatthias Krüger-9/+12
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`
2023-07-22Rollup merge of #112508 - compiler-errors:trait-sig-lifetime-sugg-ice, ↵Matthias Krüger-39/+139
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:
2023-07-22Auto merge of #113853 - cjgillot:split-validator, r=compiler-errorsbors-305/+320
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.
2023-07-23Fix test panics for submodule of book is not updatedyukang-9/+19
2023-07-22Get rid of subst-relate incompleteness in new solverMichael Goulet-9/+12
2023-07-22Support interpolated block for try and asyncMichael Goulet-4/+45
2023-07-22Auto merge of #113960 - bjorn3:sync_cg_clif-2023-07-22, r=bjorn3bors-170/+669
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
2023-07-22Fix tidy errorbjorn3-0/+1
2023-07-22Merge commit '1eded3619d0e55d57521a259bf27a03906fdfad0' into ↵bjorn3-170/+668
sync_cg_clif-2023-07-22
2023-07-22Auto merge of #113746 - clarfonthey:ip_bits, r=thomccbors-52/+119
Add BITS, from_bits, to_bits to IP addresses ACP: rust-lang/libs-team#235 Tracking issue: #113744
2023-07-22Migrate GUI colors test to original CSS color formatGuillaume Gomez-24/+25
2023-07-22Update to Cranelift 0.98bjorn3-36/+34
2023-07-22Auto merge of #113954 - matthiaskrgr:rollup-e2r9suz, r=matthiaskrgrbors-25/+177
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
2023-07-22Fix rustc test suitebjorn3-0/+6
2023-07-22Rustup to rustc 1.73.0-nightly (0308df23e 2023-07-21)bjorn3-14/+23
2023-07-22Add regression test for issue #113941 - naive layout isn't refinedUrgau-0/+13
2023-07-22Sync from rust 0308df23e621e783e31a27ca5beaa01b9df60d4abjorn3-65/+70