Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
fc8df06
update submodules if the directory doesn't exist
WaffleLapkin Apr 14, 2025
1397dab
fix typo
WaffleLapkin Apr 14, 2025
6c441cc
canonicalize test build dir before normalizing it
WaffleLapkin Apr 14, 2025
502b630
tidy: don't crush on non-existent submodules
WaffleLapkin Apr 15, 2025
52f4b16
use helper function instead of writing rustfmt stamp by hand
WaffleLapkin Apr 15, 2025
dda4d7b
slightly correct comments and diagnostics about checking modifications
WaffleLapkin Apr 15, 2025
8934ac5
add a comment for code that isn't
WaffleLapkin Apr 15, 2025
8120950
Add test for issue 125668
reddevilmidzy Apr 15, 2025
11e5987
Don't compute name of associated item if it's an RPITIT
compiler-errors Apr 15, 2025
2020adb
Fix wrong suggestion for async gen block and add regression ui test f…
GuillaumeGomez Apr 15, 2025
90aec13
commit rustfmt stump in `x t tidy` even on `check`
WaffleLapkin Apr 15, 2025
89b4eba
normalize canonical and non-canonical paths in compiletest
WaffleLapkin Apr 15, 2025
f35c85f
Add unstable foo::bar extern command line arguments
eholk Apr 8, 2025
f3f53d2
Update books
rustbot Apr 15, 2025
ea1b230
Update Cargo.lock for rustbook
ehuss Apr 15, 2025
766cd3a
Remove support for `#[rustc_mir(borrowck_graphviz_format="gen_kill")]`.
nnethercote Apr 15, 2025
62882f3
Improve `borrowck_graphviz_*` documentation.
nnethercote Apr 15, 2025
6999305
Make CodeStat's type sizes a public field
blyxyas Apr 15, 2025
723ef24
Rollup merge of #139647 - eholk:package-namespace, r=fmease
matthiaskrgr Apr 16, 2025
f7b6f15
Rollup merge of #139823 - WaffleLapkin:bootpaper, r=jieyouxu
matthiaskrgr Apr 16, 2025
b65e6b7
Rollup merge of #139867 - WaffleLapkin:tidypaper, r=jieyouxu
matthiaskrgr Apr 16, 2025
a1de2a2
Rollup merge of #139871 - GuillaumeGomez:async-gen-move, r=compiler-e…
matthiaskrgr Apr 16, 2025
b3284ad
Rollup merge of #139876 - blyxyas:write_type_sizes, r=nnethercote
matthiaskrgr Apr 16, 2025
ec6bdda
Rollup merge of #139880 - compiler-errors:rpitit-nameless, r=nnethercote
matthiaskrgr Apr 16, 2025
1bde68e
Rollup merge of #139884 - rustbot:docs-update, r=ehuss
matthiaskrgr Apr 16, 2025
e96b999
Rollup merge of #139886 - nnethercote:graphviz_borrowck, r=compiler-e…
matthiaskrgr Apr 16, 2025
0039c7d
Rollup merge of #139893 - reddevilmidzy:add-test, r=SparrowLii
matthiaskrgr Apr 16, 2025
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
Don't compute name of associated item if it's an RPITIT
  • Loading branch information
compiler-errors committed Apr 15, 2025
commit 11e5987d017b4ab8dfc522d674aea704aad8605a
3 changes: 1 addition & 2 deletions compiler/rustc_hir_analysis/src/hir_ty_lowering/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
.iter()
.flat_map(|trait_def_id| tcx.associated_items(*trait_def_id).in_definition_order())
.filter_map(|item| {
(!item.is_impl_trait_in_trait() && item.as_tag() == assoc_tag)
.then_some(item.name())
(!item.is_impl_trait_in_trait() && item.as_tag() == assoc_tag).then(|| item.name())
})
.collect();

Expand Down
12 changes: 12 additions & 0 deletions tests/ui/impl-trait/in-trait/dont-probe-missing-item-name.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Regression test for <https://github.com/rust-lang/rust/issues/139873>.

// Test that we don't try to get the (nonexistent) name of the RPITIT in `Trait::foo`
// when emitting an error for a missing associated item `Trait::Output`.

trait Trait {
fn foo() -> impl Sized;
fn bar() -> Self::Output;
//~^ ERROR associated type `Output` not found for `Self`
}

fn main() {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0220]: associated type `Output` not found for `Self`
--> $DIR/dont-probe-missing-item-name.rs:8:23
|
LL | fn bar() -> Self::Output;
| ^^^^^^ associated type `Output` not found

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0220`.
Loading