diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-24 21:12:38 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2019-11-24 23:21:44 +0100 |
| commit | becfe5c15334ecc80e22e024d0137fb9dc0f4d08 (patch) | |
| tree | 5f935c45a0d99c82634fd21b3f0b004e2bc6d9dc /src | |
| parent | 27513a21c4bea1774c295c398af413631807cb5c (diff) | |
| download | rust-becfe5c15334ecc80e22e024d0137fb9dc0f4d08.tar.gz rust-becfe5c15334ecc80e22e024d0137fb9dc0f4d08.zip | |
Fix test.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-make-fulldeps/issue-19371/foo.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/run-make-fulldeps/issue-19371/foo.rs b/src/test/run-make-fulldeps/issue-19371/foo.rs index f9ecff2abaa..62a66aefd2d 100644 --- a/src/test/run-make-fulldeps/issue-19371/foo.rs +++ b/src/test/run-make-fulldeps/issue-19371/foo.rs @@ -66,6 +66,11 @@ fn compile(code: String, output: PathBuf, sysroot: PathBuf) { interface::run_compiler(config, |compiler| { // This runs all the passes prior to linking, too. - compiler.link().ok(); + let linker = compiler.enter(|queries| { + queries.linker() + }); + if let Ok(linker) = linker { + linker.link(); + } }); } |
