Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0d0aaa1
Some arena macro tweaks.
nnethercote Apr 20, 2026
cdefdd0
Fix a metadata table name.
nnethercote Apr 22, 2026
3b5dd18
Fix some comments.
nnethercote Apr 24, 2026
3c83d3a
llvm: Use correct type for splat mask
maurer May 5, 2026
411a932
ImproperCTypes: merge outer_ty information into VisitorState
niacdoial Sep 10, 2025
6839797
ImproperCTypes: Use more `Unnormalized` type wrappers
niacdoial Apr 24, 2026
803c7ba
Some fold/visit tweaks.
nnethercote Apr 24, 2026
814fc17
Deny warnings in rustc crates on stable
jdonszelmann Apr 29, 2026
0afe083
Avoid some global `node_id_to_def_id` lookups in import resolution
oli-obk May 5, 2026
191cda5
Avoid using `id` followed by `local_def_id` if we can just call `def_…
oli-obk May 5, 2026
400240a
Avoid hitting the global node_id_to_def_id table for unused macros
oli-obk May 5, 2026
a082567
Follow-up cleanups reusing the now-available `LocalDefId`s
oli-obk May 5, 2026
b8e547a
fix warnings in rustc_type_ir
jdonszelmann Apr 29, 2026
c44e922
Refactor dead code liveness plumbing
mu001999 Apr 6, 2026
27a8bb6
Implement unused_pub_items_in_binary lint
mu001999 Apr 6, 2026
26bfcf3
Rename unused_pub_items_in_binary to dead_code_pub_in_binary
mu001999 Apr 28, 2026
ff25d8a
Use special DefIds for aliases
ChayimFriedman2 Apr 9, 2026
f05716f
Support `-Cpanic=unwind` on WASI targets
alexcrichton May 1, 2026
d16900d
Rollup merge of #156061 - alexcrichton:unwinding-onw-asi, r=bjorn3
JonathanBrouwer May 6, 2026
4870ded
Rollup merge of #146273 - niacdoial:improperctypes-refactor2, r=petro…
JonathanBrouwer May 6, 2026
0a5c15d
Rollup merge of #149509 - mu001999-contrib:flag/pub-as-pub-crate, r=j…
JonathanBrouwer May 6, 2026
26ec9d9
Rollup merge of #156173 - oli-obk:fewer-global-lookups, r=petrochenkov
JonathanBrouwer May 6, 2026
0c314a1
Rollup merge of #155961 - jdonszelmann:deny-warnings-stable, r=mejrs
JonathanBrouwer May 6, 2026
747b66c
Rollup merge of #155981 - ChayimFriedman2:alias-def-id, r=lcnr
JonathanBrouwer May 6, 2026
0a1ed82
Rollup merge of #156130 - nnethercote:fold-visit-tweaks, r=WaffleLapkin
JonathanBrouwer May 6, 2026
8ad1708
Rollup merge of #156131 - nnethercote:rm-unnecessary-decode, r=Zalathar
JonathanBrouwer May 6, 2026
b4c4bbe
Rollup merge of #156202 - maurer:splat, r=nikic
JonathanBrouwer May 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions compiler/rustc_type_ir/src/binder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,17 @@ pub struct EarlyBinder<I: Interner, T> {

impl<I: Interner, T: Eq> Eq for EarlyBinder<I, T> {}

/// For early binders, you should first call `instantiate` before using any visitors.
// FIXME(154045): Recommended as per https://github.com/rust-lang/rust/issues/154045, this is so sad :((
#[cfg(feature = "nightly")]
impl<I: Interner, T> !TypeFoldable<I> for ty::EarlyBinder<I, T> {}
macro_rules! generate { ($( $tt:tt )*) => { $( $tt )* } }

/// For early binders, you should first call `instantiate` before using any visitors.
#[cfg(feature = "nightly")]
impl<I: Interner, T> !TypeVisitable<I> for ty::EarlyBinder<I, T> {}
generate!(
/// For early binders, you should first call `instantiate` before using any visitors.
impl<I: Interner, T> !TypeFoldable<I> for ty::EarlyBinder<I, T> {}
/// For early binders, you should first call `instantiate` before using any visitors.
impl<I: Interner, T> !TypeVisitable<I> for ty::EarlyBinder<I, T> {}
);

impl<I: Interner, T> EarlyBinder<I, T> {
pub fn bind(value: T) -> EarlyBinder<I, T> {
Expand Down
9 changes: 5 additions & 4 deletions compiler/rustc_type_ir/src/ir_print.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
use std::fmt;

use crate::{
AliasTerm, AliasTy, Binder, ClosureKind, CoercePredicate, ExistentialProjection,
ExistentialTraitRef, FnSig, HostEffectPredicate, Interner, NormalizesTo, OutlivesPredicate,
PatternKind, Placeholder, ProjectionPredicate, SubtypePredicate, TraitPredicate, TraitRef,
UnevaluatedConst,
AliasTerm, AliasTy, Binder, CoercePredicate, ExistentialProjection, ExistentialTraitRef, FnSig,
HostEffectPredicate, Interner, NormalizesTo, OutlivesPredicate, PatternKind, Placeholder,
ProjectionPredicate, SubtypePredicate, TraitPredicate, TraitRef,
};
#[cfg(feature = "nightly")]
use crate::{ClosureKind, UnevaluatedConst};

pub trait IrPrint<T> {
fn print(t: &T, fmt: &mut fmt::Formatter<'_>) -> fmt::Result;
Expand Down
2 changes: 1 addition & 1 deletion tests/run-make-cargo/rustc-crates-on-stable/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn main() {
.env("RUSTC_STAGE", "0")
.env("RUSTC", rustc_path())
// We want to disallow all nightly features to simulate a stable build
.env("RUSTFLAGS", "-Zallow-features=")
.env("RUSTFLAGS", "-D warnings -Zallow-features=")
.arg("build")
.arg("--manifest-path")
.arg(source_root().join("Cargo.toml"))
Expand Down