diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-10-13 12:11:27 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-10-13 14:43:58 +0200 |
| commit | ea60335c286f45ea14fb2049b395e1bced2a1b45 (patch) | |
| tree | 5984583142d18070a7e41a14c572101b164bf7ad /src/librustc_codegen_utils | |
| parent | bcb01bca86b4ebe10501fb918bb807edc34a7a1b (diff) | |
| download | rust-ea60335c286f45ea14fb2049b395e1bced2a1b45.tar.gz rust-ea60335c286f45ea14fb2049b395e1bced2a1b45.zip | |
Add top level provide/provide_extern to cg_ssa and cg_utils
Diffstat (limited to 'src/librustc_codegen_utils')
| -rw-r--r-- | src/librustc_codegen_utils/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustc_codegen_utils/lib.rs b/src/librustc_codegen_utils/lib.rs index 1201446afb5..66920342ff6 100644 --- a/src/librustc_codegen_utils/lib.rs +++ b/src/librustc_codegen_utils/lib.rs @@ -18,6 +18,7 @@ extern crate rustc; use rustc::ty::TyCtxt; +use rustc::ty::query::Providers; use rustc::hir::def_id::LOCAL_CRATE; use syntax::symbol::sym; @@ -37,3 +38,7 @@ pub fn check_for_rustc_errors_attr(tcx: TyCtxt<'_>) { } } } + +pub fn provide(providers: &mut Providers<'_>) { + crate::symbol_names::provide(providers); +} |
