Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #103312

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
00a7bfc
Elaborate supertrait bounds when triggering unused_must_use on impl T…
compiler-errors Sep 25, 2022
afe29e4
split steps for generating the standalone docs and the shared assets
pietroalbini Oct 5, 2022
004b8b9
add a "standalone" path for doc::Standalone to be able to exclude it
pietroalbini Oct 5, 2022
76bec17
kmc-solid: Handle errors returned by `SOLID_FS_ReadDir`
kawadakk Oct 13, 2022
7fbaf27
macros: support doc comments in diag derives
davidtwco Oct 14, 2022
1045e69
macros: allow subdiagnostic-kind-less variants
davidtwco Oct 14, 2022
feeeb11
macros: fully specify path to `Fn`
davidtwco Oct 14, 2022
2a4b587
ast_lowering: use derive more
davidtwco Oct 14, 2022
ea5d258
ast_passes: use derive more
davidtwco Oct 14, 2022
21d3bbd
lint: use derive more
davidtwco Oct 14, 2022
f8b628b
session: use derive more
davidtwco Oct 14, 2022
913f597
infer: use derive more
davidtwco Oct 14, 2022
f134370
apply joshua's suggestion
pietroalbini Oct 18, 2022
0b27164
fix `SelfVisitor::is_self_ty` ICE
TaKO8Ki Oct 19, 2022
2cc4a0a
rustdoc: render bounds of cross-crate GAT params
fmease Oct 18, 2022
a3ccb19
Fixed docs typo in `library/std/src/time.rs`
johnmatthiggins Oct 20, 2022
9a9e2fe
check if impl_self is `Some`
TaKO8Ki Oct 20, 2022
d3c37b1
+/- shortcut now only expand/collapse, not both
GuillaumeGomez Oct 20, 2022
8e3b891
Add GUI tests for collapse/expand actions
GuillaumeGomez Oct 20, 2022
ed1f02b
fix typo
cuishuang Oct 20, 2022
8fcf2f7
Rollup merge of #102287 - compiler-errors:unused-must-use-also-supert…
matthiaskrgr Oct 20, 2022
4689679
Rollup merge of #102706 - ferrocene:pa-ignore-doc-index, r=jyn514
matthiaskrgr Oct 20, 2022
da11d2f
Rollup merge of #103005 - solid-rs:patch/kmc-solid/readdir-terminator…
matthiaskrgr Oct 20, 2022
dd348af
Rollup merge of #103051 - davidtwco:translation-tidying-up, r=compile…
matthiaskrgr Oct 20, 2022
38c5239
Rollup merge of #103190 - fmease:rustdoc-render-bounds-of-cross-crate…
matthiaskrgr Oct 20, 2022
ec378e6
Rollup merge of #103221 - TaKO8Ki:fix-103202, r=oli-obk
matthiaskrgr Oct 20, 2022
761ab0d
Rollup merge of #103288 - johnmatthiggins:master, r=thomcc
matthiaskrgr Oct 20, 2022
a13a000
Rollup merge of #103296 - GuillaumeGomez:collapse-expand-shortcuts, r…
matthiaskrgr Oct 20, 2022
8f942bb
Rollup merge of #103297 - catandcoder:master, r=JohnTitor
matthiaskrgr Oct 20, 2022
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
6 changes: 3 additions & 3 deletions compiler/rustc_resolve/src/late.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1939,11 +1939,11 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
match ty.kind {
TyKind::ImplicitSelf => true,
TyKind::Path(None, _) => {
let path_res = self.r.partial_res_map[&ty.id].expect_full_res();
if let Res::SelfTyParam { .. } | Res::SelfTyAlias { .. } = path_res {
let path_res = self.r.partial_res_map[&ty.id].full_res();
if let Some(Res::SelfTyParam { .. } | Res::SelfTyAlias { .. }) = path_res {
return true;
}
Some(path_res) == self.impl_self
self.impl_self.is_some() && path_res == self.impl_self
}
_ => false,
}
Expand Down
7 changes: 7 additions & 0 deletions src/test/ui/resolve/issue-103202.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
struct S {}

impl S {
fn f(self: &S::x) {} //~ ERROR ambiguous associated type
}

fn main() {}
9 changes: 9 additions & 0 deletions src/test/ui/resolve/issue-103202.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0223]: ambiguous associated type
--> $DIR/issue-103202.rs:4:17
|
LL | fn f(self: &S::x) {}
| ^^^^ help: use fully-qualified syntax: `<S as Trait>::x`

error: aborting due to previous error

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