about summary refs log tree commit diff
path: root/compiler/rustc_expand/src
diff options
context:
space:
mode:
authorSamuel Moelius <samuel.moelius@trailofbits.com>2025-04-03 20:59:05 -0400
committerSamuel Moelius <sam@moeli.us>2025-08-15 12:10:54 -0400
commitc3c2c23e0d96c76f11a307cf3c4cf14a86fd158b (patch)
treeb5dc6f3ae9ee7f8957c5dc14bff21bcd23b7c1d2 /compiler/rustc_expand/src
parent3672a55b7cfd0a12e7097197b6242872473ffaa7 (diff)
downloadrust-c3c2c23e0d96c76f11a307cf3c4cf14a86fd158b.tar.gz
rust-c3c2c23e0d96c76f11a307cf3c4cf14a86fd158b.zip
Extend `QueryStability` to handle `IntoIterator` implementations
Fix adjacent code

Fix duplicate warning; merge test into `tests/ui-fulldeps/internal-lints`

Use `rustc_middle::ty::FnSig::inputs`

Address two review comments

- https://github.com/rust-lang/rust/pull/139345#discussion_r2109006991
- https://github.com/rust-lang/rust/pull/139345#discussion_r2109058588

Use `Instance::try_resolve`

Import `rustc_middle::ty::Ty` as `Ty` rather than `MiddleTy`

Simplify predicate handling

Add more `#[allow(rustc::potential_query_instability)]` following rebase

Remove two `#[allow(rustc::potential_query_instability)]` following rebase

Address review comment

Update compiler/rustc_lint/src/internal.rs

Co-authored-by: lcnr <rust@lcnr.de>
Diffstat (limited to 'compiler/rustc_expand/src')
-rw-r--r--compiler/rustc_expand/src/mbe/macro_rules.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/mbe/macro_rules.rs b/compiler/rustc_expand/src/mbe/macro_rules.rs
index 334f57f9d62..6b57ced56eb 100644
--- a/compiler/rustc_expand/src/mbe/macro_rules.rs
+++ b/compiler/rustc_expand/src/mbe/macro_rules.rs
@@ -522,6 +522,7 @@ pub(super) fn try_match_macro_attr<'matcher, T: Tracker<'matcher>>(
         match result {
             Success(body_named_matches) => {
                 psess.gated_spans.merge(gated_spans_snapshot);
+                #[allow(rustc::potential_query_instability)]
                 named_matches.extend(body_named_matches);
                 return Ok((i, rule, named_matches));
             }