diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-08-26 19:23:42 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-09-13 23:33:50 +0300 |
| commit | 4b6c4c08df7f4685daf0fa2cfe127b06216176d6 (patch) | |
| tree | 90d6650d2522f2253c86672042b6806bfe5987c4 /src/librustc_resolve | |
| parent | c87ba3f1222ba20d491e8ed76a04977283280742 (diff) | |
| download | rust-4b6c4c08df7f4685daf0fa2cfe127b06216176d6.tar.gz rust-4b6c4c08df7f4685daf0fa2cfe127b06216176d6.zip | |
Remove some ancient code providing special support for newtypes
Diffstat (limited to 'src/librustc_resolve')
| -rw-r--r-- | src/librustc_resolve/build_reduced_graph.rs | 4 |
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)); |
