Skip to content

Commit ece045f

Browse files
committed
---
yaml --- r: 31678 b: refs/heads/dist-snap c: 5cb3a94 h: refs/heads/master v: v3
1 parent 0c49517 commit ece045f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: 94aa38d470c713554a6973042f30fca0a5101a60
10+
refs/heads/dist-snap: 5cb3a94bfbafc6548b2dde42beddc903a97c9eb2
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/rustc/middle/resolve3.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,8 @@ class Resolver {
847847
// We don't want to complain if the multiple definitions
848848
// are in different namespaces. (unless it's the impl namespace,
849849
// 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)) {
851852
some(ns) => {
852853
self.session.span_err(sp,
853854
#fmt("Duplicate definition of %s %s",
@@ -3887,10 +3888,10 @@ class Resolver {
38873888
// The meaning of pat_ident with no type parameters
38883889
// depends on whether an enum variant with that name is in
38893890
// 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).
38943895
38953896
let atom = (*self.atom_table).intern(path.idents[0]);
38963897

0 commit comments

Comments
 (0)