diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-09-15 00:51:46 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-10-04 22:22:36 +0300 |
| commit | 75d6522b9a4992b33b69e8fe76ae9be999dd66d3 (patch) | |
| tree | f5f4e00fbbc6bad277c4bf70fbcfae2e269ed488 /src/librustc_resolve | |
| parent | 64bdf1b74b8b2df8b13f51201277e35d948b154a (diff) | |
| download | rust-75d6522b9a4992b33b69e8fe76ae9be999dd66d3.tar.gz rust-75d6522b9a4992b33b69e8fe76ae9be999dd66d3.zip | |
Eliminate ty::VariantKind in favor of def::CtorKind
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 f689ed6a41c..ea894556b7f 100644 --- a/src/librustc_resolve/build_reduced_graph.rs +++ b/src/librustc_resolve/build_reduced_graph.rs @@ -302,7 +302,7 @@ impl<'b> Resolver<'b> { // in the value namespace as well. if !struct_def.is_struct() { let ctor_def = Def::StructCtor(self.definitions.local_def_id(struct_def.id()), - CtorKind::from_vdata(struct_def)); + CtorKind::from_ast(struct_def)); self.define(parent, name, ValueNS, (ctor_def, sp, vis)); } @@ -359,7 +359,7 @@ impl<'b> Resolver<'b> { // Define a constructor name in the value namespace. // Braced variants, unlike structs, generate unusable names in // value namespace, they are reserved for possible future use. - let ctor_kind = CtorKind::from_vdata(&variant.node.data); + let ctor_kind = CtorKind::from_ast(&variant.node.data); let ctor_def = Def::VariantCtor(def_id, ctor_kind); self.define(parent, name, ValueNS, (ctor_def, variant.span, vis)); } |
