about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-05-03 12:44:34 +0200
committerGitHub <noreply@github.com>2025-05-03 12:44:34 +0200
commita1a23debd614b14ffdc41b4dcbb4cc4712b473f5 (patch)
tree76dc3ee4be99d7dcfcedb41141f711d579273f08 /compiler/rustc_interface/src/errors.rs
parent5fe04cbebd593c6530a21cd7bd0e8e9503b1ffe4 (diff)
parent3eee3dad5c8aa36a88d6ed2e927c53f2ba174819 (diff)
downloadrust-a1a23debd614b14ffdc41b4dcbb4cc4712b473f5.tar.gz
rust-a1a23debd614b14ffdc41b4dcbb4cc4712b473f5.zip
Rollup merge of #138712 - petrochenkov:impasst, r=fmease
resolve: Support imports of associated types and glob imports from traits

Follow up to https://github.com/rust-lang/rust/pull/134754, part of https://github.com/rust-lang/rust/issues/134691.
This PR also closes https://github.com/rust-lang/rust/issues/138711 now.

Prohibiting `use Trait::AssocType;` at name resolution stage doesn't make sense, the name itself is perfectly resolveable.
It's a type checker's problem that the necessary generic args are not passed when the imported `AssocType` is used, so an error should be reported there.

And since we can import associated trait items now, glob imports from traits can also be allowed.
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions