Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ea29d6a
We can traverse bindings before `lower_match_tree` now
Nadrieril Jun 17, 2024
012626b
Only one caller of `lower_match_tree` was using the fake borrows
Nadrieril Jun 17, 2024
cef49f7
Small dedup
Nadrieril Jun 17, 2024
878ccd2
There's nothing to bind for a wildcard
Nadrieril Jun 17, 2024
c0c6c32
Move `lower_match_tree`
Nadrieril Jun 17, 2024
7b150a1
Don't use fake wildcards when we can get the failure block directly
Nadrieril Jun 17, 2024
ff49c37
Reuse `lower_let_expr` for `let .. else` lowering
Nadrieril Jun 17, 2024
beb1d35
Change comment to reflect switch to THIR unsafeck
Nadrieril Jun 22, 2024
e8516f8
std: separate TLS key creation from TLS access
joboet Jun 25, 2024
81c2c57
Make queries more explicit
compiler-errors Jun 27, 2024
c9870cf
supertrait_def_ids
compiler-errors Jun 27, 2024
1160eec
supertrait_def_ids was already implemented in middle
compiler-errors Jun 27, 2024
ab1b48e
rustc_data_structures: Explicitly check for 64-bit atomics support
glaubitz Jun 28, 2024
65aea99
std: add safety comments
joboet Jun 28, 2024
903d6a9
Remove `run_cmd`
Kobzol Jun 22, 2024
cf5bbb3
Remove `run` and rename `run_tracked` to `run`
Kobzol Jun 22, 2024
31911e5
Improve documentation of `BootstrapCommand`
Kobzol Jun 22, 2024
3722fb5
Store `Command` directly inside `BootstrapCommand`
Kobzol Jun 22, 2024
2a9d5ab
Make it easier to migrate `Command` to `BootstrapCmd`
Kobzol Jun 22, 2024
86b2191
Migrate some usage of `Command` to `BootstrapCmd`
Kobzol Jun 22, 2024
f7d9543
Migrate `cargo_clippy_cmd` and `cargo_miri_cmd` to `BootstrapCommand`
Kobzol Jun 22, 2024
8a890cb
Migrate a few command usages to `BootstrapCommand`
Kobzol Jun 22, 2024
83d33c2
Migrate a few command usages to `BootstrapCommand`
Kobzol Jun 22, 2024
bed2cbd
Get rid of `Deref/DerefMut` impl for `BootstrapCmd`
Kobzol Jun 22, 2024
2ebfcce
Migrate more `Command` usages to `BootstrapCmd`
Kobzol Jun 22, 2024
1483815
Bump Fuchsia
tmandry Jun 28, 2024
45efd9c
remove some amusing but redundant code
matthiaskrgr Jun 28, 2024
1727e59
Remove wasm target
tmandry Jun 28, 2024
a838202
Clarify docs
tmandry Jun 28, 2024
078d9d8
Rename x86_64-gnu-integration builder to x86_64-fuchsia
tmandry Jun 28, 2024
3bc3247
Move binder and polarity parsing into parse_generic_ty_bound
compiler-errors Jun 28, 2024
0afc774
unify `bin_helpers` and `dylib` utility modules
onur-ozkan Jun 29, 2024
9098474
create `shared_helpers::parse_value_from_args`
onur-ozkan Jun 29, 2024
dfa68f1
Rollup merge of #126822 - Kobzol:bootstrap-cmd-refactor-2, r=onur-ozkan
matthiaskrgr Jun 29, 2024
806c5c1
Rollup merge of #126835 - Nadrieril:reify-decision-tree, r=matthewjasper
matthiaskrgr Jun 29, 2024
1e39eb7
Rollup merge of #126953 - joboet:lazy_key, r=jhpratt
matthiaskrgr Jun 29, 2024
e9d5a2f
Rollup merge of #127045 - compiler-errors:explicit, r=oli-obk
matthiaskrgr Jun 29, 2024
3369e83
Rollup merge of #127075 - glaubitz:copy-and-paste-fix, r=SparrowLii
matthiaskrgr Jun 29, 2024
c1d7ff5
Rollup merge of #127101 - matthiaskrgr:thonk, r=compiler-errors
matthiaskrgr Jun 29, 2024
367a80c
Rollup merge of #127102 - tmandry:rename-fuchsia-builder, r=Kobzol
matthiaskrgr Jun 29, 2024
a4e92bf
Rollup merge of #127103 - compiler-errors:tighten-trait-bound-parsing…
matthiaskrgr Jun 29, 2024
8fe7701
Rollup merge of #127108 - onur-ozkan:bin-helper, r=Kobzol
matthiaskrgr Jun 29, 2024
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
Prev Previous commit
Next Next commit
supertrait_def_ids
  • Loading branch information
compiler-errors committed Jun 27, 2024
commit c9870cfa4bed1163be4e9fde814d79860f3caa57
5 changes: 2 additions & 3 deletions compiler/rustc_middle/src/ty/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2443,7 +2443,7 @@ impl<'tcx> TyCtxt<'tcx> {
/// Given the def_id of a Trait `trait_def_id` and the name of an associated item `assoc_name`
/// returns true if the `trait_def_id` defines an associated item of name `assoc_name`.
pub fn trait_may_define_assoc_item(self, trait_def_id: DefId, assoc_name: Ident) -> bool {
self.super_traits_of(trait_def_id).any(|trait_did| {
self.supertrait_def_ids(trait_def_id).any(|trait_did| {
self.associated_items(trait_did)
.filter_by_name_unhygienic(assoc_name.name)
.any(|item| self.hygienic_eq(assoc_name, item.ident(self), trait_did))
Expand All @@ -2467,8 +2467,7 @@ impl<'tcx> TyCtxt<'tcx> {
/// Computes the def-ids of the transitive supertraits of `trait_def_id`. This (intentionally)
/// does not compute the full elaborated super-predicates but just the set of def-ids. It is used
/// to identify which traits may define a given associated type to help avoid cycle errors.
/// Returns a `DefId` iterator.
fn super_traits_of(self, trait_def_id: DefId) -> impl Iterator<Item = DefId> + 'tcx {
fn supertrait_def_ids(self, trait_def_id: DefId) -> impl Iterator<Item = DefId> + 'tcx {
let mut set = FxHashSet::default();
let mut stack = vec![trait_def_id];

Expand Down