Repository navigation
Rollup of 6 pull requests - #166251
Closed
JonathanBrouwer wants to merge 13 commits into
Closed
Rollup of 6 pull requests#166251JonathanBrouwer wants to merge 13 commits into
JonathanBrouwer wants to merge 13 commits into
Conversation
…ark-Simulacrum compiletest: Add testing for lint machinery at runtime While implementing rust-lang#157707, I noticed that we don't have 'runtime' tests for the diagnostic machinery (i.e. we test the derive macros themselves, but not their output when emitted). This introduces a new way to test this machinery. - Add `//@ aux-lint: file.rs`, which builds a lint library in `auxiliary/file.rs` - Lint libraries link with `rustc_private`, and export a `extern "C" fn register_lints(...)` - A new `compiletest-lint-driver` wraps rustc and installs the provided lints when building the test Included is a simple demo lint for example _AI Disclosure: I used an LLM to plan out the broad structure of the machinery and identify issues; all code in this PR is written by hand_
…nstable-deprecated, r=GuillaumeGomez rustdoc: add emoji icons for unstable and deprecated to search results fixes rust-lang#149943 r? @GuillaumeGomez
…bjorn3 RISC-V: enable relax target feature by default This PR adds `+relax` to the default target features for all RISC-V targets to enable emission of linker relaxations by LLVM. It does not enable "global pointer" relaxations; see rust-lang#163890 for more context and discussion on how those relaxations work. `relax` is then marked as an internal-only target feature so that it can't be modified with `-Ctarget-feature=±relax` or used with `#[cfg(target_feature = "relax")]`, `#[target_feature = "relax"]`, none of which make sense. When building wild for `riscv64gc-unknown-linux-gnu`, it reduces binary size by 1.2%. When building my work project for `riscv32i-unknown-none-elf`, it reduces binary size by 1.9%, or by 2.1% if global pointer relaxations are enabled with `--relax-gp`. This is an alternative to rust-lang#163890 which will supersede that one if merged. cc @RalfJung, @romancardenas, @bjorn3 as participants on the previous thread. r? compiler
…s, r=makai410 Added more queries to AdtDef in rustc_public to check for rust language types Closes rust-lang/rustc_public#86 was redirected to make a pr to this repo here rust-lang/rustc_public#133 No llm was used in the generation of this PR Also i'm having troubles finding an `AdtDef` query for `is_anonymous` all my research leads me to anonymous lifetimes which are not `ADT`s Also [more](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L524) AdtDef queries such as [is_fundamental](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L500) [is_unsafe_pinned](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L524) [is_pin](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L536) [is_pin_project](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L543) [is_field_representing_type](https://github.com/rust-lang/rust/blob/1a4d65fa9d3ff3990d766c52e741c7027ffa4fc6/compiler/rustc_middle/src/ty/adt.rs#L547) can be added to add support for more language items, can i add them too? @makai410 @celinval
…tation-view-variant, r=oli-obk view-types: better documentation for View variant
…, r=fmease Add rustdoc-ui tests for (some) malformed doc attributes Fixes rust-lang#146346. Which reminds me I should finish rust-lang#165187... r? @fmease
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
PR #166012, which is a member of this rollup, was unapproved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
r? @ghost
Create a similar rollup