Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ba9588e
Add `const_float_bits_conv` for `f64::to_bits` and friends
ecstatic-morse May 22, 2020
040da96
Make floating point classify functions `const fn`
ecstatic-morse May 23, 2020
cbc14a2
Test new floating point bit casts
ecstatic-morse May 22, 2020
407f9a4
Ensure consts get compared at runtime
ecstatic-morse May 23, 2020
9dadeb3
Test `is_nan`
ecstatic-morse May 23, 2020
d1c275b
linker: MSVC supports linking static libraries as a whole archive
petrochenkov May 30, 2020
687767a
Suggest substituting `'static` lifetime in impl/dyn `Trait + 'static`…
estebank May 29, 2020
c91320f
When `'static` is explicit, suggest constraining argument with it
estebank May 30, 2020
abf74b9
Reduce verbosity of suggestion message and mention lifetime in label
estebank May 30, 2020
50c422e
Move overlapping span to a note
estebank May 30, 2020
17951e2
Tweak output for overlapping required/captured spans
estebank May 30, 2020
19bb589
Tweak wording and add error code
estebank May 30, 2020
3cfecde
review comments: wording
estebank Jun 1, 2020
bdfb9b1
Use note for requirement source span
estebank Jun 2, 2020
215de3b
Register new eror code
estebank Jun 2, 2020
187e105
small tweaks
estebank Jun 2, 2020
6145918
Change E0758 to E0759 to avoid conflict with #72912
estebank Jun 3, 2020
fff822f
Migrate to numeric associated consts
tesuji Jun 2, 2020
c29b3fa
On recursive ADT, provide indirection structured suggestion
estebank May 29, 2020
7cde07e
review comments: only suggest one substitution
estebank May 31, 2020
03552ec
fix rebase
estebank Jun 10, 2020
802a9ac
Rollup merge of #72449 - ecstatic-morse:const-float-bitcast, r=RalfJu…
RalfJung Jun 12, 2020
35e5dfe
Rollup merge of #72740 - estebank:recursive-indirection, r=matthewjasper
RalfJung Jun 12, 2020
97ae4f6
Rollup merge of #72785 - petrochenkov:wholemsvc, r=matthewjasper
RalfJung Jun 12, 2020
cb425c8
Rollup merge of #72804 - estebank:opaque-missing-lts-in-fn-2, r=nikom…
RalfJung Jun 12, 2020
eda9d21
Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay
RalfJung Jun 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
linker: MSVC supports linking static libraries as a whole archive
  • Loading branch information
petrochenkov committed May 30, 2020
commit d1c275b350f9ae74be92114f4819d6afb55d6007
6 changes: 4 additions & 2 deletions src/librustc_codegen_ssa/back/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,12 +704,14 @@ impl<'a> Linker for MsvcLinker<'a> {
}

fn link_whole_staticlib(&mut self, lib: Symbol, _search_path: &[PathBuf]) {
// not supported?
self.link_staticlib(lib);
self.cmd.arg(format!("/WHOLEARCHIVE:{}.lib", lib));
}
fn link_whole_rlib(&mut self, path: &Path) {
// not supported?
self.link_rlib(path);
let mut arg = OsString::from("/WHOLEARCHIVE:");
arg.push(path);
self.cmd.arg(arg);
}
fn optimize(&mut self) {
// Needs more investigation of `/OPT` arguments
Expand Down