File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 94aa38d470c713554a6973042f30fca0a5101a60
2
+ refs/heads/master: 5cb3a94bfbafc6548b2dde42beddc903a97c9eb2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change @@ -847,7 +847,8 @@ class Resolver {
847
847
// We don't want to complain if the multiple definitions
848
848
// are in different namespaces. (unless it's the impl namespace,
849
849
// since impls can share a name)
850
- match ns. find ( |n| n != ImplNS && child. defined_in_namespace ( n) ) {
850
+ match ns. find ( |n| n != ImplNS
851
+ && child. defined_in_namespace ( n) ) {
851
852
some( ns) => {
852
853
self . session . span_err ( sp,
853
854
#fmt ( "Duplicate definition of %s %s" ,
@@ -3887,10 +3888,10 @@ class Resolver {
3887
3888
// The meaning of pat_ident with no type parameters
3888
3889
// depends on whether an enum variant with that name is in
3889
3890
// scope. The probing lookup has to be careful not to emit
3890
- // spurious errors. Only matching patterns (match) can match
3891
- // nullary variants. For binding patterns (let), matching
3892
- // such a variant is simply disallowed (since it's rarely
3893
- // what you want).
3891
+ // spurious errors. Only matching patterns (match) can
3892
+ // match nullary variants. For binding patterns (let),
3893
+ // matching such a variant is simply disallowed (since
3894
+ // it's rarely what you want).
3894
3895
3895
3896
let atom = (*self.atom_table).intern(path.idents[0]);
3896
3897
You can’t perform that action at this time.
0 commit comments