diff options
| author | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-07-11 22:56:44 +0800 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-16 15:09:17 +0200 |
| commit | 7e5d22447264fe8cd5e89326f31bb6f0db3f885b (patch) | |
| tree | 96387a6bfb48cdf6d0db36675da47d2037fd1b0b /src/librustc_codegen_llvm | |
| parent | f12eca47e09dc0aa7420e51c090a22cd72f44159 (diff) | |
| download | rust-7e5d22447264fe8cd5e89326f31bb6f0db3f885b.tar.gz rust-7e5d22447264fe8cd5e89326f31bb6f0db3f885b.zip | |
ForeignItemKind
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/consts.rs b/src/librustc_codegen_llvm/consts.rs index 199c40bb704..81e51e59d92 100644 --- a/src/librustc_codegen_llvm/consts.rs +++ b/src/librustc_codegen_llvm/consts.rs @@ -143,7 +143,7 @@ pub fn get_static(cx: &CodegenCx, def_id: DefId) -> ValueRef { } hir_map::NodeForeignItem(&hir::ForeignItem { - ref attrs, span, node: hir::ForeignItemStatic(..), .. + ref attrs, span, node: hir::ForeignItemKind::Static(..), .. }) => { let g = if let Some(linkage) = cx.tcx.codegen_fn_attrs(def_id).linkage { // If this is a static with a linkage specified, then we need to handle |
