-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 9 pull requests #120794
Rollup of 9 pull requests #120794
Commits on Feb 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8148053 - Browse repository at this point
Copy the full SHA 8148053View commit details
Commits on Feb 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e1826bf - Browse repository at this point
Copy the full SHA e1826bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b2a824 - Browse repository at this point
Copy the full SHA 6b2a824View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2a0d11 - Browse repository at this point
Copy the full SHA c2a0d11View commit details
Commits on Feb 3, 2024
-
std::thread::available_parallelism merging linux/android/freebsd version
FreeBSD 13.1 had introduced a sched cpu affinity compatibility layer with Linux. 13.0 and even 13.1 being EOL, we can simplify here.
Configuration menu - View commit details
-
Copy full SHA for 0bfcafd - Browse repository at this point
Copy the full SHA 0bfcafdView commit details
Commits on Feb 6, 2024
-
That is, change `diagnostic_outside_of_impl` and `untranslatable_diagnostic` from `allow` to `deny`, because more than half of the compiler has be converted to use translated diagnostics. This commit removes more `deny` attributes than it adds `allow` attributes, which proves that this change is warranted.
Configuration menu - View commit details
-
Copy full SHA for 0ac1195 - Browse repository at this point
Copy the full SHA 0ac1195View commit details -
A drive-by rewrite of give_region_a_name()
This rewrite makes the cache-updating nature of the function slightly clearer, using the Entry API into the hash table for region names to capture the update-insert nature of the method. May be marginally more efficient since it only runtime-borrows the map once, but in this context the performance impact is almost certainly completely negligible.
Configuration menu - View commit details
-
Copy full SHA for ad3d04c - Browse repository at this point
Copy the full SHA ad3d04cView commit details
Commits on Feb 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cd21b1d - Browse repository at this point
Copy the full SHA cd21b1dView commit details
Commits on Feb 8, 2024
-
Reorder the diagnostic API methods.
The current order is almost perfectly random. This commit puts them into a predictable order in their own impl block, going from the highest level (`Block`) to the lowest (`Expect`). Within each level this is the order: - struct_err, err - struct_span_err, span_err - create_err, emit_err The first one in each pair creates a diagnostic, the second one creates *and* emits a diagnostic. Not every method is present for every level. The diff is messy, but other than moving methods around, the only thing it does is create the new `impl DiagCtxt` block with its own comment.
Configuration menu - View commit details
-
Copy full SHA for 0e4b55b - Browse repository at this point
Copy the full SHA 0e4b55bView commit details -
Fix inconsistencies in the diagnostic API methods.
- Remove low-value comments about functionality that is obvious. - Add missing `track_caller` attributes -- every method should have one. - Adjust `rustc_lint_diagnostic` attributes. Every method involving a `impl Into<DiagnosticMessage>` or `impl Into<SubdiangnosticMessage>` argument should have one, except for those producing bugs, which aren't user-facing.
Configuration menu - View commit details
-
Copy full SHA for d1920a7 - Browse repository at this point
Copy the full SHA d1920a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 795be51 - Browse repository at this point
Copy the full SHA 795be51View commit details -
also try to normalize opaque types in alias-relate
with this, alias-relate treats all aliases the same way and it can be used for structural normalization.
Configuration menu - View commit details
-
Copy full SHA for eb0d70e - Browse repository at this point
Copy the full SHA eb0d70eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3eef669 - Browse repository at this point
Copy the full SHA 3eef669View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ced269 - Browse repository at this point
Copy the full SHA 4ced269View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45377df - Browse repository at this point
Copy the full SHA 45377dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9224387 - Browse repository at this point
Copy the full SHA 9224387View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41f9b57 - Browse repository at this point
Copy the full SHA 41f9b57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11bd2ea - Browse repository at this point
Copy the full SHA 11bd2eaView commit details -
Rollup merge of rust-lang#113026 - jieyouxu:run-make-v2, r=bjorn3
Introduce `run-make` V2 infrastructure, a `run_make_support` library and port over 2 tests as example See [issue rust-lang#40713: Switch run-make tests from Makefiles to rust](rust-lang#40713) for more context. ### Basic Description of `run-make` V2 `run-make` V2 aims to eliminate the dependency on `make` and `Makefile`s for building `run-make`-style tests. Makefiles are replaced by *recipes* (`rmake.rs`). The current implementation runs `run-make` V2 tests in 3 steps: 1. We build the support library `run_make_support` which the `rmake.rs` recipes depend on as a tool dylib. 2. We build the recipe `rmake.rs` and link in the support library. 3. We run the recipe to build and run the tests. `rmake.rs` is basically a replacement for `Makefile`, and allows running arbitrary Rust code. ### Planned Changes - [x] Get rid of the builder style patterns in `rmake_support` and instead use something like ```rust let output = rustc!(scx, "--cfg x -Cprefer-dynamic -Csymbol-mangling-version=legacy - Zunstable-options"); ``` as per Nils' suggestion. This can probably use something like `xshell`. - [x] Make `run_make_support` into a proper crate so it can have external dependencies like `xshell`. - [x] Instead of having an entire alternative directory `run-make-v2`, change how V2 tests are collected based on presence of `rmake.rs` recipe file. This should ease migration and prevent git history from being messed up by big moves. ### Disclaimer The current implementation is very much a **very very rough prototype** just to get the 2 example tests working. I would appreciate any feedback on the design and implementation.
Configuration menu - View commit details
-
Copy full SHA for 53ddae6 - Browse repository at this point
Copy the full SHA 53ddae6View commit details -
Rollup merge of rust-lang#120549 - lcnr:errs-showcase, r=compiler-errors
modify alias-relate to also normalize ambiguous opaques allows a bunch of further cleanups and generally simplifies the type system. To handle rust-lang/trait-system-refactor-initiative#8 we'll have to add a some additional complexity to the `(Alias, Infer)` branches in alias-relate, so removing the opaque type special case here is really valuable. It does worsen `deduce_closure_signature` and friends even more as they now receive an inference variable which is only constrained via an `AliasRelate` goal. These probably have to look into alias relate goals somehow. Leaving that for a future PR as this is something we'll have to tackle regardless. r? `@compiler-errors`
Configuration menu - View commit details
-
Copy full SHA for 34b378e - Browse repository at this point
Copy the full SHA 34b378eView commit details -
Rollup merge of rust-lang#120589 - devnexen:cpuaff_fbsd_upd, r=m-ou-se
std::thread::available_parallelism merging linux/android/freebsd version FreeBSD 13.1 had introduced a sched cpu affinity compatibility layer with Linux. 13.0 and even 13.1 being EOL, we can simplify here.
Configuration menu - View commit details
-
Copy full SHA for ee7081c - Browse repository at this point
Copy the full SHA ee7081cView commit details -
Rollup merge of rust-lang#120590 - compiler-errors:dead, r=Nilstrieb
Remove unused args from functions `#[instrument]` suppresses the unused arguments from a function, *and* suppresses unused methods too! This PR removes things which are only used via `#[instrument]` calls, and fixes some other errors (privacy?) that I will comment inline. It's possible that some of these arguments were being passed in for the purposes of being instrumented, but I am unconvinced by most of them.
Configuration menu - View commit details
-
Copy full SHA for 1ee0cfe - Browse repository at this point
Copy the full SHA 1ee0cfeView commit details -
Rollup merge of rust-lang#120596 - GuillaumeGomez:jump-to-def-non-loc…
…al-link, r=notriddle [rustdoc] Correctly generate path for non-local items in source code pages While browsing some crates using the "jump to def" feature, I realized that a lot of items didn't have a link generated. The reason is because we only cache foreign items if they appear in the documented API. This means that for the others, we need to infer them. r? `@notriddle`
Configuration menu - View commit details
-
Copy full SHA for adcb9b9 - Browse repository at this point
Copy the full SHA adcb9b9View commit details -
Rollup merge of rust-lang#120693 - nnethercote:invert-diagnostic-lint…
…s, r=davidtwco Invert diagnostic lints. That is, change `diagnostic_outside_of_impl` and `untranslatable_diagnostic` from `allow` to `deny`, because more than half of the compiler has been converted to use translated diagnostics. This commit removes more `deny` attributes than it adds `allow` attributes, which proves that this change is warranted. r? `@davidtwco`
Configuration menu - View commit details
-
Copy full SHA for b5dc4cf - Browse repository at this point
Copy the full SHA b5dc4cfView commit details -
Rollup merge of rust-lang#120704 - amandasystems:silly-region-name-re…
…write, r=compiler-errors A drive-by rewrite of `give_region_a_name()` This drive-by rewrite makes the cache-updating nature of the method clearer, using the Entry API into the hash table for region names to capture the update-insert nature of the method. May be marginally more efficient since it only runtime-borrows and indexes the map once, but in this context the performance impact is almost certainly completely negligible. Note that this commit should preserve all externally visible behaviour. Notably, it preserves the debug logging: 1. printing even in the case of a `None` for the new computed name, and 2. only printing on new values, begin silent on reused values
Configuration menu - View commit details
-
Copy full SHA for ba8c83d - Browse repository at this point
Copy the full SHA ba8c83dView commit details -
Rollup merge of rust-lang#120750 - compiler-errors:itctx-by-val, r=cj…
…gillot No need to take `ImplTraitContext` by ref We used to mutate `ImplTraitContext`, so it used to be `&mut` mutable ref. Then I think it used to have non-`Copy` data in it, so we took it by `&` ref. Now, none of that remains, so just copy it around.
Configuration menu - View commit details
-
Copy full SHA for b8e1a51 - Browse repository at this point
Copy the full SHA b8e1a51View commit details -
Rollup merge of rust-lang#120765 - nnethercote:reorder-diag-API, r=co…
…mpiler-errors Reorder diagnostics API The totally random ordering of diagnostic methods in `DiagCtxt` has been low-key driving me crazy for a while now. r? `@compiler-errors`
Configuration menu - View commit details
-
Copy full SHA for 4d96b2d - Browse repository at this point
Copy the full SHA 4d96b2dView commit details