summary refs log tree commit diff
path: root/src/test/run-make
AgeCommit message (Collapse)AuthorLines
2022-08-02Fix backwards-compatibility check for tests with `+whole-archive`Daniel Sommermann-3/+30
Fixes #100066
2022-08-01Auto merge of #99476 - dpaoliello:rawdylibvectorcall, r=michaelwoeristerbors-24/+134
Add tests for raw-dylib with vectorcall, and fix vectorcall code generation * Adds tests for using `raw-dylib` (#58713) with `vectorcall`. * Fixed code generation for `vectorcall` (parameters have to be marked with `InReg`, just like `fastcall`). * Enabled running the `raw-dylib` `fastcall` tests when using MSVC (since I had to add support in the test for running MSVC-only tests since GCC doesn't support `vectorcall`).
2022-07-29Auto merge of #99467 - BelovDV:add_option_link_arg, r=petrochenkovbors-0/+29
flag '-l link-arg=___ was added #99427
2022-07-28Diagnose missing make includesTomasz Miąsko-4/+4
2022-07-28Move coverage tests from run-make-fulldeps to run-makeTomasz Miąsko-0/+5620
2022-07-26Fix vectorcallDaniel Paoliello-24/+134
2022-07-26Lib kind -l link-arg:Daniil Belov-0/+29
arbitrary link argument like -C link-arg, but respecting relative order to other `-l` options, unstable
2022-07-26Auto merge of #98989 - dpaoliello:rawdylibbin, r=michaelwoeristerbors-13/+20
Enable raw-dylib for bin crates Fixes #93842 When `raw-dylib` is used in a `bin` crate, we need to collect all of the `raw-dylib` functions, generate the import library and add that to the linker command line. I also changed the tests so that 1) the C++ dlls are created after the Rust dlls, thus there is no chance of accidentally using them in the Rust linking process and 2) disabled generating import libraries when building with MSVC.
2022-07-25feat: impl export-executable-symbolscsmoe-0/+19
2022-07-22Enable raw-dylib for binariesDaniel Paoliello-13/+20
2022-07-13Rename `debugging_opts` to `unstable_opts`Joshua Nelson-1/+2
This is no longer used only for debugging options (e.g. `-Zoutput-width`, `-Zallow-features`). Rename it to be more clear.
2022-07-09tweak names and output and blessRalf Jung-1/+1
2022-07-06session: `output-width` -> `diagnostic-width`David Wood-1/+1
Rename the `--output-width` flag to `--diagnostic-width` as this appears to be the preferred name within the compiler team. Signed-off-by: David Wood <david.wood@huawei.com>
2022-07-06session: `terminal-width` -> `output-width`David Wood-2/+2
Rename the `--terminal-width` flag to `--output-width` as the behaviour doesn't just apply to terminals (and so is slightly less accurate). Signed-off-by: David Wood <david.wood@huawei.com>
2022-07-06sess: stabilize `--terminal-width`David Wood-0/+3
Formerly `-Zterminal-width`, `--terminal-width` allows the user or build tool to inform rustc of the width of the terminal so that diagnostics can be truncated. Signed-off-by: David Wood <david.wood@huawei.com>
2022-07-04Auto merge of #98573 - krasimirgg:nlmb-llvm-nm, r=nikicbors-10/+14
adapt native-link-modifier-bundle test to use llvm-nm No functional changes intended. This updates the test case to use `llvm-nm` as an alternative to https://github.com/rust-lang/rust/pull/98424. This fixes a test failure over at the experimental build of rustc with HEAD LLVM: https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/11144#01814d0f-a46a-4c19-91cf-41e720edb6f9/684-691. The issue is that this test uses the system nm, which may not be recent enough to understand the bitcode produced by rustc when compiled against HEAD LLVM. Similar to what we did for another test in https://github.com/rust-lang/rust/pull/94023.
2022-07-04adapt native-link-modifier-bundle test to use llvm-nmKrasimir Georgiev-10/+14
2022-07-02Fix bug in `rustdoc -Whelp`Joshua Nelson-199/+0
Previously, this printed the debugging options, not the lint options, and only handled `-Whelp`, not `-A/-D/-F`. This also fixes a few other misc issues: - Fix `// check-stdout` for UI tests; previously it only worked for run-fail and compile-fail tests - Add lint headers for tool lints, not just builtin lints - Remove duplicate run-make test
2022-06-27Finish rustdoc error improvementGuillaume Gomez-5/+9
2022-06-27Add test for help output with -WShivani Bhardwaj-0/+195
2022-06-27Add test for default rustdoc runShivani Bhardwaj-0/+199
2022-06-16Move/rename `lazy::Sync{OnceCell,Lazy}` to `sync::{Once,Lazy}Lock`Maybe Waffle-2/+6
2022-06-09Stabilize the `bundle` native library modifierVadim Petrochenkov-4/+56
2022-05-18Properly apply path prefix remapping paths emitted into debuginfo.Michael Woerister-0/+82
2022-05-01Auto merge of #96549 - ouz-a:mir-opt, r=oli-obkbors-4/+0
Move Derefer before Retag _Follow up work to #96116 #95857 #95649_ This moves `Derefer` before `Retag` and creates a new `LocalInfo` called `Temp` to avoid retagging created temp values. Zulip discussion [link](https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/deref.20as.20first.20and.20only.20projection) r? `@oli-obk`
2022-04-29remove and blessouz-a-4/+0
2022-04-28Add `@feat.00` symbol to symbols.o for COFFGary Guo-0/+12
2022-04-26Rollup merge of #96279 - GuillaumeGomez:remove-woff-fonts, r=camelid,jshaDylan DPC-3/+3
rustdoc: Remove .woff font files Copying `@jsha's` great comment: > Right now we ship 1.5MB of woff files in the rustdoc binary, and 1MB of woff2 files, for a total of 2.5MB. > > Per: > > https://caniuse.com/woff > https://caniuse.com/woff2 > > The only listed browser that supports woff and not woff2 is IE, which is not supported per https://github.com/rust-lang/rfcs/blob/master/text/1985-tiered-browser-support.md. > > I propose we stop shipping woff files and save 1.5MB from the rustdoc binary (and from each doc build). r? `@jsha`
2022-04-25Auto merge of #95604 - nbdd0121:used2, r=petrochenkovbors-0/+32
Generate synthetic object file to ensure all exported and used symbols participate in the linking Fix #50007 and #47384 This is the synthetic object file approach that I described in https://github.com/rust-lang/rust/pull/95363#issuecomment-1079932354, allowing all exported and used symbols to be linked while still allowing them to be GCed. Related #93791, #95363 r? `@petrochenkov` cc `@carbotaniuman`
2022-04-21Update run-make test front-files from .woff to .woff2Guillaume Gomez-3/+3
2022-04-18Add a test for issue 47384Gary Guo-0/+32
2022-04-13Rollup merge of #93217 - willcrichton:example-analyzer, r=GuillaumeGomezDylan DPC-3/+2
Improve Rustdoc UI for scraped examples with multiline arguments, fix overflow in line numbers This PR improves a few aspects of the scrape examples feature in Rustdoc. * Only function names and not the full call expression are highlighted. * For call-sites with multiline arguments, the minimized code viewer will scroll to the top of the call-site rather than the middle if the argument is larger than the viewer size, ensuring that the function name is visible. * This fixes an issue where the line numbers column had a visible x-scroll bar. r? `@GuillaumeGomez`
2022-04-12sess: try sysroot candidates for fluent bundleDavid Wood-1/+27
Instead of checking only the user provided sysroot or the default (when no sysroot is provided), search user provided sysroot and then check default sysroots for locale requested by the user. Signed-off-by: David Wood <david.wood@huawei.com>
2022-04-06Rollup merge of #95649 - ouz-a:mir-opt, r=oli-obkDylan DPC-0/+4
New mir-opt deref_separator This adds a new mir-opt that split certain derefs into this form: `let x = (*a.b).c;` to => `tmp = a.b; let x = (*tmp).c;` Huge thanks to ``@oli-obk`` for his patient mentoring.
2022-04-05errors: implement sysroot/testing bundle loadingDavid Wood-0/+53
Extend loading of Fluent bundles so that bundles can be loaded from the sysroot based on the language requested by the user, or using a nightly flag. Sysroot bundles are loaded from `$sysroot/share/locale/$locale/*.ftl`. Signed-off-by: David Wood <david.wood@huawei.com>
2022-04-04fixed error, made function leaner and tighterouz-a-0/+4
2022-03-30Stabilize native library modifier syntax and the `whole-archive` modifier ↵Vadim Petrochenkov-3/+1
specifically
2022-03-27Improve alignment of additional scraped examples, add scrape examples help pageWill Crichton-2/+2
2022-03-27Only highlight identifier in scraped examples, not argumentsWill Crichton-3/+2
2022-02-11Add --scrape-tests flags so rustdoc can scrape examples from testsWill Crichton-1/+17
2022-02-08Rollup merge of #93568 - willcrichton:scrape-examples-leading-whitespace, ↵Matthias Krüger-0/+16
r=CraftSpider Include all contents of first line of scraped item in Rustdoc This fixes #93528. When scraping examples, it extends the span of the enclosing item to include all characters up to the start of the first line of the span. r? `@camelid`
2022-02-01Include all contents of first line of scraped itemWill Crichton-0/+16
2022-02-01Rollup merge of #86374 - bossmc:enable-static-pie-for-gnu, r=nagisaMatthias Krüger-11/+54
Enable combining `+crt-static` and `relocation-model=pic` on `x86_64-unknown-linux-gnu` Modern `gcc` versions support `-static-pie`, and `rustc` will already fall-back to `-static` if the local `gcc` is too old (and hence this change is optimistic rather than absolute). This brings the `-musl` and `-gnu` targets to feature compatibility (albeit with different default settings). Of note a `-static` or `-static-pie` binary based on glibc that uses NSS-backed functions (`gethostbyname` or `getpwuid` etc.) need to have access to the `libnss_X.so.2` libraries and any of their dynamic dependencies. I wasn't sure about the `# only`/`# ignore` changes (I've not got a `gnux32` toolchain to test with hence not also enabling `-static-pie` there).
2022-01-22Use an `indexmap` to avoid sorting `LocalDefId`spierwill-16/+16
Update `indexmap` to 1.8.0. Bless test
2022-01-19Fix test directives; comment out calls broken on windows-gnuRichard Cobbe-5/+11
2022-01-18Rollup merge of #90782 - ricobbe:binutils-dlltool, r=michaelwoeristerMatthias Krüger-2/+80
Implement raw-dylib support for windows-gnu Add support for `#[link(kind = "raw-dylib")]` on windows-gnu targets. Work around binutils's linker's inability to read import libraries produced by LLVM by calling out to the binutils `dlltool` utility to create an import library from a temporary .DEF file; this approach is effectively a slightly refined version of `@mati865's` earlier attempt at this strategy in PR #88801. (In particular, this attempt at this strategy adds support for `#[link_ordinal(...)]` as well.) In support of #58713.
2022-01-12Call out to binutils' dlltool for raw-dylib on windows-gnu platforms.Richard Cobbe-2/+80
2021-12-12Stabilize asm! and global_asm!Amanieu d'Antras-33/+34
They are also removed from the prelude as per the decision in https://github.com/rust-lang/rust/issues/87228. stdarch and compiler-builtins are updated to work with the new, stable asm! and global_asm! macros.
2021-11-30Add --out-dir flag for rustdochi-rustin-0/+30
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-11-11Auto merge of #83846 - torhovland:issue-10971, r=davidtwcobors-0/+10
Added the --temps-dir option Fixes #10971. The new `--temps-dir` option puts intermediate files in a user-specified directory. This provides a fix for the issue where parallel invocations of rustc would overwrite each other's intermediate files. No files are kept in the intermediate directory unless `-C save-temps=yes`. If additional files are specifically requested using `--emit asm,llvm-bc,llvm-ir,obj,metadata,link,dep-info,mir`, these will be put in the output directory rather than the intermediate directory. This is a backward-compatible change, i.e. if `--temps-dir` is not specified, the behavior is the same as before.