about summary refs log tree commit diff
path: root/src/librustc_resolve
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-09-15 13:34:11 -0700
committerGitHub <noreply@github.com>2016-09-15 13:34:11 -0700
commit1265cbf4e05628c98f51afebe0b662c451173faa (patch)
treed22f9883386d441d7431306ec1029c2035b01133 /src/librustc_resolve
parentd1acabeaa204db9235d9e72c5bae4cfaa82da763 (diff)
parentb57f1099b577d4d388cc5236fb6990275c028b5b (diff)
downloadrust-1265cbf4e05628c98f51afebe0b662c451173faa.tar.gz
rust-1265cbf4e05628c98f51afebe0b662c451173faa.zip
Auto merge of #36393 - petrochenkov:ancient, r=eddyb
Remove some obsolete code from the compiler
Diffstat (limited to 'src/librustc_resolve')
-rw-r--r--src/librustc_resolve/build_reduced_graph.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_resolve/build_reduced_graph.rs b/src/librustc_resolve/build_reduced_graph.rs
index ad750ccc012..83f03e7cfc5 100644
--- a/src/librustc_resolve/build_reduced_graph.rs
+++ b/src/librustc_resolve/build_reduced_graph.rs
@@ -261,8 +261,8 @@ impl<'b> Resolver<'b> {
                 let def = Def::Struct(self.definitions.local_def_id(item.id));
                 self.define(parent, name, TypeNS, (def, sp, vis));
 
-                // If this is a newtype or unit-like struct, define a name
-                // in the value namespace as well
+                // If this is a tuple or unit struct, define a name
+                // in the value namespace as well.
                 if !struct_def.is_struct() {
                     let def = Def::Struct(self.definitions.local_def_id(struct_def.id()));
                     self.define(parent, name, ValueNS, (def, sp, vis));