File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
branches/snap-stage3/src/librustc/metadata Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: cac97d7ee565eef14b9e7385d1c088c1eb0a9295
4
+ refs/heads/snap-stage3: e3a91f60c58d537945abc4c83b1b9f6ddcbe21fe
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -388,6 +388,17 @@ fn encode_reexported_static_methods(ecx: @EncodeContext,
388
388
match ecx. tcx . items . find ( & exp. def_id . node ) {
389
389
Some ( & ast_map:: node_item( item, path) ) => {
390
390
let original_name = ecx. tcx . sess . str_of ( item. ident ) ;
391
+
392
+ //
393
+ // We don't need to reexport static methods on traits
394
+ // declared in the same module as our `pub use ...` since
395
+ // that's done when we encode the trait item.
396
+ //
397
+ // The only exception is when the reexport *changes* the
398
+ // name e.g. `pub use Foo = self::Bar` -- we have
399
+ // encoded metadata for static methods relative to Bar,
400
+ // but not yet for Foo.
401
+ //
391
402
if mod_path != * path || * exp. name != * original_name {
392
403
for methods. each |& m| {
393
404
if m. explicit_self == ast:: sty_static {
You can’t perform that action at this time.
0 commit comments