Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ede41cb
macro_metavar_expr_concat: support concatenating into string literals
mejrs Aug 19, 2026
8e54ab5
add escaped literals test
mejrs Sep 3, 2026
abc0117
Move auto trait leakage of opaques into its own candidate fn
bit-aloo Sep 5, 2026
4d62602
Don't constrain inference vars via auto trait leakage of opaques
bit-aloo Sep 5, 2026
43ba58a
regression test for GCE inherent projection ICE
malezjaa Sep 14, 2026
8a2e879
windows Dir::rename: remove incorrect is_dir query
RalfJung Sep 20, 2026
22e16a4
powerpc64-ibm-aix: fix cfg(target_abi) value
RalfJung Sep 5, 2026
99ad525
feat(time): add `Duration::{WEEK, DAY, HOUR, MINUTE}`
sorairolake Sep 21, 2026
9c18639
Add regression test for auto trait leakage of foreign hidden types
bit-aloo Sep 5, 2026
b3d3ab1
Add opaque mayleak to bail out PostTypeckUntilBorrowck from opaque co…
bit-aloo Sep 5, 2026
d86652a
Contraint the var_values to not contain type and const inference vari…
bit-aloo Sep 11, 2026
7dc9aee
remove incorrect cfg_abi check from asm/powerpc; that makes CfgAbi::V…
RalfJung Sep 21, 2026
e83bfca
Move `Const` from `rustc_middle` to `rustc_type_ir`
Jamesbarford Sep 17, 2026
51e2875
Remap `I::Const` -> `Const<I>`
Jamesbarford Sep 17, 2026
af2f1f3
`use ConstExt` for methods that do not yet exist in `rustc_type_ir`
Jamesbarford Sep 17, 2026
c582470
Use `ConstExt` in clippy
Jamesbarford Sep 17, 2026
5e56705
Add better code comments for peculiarities
Jamesbarford Sep 17, 2026
bae45db
Add unreachable for modes which never adds opaque types
bit-aloo Sep 22, 2026
a35e5a6
Remove unused `make3.sh` CI script
GuillaumeGomez Sep 22, 2026
961dd9c
Rollup merge of #162628 - Jamesbarford:chore/move-const-pt1, r=lcnr
JonathanBrouwer Sep 22, 2026
24f0100
Rollup merge of #159589 - bit-aloo:2026-07-29-opaque-type, r=lcnr
JonathanBrouwer Sep 22, 2026
b639ac5
Rollup merge of #160570 - mejrs:concat_str, r=petrochenkov
JonathanBrouwer Sep 22, 2026
ad313a2
Rollup merge of #162325 - RalfJung:aix-abi, r=beetrees
JonathanBrouwer Sep 22, 2026
5467131
Rollup merge of #162786 - malezjaa:regression-test-159561, r=fee1-dead
JonathanBrouwer Sep 22, 2026
d2baef5
Rollup merge of #163065 - RalfJung:win-is-dir, r=ChrisDenton
JonathanBrouwer Sep 22, 2026
171ebb3
Rollup merge of #163138 - sorairolake:feature/more-duration-constants…
JonathanBrouwer Sep 22, 2026
516cc52
Rollup merge of #163162 - GuillaumeGomez:rm-unused-script, r=marcoieni
JonathanBrouwer Sep 22, 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
1 change: 1 addition & 0 deletions compiler/rustc_borrowck/src/type_check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use rustc_middle::mir::*;
use rustc_middle::traits::query::NoSolution;
use rustc_middle::ty::adjustment::PointerCoercion;
use rustc_middle::ty::cast::CastTy;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::{
self, CanonicalUserTypeAnnotation, CanonicalUserTypeAnnotations, GenericArgsRef, Ty, TyCtxt,
TypeVisitableExt, UserArgs, UserTypeAnnotationIndex, fold_regions,
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_cranelift/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use rustc_hir::attrs::lang_items::LangItem;
use rustc_index::IndexVec;
use rustc_middle::ty::TypeVisitableExt;
use rustc_middle::ty::adjustment::PointerCoercion;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{FnAbiOf, HasTypingEnv as _};
use rustc_middle::ty::print::with_no_trimmed_paths;
use rustc_session::config::OutputFilenames;
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_cranelift/src/debuginfo/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use gimli::write::{AttributeValue, UnitEntryId};
use rustc_codegen_ssa::debuginfo::type_names;
use rustc_data_structures::fx::FxHashMap;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::LayoutOf;
use rustc_middle::ty::{self, Ty, TyCtxt};

Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_cranelift/src/intrinsics/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use cranelift_codegen::ir::immediates::Offset32;
use rustc_abi::Endian;
use rustc_middle::ty::SimdAlign;
use rustc_middle::ty::consts::ConstExt;

use super::*;
use crate::prelude::*;
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_cranelift/src/unsize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! [`PointerCoercion::Unsize`]: `rustc_middle::ty::adjustment::PointerCoercion::Unsize`
use rustc_codegen_ssa::base::validate_trivial_unsize;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::HasTypingEnv;
use rustc_middle::ty::print::{with_no_trimmed_paths, with_no_visible_paths};

Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_gcc/src/intrinsic/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use rustc_codegen_ssa::traits::{BaseTypeCodegenMethods, BuilderMethods, LayoutTy
#[cfg(feature = "master")]
use rustc_hir as hir;
use rustc_middle::mir::BinOp;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{HasTyCtxt, LayoutOf};
use rustc_middle::ty::{self, Ty};
use rustc_span::{ErrorGuaranteed, Span, Symbol, span_bug, sym};
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use rustc_codegen_ssa::debuginfo::type_names::{VTableNameKind, cpp_like_debuginf
use rustc_codegen_ssa::traits::*;
use rustc_hir::def::{CtorKind, DefKind};
use rustc_hir::def_id::{DefId, LOCAL_CRATE};
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{
HasTypingEnv, LayoutOf, TyAndLayout, WIDE_PTR_ADDR, WIDE_PTR_EXTRA,
};
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_llvm/src/intrinsic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use rustc_hir::def_id::LOCAL_CRATE;
use rustc_hir::find_attr;
use rustc_lint_defs::builtin::DEPRECATED_LLVM_INTRINSIC;
use rustc_middle::mir::BinOp;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{FnAbiOf, HasTyCtxt, HasTypingEnv, LayoutOf};
use rustc_middle::ty::offload_meta::OffloadMetadata;
use rustc_middle::ty::{self, GenericArgsRef, Instance, SimdAlign, Ty, TyCtxt, TypingEnv};
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_ssa/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use rustc_middle::mir::interpret::{CTFE_ALLOC_SALT, ErrorHandled, Scalar};
use rustc_middle::mir::{BinOp, ConstValue};
use rustc_middle::mono::{CodegenUnit, CodegenUnitNameBuilder, MonoItem, MonoItemPartitions};
use rustc_middle::query::Providers;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{HasTyCtxt, HasTypingEnv, LayoutOf, TyAndLayout};
use rustc_middle::ty::{self, Instance, PatternKind, Ty, TyCtxt, UintTy, Unnormalized};
use rustc_session::config::{self, EntryFnType};
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use rustc_hashes::Hash64;
use rustc_hir::def_id::DefId;
use rustc_hir::definitions::{DefPathData, DefPathDataName, DisambiguatedDefPathData};
use rustc_hir::{CoroutineDesugaring, CoroutineKind, CoroutineSource, Mutability};
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{IntegerExt, TyAndLayout};
use rustc_middle::ty::{
self, ExistentialProjection, GenericArgKind, GenericArgsRef, Ty, TyCtxt, Unnormalized,
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_ssa/src/mir/constant.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use rustc_abi::BackendRepr;
use rustc_middle::mir;
use rustc_middle::mir::interpret::ErrorHandled;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{HasTyCtxt, HasTypingEnv};
use rustc_middle::ty::{self, Ty};
use rustc_span::{bug, span_bug};
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_ssa/src/mir/intrinsic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use rustc_abi::{Align, FieldIdx, WrappingRange};
use rustc_middle::mir::SourceInfo;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::{self, Ty, TyCtxt};
use rustc_session::config::OptLevel;
use rustc_span::{ErrorGuaranteed, bug, span_bug, sym};
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_ssa/src/mir/operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use rustc_abi::{
use rustc_hir::attrs::lang_items::LangItem;
use rustc_middle::mir::interpret::{Pointer, Scalar, alloc_range};
use rustc_middle::mir::{self, ConstValue};
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{LayoutOf, TyAndLayout};
use rustc_middle::ty::{self, Ty};
use rustc_session::config::{AnnotateMoves, DebugInfo, OptLevel};
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_ssa/src/mir/rvalue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use rustc_abi::{self as abi, BackendRepr, FIRST_VARIANT};
use rustc_index::IndexVec;
use rustc_middle::mir;
use rustc_middle::ty::adjustment::PointerCoercion;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{HasTyCtxt, HasTypingEnv, LayoutOf, TyAndLayout};
use rustc_middle::ty::{self, Instance, Mutability, Ty, TyCtxt};
use rustc_session::config::OptLevel;
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_const_eval/src/const_eval/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use rustc_middle::mir;
use rustc_middle::mir::AssertMessage;
use rustc_middle::mir::interpret::ReportedErrorInfo;
use rustc_middle::query::TyCtxtAt;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{HasTyCtxt, HasTypingEnv, TyAndLayout, ValidityRequirement};
use rustc_middle::ty::{self, FieldInfo, ScalarInt, Ty, TyCtxt};
use rustc_span::{Span, Symbol, bug, span_bug, sym};
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_const_eval/src/const_eval/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use rustc_abi::{FieldIdx, VariantIdx};
use rustc_middle::mir;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::{self, Ty, TyCtxt};
use rustc_span::{DUMMY_SP, bug};
use tracing::instrument;
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_const_eval/src/const_eval/valtrees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_middle::mir;
use rustc_middle::mir::interpret::{EvalToValTreeResult, GlobalId, ValTreeCreationError};
use rustc_middle::traits::ObligationCause;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{LayoutCx, TyAndLayout};
use rustc_middle::ty::{self, Ty, TyCtxt};
use rustc_span::{DUMMY_SP, bug};
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_const_eval/src/interpret/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use rustc_apfloat::{Float, FloatConvert};
use rustc_middle::mir::CastKind;
use rustc_middle::mir::interpret::{InterpResult, PointerArithmetic, Scalar};
use rustc_middle::ty::adjustment::PointerCoercion;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::layout::{IntegerExt, TyAndLayout};
use rustc_middle::ty::{self, FloatTy, Ty};
use rustc_span::{bug, span_bug};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use rustc_middle::mir::BinOp;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::{mir, ty};
use rustc_span::{Symbol, span_bug, sym};
use tracing::trace;
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_const_eval/src/interpret/intrinsics/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use rustc_abi::{BackendRepr, Endian};
use rustc_apfloat::ieee::{Double, Half, Quad, Single};
use rustc_apfloat::{Float, Round};
use rustc_middle::mir::interpret::{InterpErrorKind, Pointer, UndefinedBehaviorInfo};
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::{FloatTy, ScalarInt, SimdAlign};
use rustc_middle::{err_ub_format, mir, throw_unsup_format, ty};
use rustc_span::{Symbol, bug, span_bug, sym};
Expand Down
20 changes: 14 additions & 6 deletions compiler/rustc_expand/src/mbe/metavar_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ pub(crate) const UNSUPPORTED_CONCAT_ELEM_ERR: &str = "expected identifier or str
/// A meta-variable expression, for expansions based on properties of meta-variables.
#[derive(Debug, PartialEq, Encodable, Decodable)]
pub(crate) enum MetaVarExpr {
/// Unification of two or more identifiers.
Concat(Box<[MetaVarExprConcatElem]>),
/// Unification of two or more identifiers/literals/metavariables into an identifier.
ConcatIdent(Box<[MetaVarExprConcatElem]>),

/// Unification of two or more identifiers/literals/metavariables into a string literal.
ConcatStr(Box<[MetaVarExprConcatElem]>),

/// The number of repetitions of an identifier.
Count(Ident, usize),
Expand Down Expand Up @@ -73,7 +76,12 @@ impl MetaVarExpr {

let mut iter = args.iter();
let rslt = match ident.name {
sym::concat => parse_concat(&mut iter, psess, outer_span, ident.span)?,
sym::concat => {
MetaVarExpr::ConcatIdent(parse_concat(&mut iter, psess, outer_span, ident.span)?)
}
sym::concat_str => {
MetaVarExpr::ConcatStr(parse_concat(&mut iter, psess, outer_span, ident.span)?)
}
sym::count => parse_count(&mut iter, psess, ident.span)?,
sym::ignore => {
eat_dollar(&mut iter, psess, ident.span)?;
Expand All @@ -95,7 +103,7 @@ impl MetaVarExpr {

pub(crate) fn for_each_metavar<A>(&self, mut aux: A, mut cb: impl FnMut(A, &Ident) -> A) -> A {
match self {
MetaVarExpr::Concat(elems) => {
MetaVarExpr::ConcatIdent(elems) | MetaVarExpr::ConcatStr(elems) => {
for elem in elems {
if let MetaVarExprConcatElem::Var(ident) = elem {
aux = cb(aux, ident)
Expand Down Expand Up @@ -175,7 +183,7 @@ fn parse_concat<'psess>(
psess: &'psess ParseSess,
outer_span: Span,
expr_ident_span: Span,
) -> PResult<'psess, MetaVarExpr> {
) -> PResult<'psess, Box<[MetaVarExprConcatElem]>> {
let mut result = Vec::new();
loop {
let is_var = try_eat_dollar(iter);
Expand Down Expand Up @@ -210,7 +218,7 @@ fn parse_concat<'psess>(
.dcx()
.struct_span_err(expr_ident_span, "`concat` must have at least two elements"));
}
Ok(MetaVarExpr::Concat(result.into()))
Ok(result.into())
}

/// Parse a meta-variable `count` expression: `count(ident[, depth])`
Expand Down
21 changes: 17 additions & 4 deletions compiler/rustc_expand/src/mbe/quoted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use rustc_feature::Features;
use rustc_session::Session;
use rustc_session::diagnostics::feature_err;
use rustc_span::edition::Edition;
use rustc_span::{Ident, Span, kw, sym};
use rustc_span::{Ident, Span, Symbol, kw, sym};

use crate::diagnostics;
use crate::mbe::macro_parser::count_metavar_decls;
Expand Down Expand Up @@ -204,9 +204,14 @@ fn maybe_emit_macro_metavar_expr_feature(features: &Features, sess: &Session, sp
}
}

fn maybe_emit_macro_metavar_expr_concat_feature(features: &Features, sess: &Session, span: Span) {
fn maybe_emit_macro_metavar_expr_concat_feature(
features: &Features,
sess: &Session,
span: Span,
what: Symbol,
) {
if !features.macro_metavar_expr_concat() {
let msg = "the `concat` meta-variable expression is unstable";
let msg = format!("the `{what}` meta-variable expression is unstable");
feature_err(sess, sym::macro_metavar_expr_concat, span, msg).emit();
}
}
Expand Down Expand Up @@ -278,11 +283,19 @@ fn parse_tree<'a>(
return TokenTree::token(token::Dollar, dollar_span);
}
Ok(elem) => {
if let MetaVarExpr::Concat(_) = elem {
if matches!(elem, MetaVarExpr::ConcatIdent(_)) {
maybe_emit_macro_metavar_expr_concat_feature(
features,
sess,
delim_span.entire(),
sym::concat,
);
} else if matches!(elem, MetaVarExpr::ConcatStr(_)) {
maybe_emit_macro_metavar_expr_concat_feature(
features,
sess,
delim_span.entire(),
sym::concat_str,
);
} else {
maybe_emit_macro_metavar_expr_feature(
Expand Down
62 changes: 45 additions & 17 deletions compiler/rustc_expand/src/mbe/transcribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ fn transcribe_metavar_expr<'tx>(
) -> PResult<'tx, ()> {
let dcx = tscx.psess.dcx();
let tt = match *expr {
MetaVarExpr::Concat(ref elements) => metavar_expr_concat(tscx, dspan, elements)?,
MetaVarExpr::ConcatIdent(ref elements) => metavar_expr_concat_ident(tscx, dspan, elements)?,
MetaVarExpr::ConcatStr(ref elements) => metavar_expr_concat_str(tscx, dspan, elements)?,
MetaVarExpr::Count(original_ident, depth) => {
let matched = matched_from_ident(dcx, original_ident, tscx.interp)?;
let count = count_repetitions(dcx, depth, matched, &tscx.repeats, &dspan)?;
Expand Down Expand Up @@ -635,11 +636,52 @@ fn transcribe_metavar_expr<'tx>(
}

/// Handle the `${concat(...)}` metavariable expression.
fn metavar_expr_concat<'tx>(
fn metavar_expr_concat_ident<'tx>(
tscx: &mut TranscrCtx<'tx, '_>,
dspan: DelimSpan,
elements: &[MetaVarExprConcatElem],
) -> PResult<'tx, TokenTree> {
let (symbol, concatenated_span) = metavar_expr_concat(tscx, dspan, elements)?;
if !rustc_lexer::is_ident(symbol.as_str()) {
return Err(tscx.psess.dcx().create_err(ConcatInvalidIdent {
span: concatenated_span,
reason: InvalidIdentReason::new(symbol),
}));
}
tscx.psess.symbol_gallery.insert(symbol, concatenated_span);

// The current implementation marks the span as coming from the macro regardless of
// contexts of the concatenated identifiers but this behavior may change in the
// future.
Ok(TokenTree::Token(
Token::from_ast_ident(Ident::new(symbol, concatenated_span)),
Spacing::Alone,
))
}

/// Handle the `${concat_str(...)}` metavariable expression.
fn metavar_expr_concat_str<'tx>(
tscx: &mut TranscrCtx<'tx, '_>,
dspan: DelimSpan,
elements: &[MetaVarExprConcatElem],
) -> PResult<'tx, TokenTree> {
let (symbol, concatenated_span) = metavar_expr_concat(tscx, dspan, elements)?;

// The current implementation marks the span as coming from the macro regardless of
// contexts of the concatenated identifiers but this behavior may change in the
// future.
Ok(TokenTree::Token(
Token::new(TokenKind::lit(LitKind::Str, symbol, None), concatenated_span),
Spacing::Alone,
))
}

/// Shared logic for concat/concat_str metavariable expressions
fn metavar_expr_concat<'tx>(
tscx: &mut TranscrCtx<'tx, '_>,
dspan: DelimSpan,
elements: &[MetaVarExprConcatElem],
) -> PResult<'tx, (Symbol, Span)> {
let dcx = tscx.psess.dcx();
let mut concatenated = String::new();
for element in elements {
Expand Down Expand Up @@ -668,21 +710,7 @@ fn metavar_expr_concat<'tx>(
}
let symbol = nfc_normalize(&concatenated);
let concatenated_span = tscx.visited_dspan(dspan);
if !rustc_lexer::is_ident(symbol.as_str()) {
return Err(dcx.create_err(ConcatInvalidIdent {
span: concatenated_span,
reason: InvalidIdentReason::new(symbol),
}));
}
tscx.psess.symbol_gallery.insert(symbol, concatenated_span);

// The current implementation marks the span as coming from the macro regardless of
// contexts of the concatenated identifiers but this behavior may change in the
// future.
Ok(TokenTree::Token(
Token::from_ast_ident(Ident::new(symbol, concatenated_span)),
Spacing::Alone,
))
Ok((symbol, concatenated_span))
}

/// Store the metavariable span for this original span into a side table.
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_hir_analysis/src/check/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use rustc_macros::Diagnostic;
use rustc_middle::hir::nested_filter;
use rustc_middle::middle::resolve_bound_vars::ResolvedArg;
use rustc_middle::middle::stability::EvalResult;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::error::TypeErrorToStringExt;
use rustc_middle::ty::layout::LayoutError;
use rustc_middle::ty::util::Discr;
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_hir_analysis/src/check/intrinsic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use rustc_errors::DiagMessage;
use rustc_hir as hir;
use rustc_hir::attrs::lang_items::LangItem;
use rustc_middle::traits::{ObligationCause, ObligationCauseCode};
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::{self, Const, Ty, TyCtxt};
use rustc_span::def_id::LocalDefId;
use rustc_span::{Span, Symbol, sym};
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ use rustc_infer::traits::DynCompatibilityViolation;
use rustc_lint_defs::builtin::AMBIGUOUS_ASSOCIATED_ITEMS;
use rustc_macros::{TypeFoldable, TypeVisitable};
use rustc_middle::middle::stability::AllowUnstable;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::{
self, Const, FnSigKind, GenericArgKind, GenericArgsRef, GenericParamDefKind, LitToConstInput,
Ty, TyCtxt, TypeSuperFoldable, TypeVisitableExt, TypingMode, Unnormalized, Upcast,
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_hir_typeck/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use rustc_hir_analysis::hir_ty_lowering::HirTyLowerer as _;
use rustc_infer::infer::{self, DefineOpaqueTypes, InferOk, RegionVariableOrigin};
use rustc_infer::traits::query::NoSolution;
use rustc_middle::ty::adjustment::{Adjust, Adjustment, AllowTwoPhase};
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::error::{ExpectedFound, TypeError};
use rustc_middle::ty::{self, AdtKind, GenericArgsRef, Ty, TypeVisitableExt, Unnormalized};
use rustc_session::diagnostics::feature_err;
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use rustc_hir::{
use rustc_hir_analysis::hir_ty_lowering::HirTyLowerer;
use rustc_hir_analysis::suggest_impl_trait;
use rustc_middle::middle::stability::EvalResult;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::print::{with_no_trimmed_paths, with_types_for_suggestion};
use rustc_middle::ty::{
self, Article, Binder, IsSuggestable, Ty, TyCtxt, TypeVisitableExt, Unnormalized, Upcast,
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_hir_typeck/src/inline_asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use rustc_hir as hir;
use rustc_hir::attrs::lang_items::LangItem;
use rustc_hir::def_id::DefId;
use rustc_lint_defs::builtin::ASM_SUB_REGISTER;
use rustc_middle::ty::consts::ConstExt;
use rustc_middle::ty::{
self, Article, FloatTy, IntTy, Ty, TyCtxt, TypeVisitableExt, UintTy, Unnormalized,
};
Expand Down
Loading
Loading