diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-08-12 20:37:55 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-12 20:37:55 +1000 |
| commit | 42af95b18e6ad480d72d6bffe71ff9063fc9b6de (patch) | |
| tree | 814c2e9659e06966d8b7c24f0e5abe4e51f37544 /compiler/rustc_passes/src/check_attr.rs | |
| parent | 769d32b117ee007b8872b7de3752ac7a6a64c05d (diff) | |
| parent | bcf87e4172416b96e24be998e18d81a8af183356 (diff) | |
| download | rust-42af95b18e6ad480d72d6bffe71ff9063fc9b6de.tar.gz rust-42af95b18e6ad480d72d6bffe71ff9063fc9b6de.zip | |
Rollup merge of #145251 - tiif:support_trait, r=BoxyUwU
Support using #[unstable_feature_bound] on trait This is needed to unblock https://github.com/rust-lang/rust/pull/145095 r? ```````@BoxyUwU```````
Diffstat (limited to 'compiler/rustc_passes/src/check_attr.rs')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index d1e58e60dbe..93b94a8ba14 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -2326,7 +2326,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> { match target { // FIXME(staged_api): There's no reason we can't support more targets here. We're just // being conservative to begin with. - Target::Fn | Target::Impl { .. } => {} + Target::Fn | Target::Impl { .. } | Target::Trait => {} Target::ExternCrate | Target::Use | Target::Static @@ -2341,7 +2341,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> { | Target::Struct | Target::Field | Target::Union - | Target::Trait | Target::TraitAlias | Target::Expression | Target::Statement |
