Skip to content

Commit aa7efd2

Browse files
committed
---
yaml --- r: 272734 b: refs/heads/beta c: bd7e422 h: refs/heads/master
1 parent 66c4c14 commit aa7efd2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 59fafcf00c684665629e2ea79fd884623f7b8812
26+
refs/heads/beta: bd7e422996818d75041a801b2df4bd79f44937ae
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/librustc_resolve/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,9 +1988,12 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
19881988
path_depth)));
19891989

19901990
// If it's a typedef, give a note
1991-
if let Def::TyAlias(..) = path_res.base_def {
1991+
if let Def::TyAlias(did) = path_res.base_def {
19921992
err.fileline_note(trait_path.span,
19931993
"`type` aliases cannot be used for traits");
1994+
if let Some(sp) = self.ast_map.span_if_local(did) {
1995+
err.span_note(sp, "type defined here");
1996+
}
19941997
}
19951998
err.emit();
19961999
Err(())

0 commit comments

Comments
 (0)