about summary refs log tree commit diff
path: root/src/test/ui/extern
AgeCommit message (Collapse)AuthorLines
2021-09-16Point at call span that introduced obligation for the argEsteban Kuber-1/+3
2021-08-29emit specific warning to clarify that foreign items can't have no_mangleasquared31415-0/+72
remove extra commented code Deduplicate some diagnostics code add code symbols, machine applicable suggestion clarify error message
2021-08-16Use note to point at bound introducing requirementEsteban Küber-21/+35
2021-08-11Modify structured suggestion outputEsteban Küber-5/+5
* On suggestions that include deletions, use a diff inspired output format * When suggesting addition, use `+` as underline * Color highlight modified span
2021-07-29Bump LLVM for RegAllocFast bugfixAaron Hill-6/+2
Fixes #83854
2021-07-06Replace per-target ABI denylist with an allowlistSimonas Kazlauskas-9/+5
It makes very little sense to maintain denylists of ABIs when, as far as non-generic ABIs are concerned, targets usually only support a small subset of the available ABIs. This has historically been a cause of bugs such as us allowing use of the platform-specific ABIs on x86 targets – these in turn would cause LLVM errors or assertions to fire. Fixes #57182 Sponsored by: standard.ai
2021-07-01Auto merge of #86774 - GuillaumeGomez:rollup-rkcgvph, r=GuillaumeGomezbors-0/+2
Rollup of 6 pull requests Successful merges: - #86558 (Add suggestions for "undefined reference" link errors) - #86616 (rustc_span: Explicitly handle crates that differ from package names) - #86652 (Add support for leaf function frame pointer elimination) - #86666 (Fix misleading "impl Trait" error) - #86762 (mailmap: Add my work email address) - #86773 (Enable the tests developed with #86594) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-06-27Fix misleading "impl Trait" errorPaul Trojahn-0/+2
Closes #84160
2021-06-09Fix ICE when `main` is declared in an `extern` blockasquared31415-0/+15
2021-06-04Remove `doc(include)`Joshua Nelson-69/+0
2021-04-09Auto merge of #81942 - the8472:reduce-ui-test-threads, r=Mark-Simulacrumbors-2/+6
reduce threads spawned by ui-tests The test harness already spawns enough tests to keep all cores busy. Individual tests should keep their own threading to a minimum to avoid context switch overhead. When running ui tests with lld enabled this shaves about 10% off that testsuite on my machine. Resolves #81946
2021-04-09reduce threads spawned by ui-testsThe8472-2/+6
the test harness already spawns enough tests for all cores, individual tests should keep their own threading to a minimum to avoid context switch overhead some tests fail with 1 CGU, so explicit compile flags have been added to keep their old behavior
2021-04-06Point at `impl` and type defs introducing requirements on E0277Esteban Küber-4/+20
2021-01-31Move some tests to more reasonable directoriesCaio-0/+11
2021-01-16Target stack-probe support configurable finelySimonas Kazlauskas-0/+1
This adds capability to configure the target's stack probe support in a more precise manner than just on/off. In particular now we allow choosing between always inline-asm, always call or either one of those depending on the LLVM version on a per-target basis.
2021-01-13Update code to account for extern ABI requirementMark Rousskov-24/+24
2021-01-13Update tests for extern block lintingMark Rousskov-40/+34
2021-01-13Rollup merge of #80796 - cuviper:llvm-11.0.1, r=nikicDylan DPC-2/+3
Update to LLVM 11.0.1 This updates to a new LLVM branch, rebased on the upstream `llvmorg-11.0.1`. All our patches applied cleanly except the fortanix unwind changes, which just needed a small adjustment in cmake files. r? `@nikic` Fixes https://github.com/rust-lang/rust/issues/73722
2021-01-11differentiate functions in extern-compare-with-return-type.rsJosh Stone-2/+3
2021-01-11Move some tests to more reasonable directoriesCaio-0/+11
2020-09-30rustc_metadata: Do not forget to encode inherent impls for foreign typesVadim Petrochenkov-8/+24
2020-09-02pretty: trim paths of unique symbolsDan Aloni-10/+10
If a symbol name can only be imported from one place for a type, and as long as it was not glob-imported anywhere in the current crate, we can trim its printed path and print only the name. This has wide implications on error messages with types, for example, shortening `std::vec::Vec` to just `Vec`, as long as there is no other `Vec` importable anywhere. This adds a new '-Z trim-diagnostic-paths=false' option to control this feature. On the good path, with no diagnosis printed, we should try to avoid issuing this query, so we need to prevent trimmed_def_paths query on several cases. This change also relies on a previous commit that differentiates between `Debug` and `Display` on various rustc types, where the latter is trimmed and presented to the user and the former is not.
2020-07-23Add missing backticks in diagnostics noteYuki Okushi-1/+1
2020-07-18rustc_metadata: Make crate loading fully speculativeVadim Petrochenkov-1/+1
2020-07-14Remove `Sized` `on_unimplemented` noteEsteban Küber-5/+0
2020-06-15Account for derived obligations to suggest `?Sized` boundEsteban Küber-0/+12
Fix #27964.
2020-06-04test: ui: skip tests which aren't appropriate for RISC-VTom Eccles-0/+3
2020-04-08Small tweaks to required bound spanEsteban Küber-7/+7
2020-03-22Normalize wording of privacy access labelsEsteban Küber-2/+2
2020-03-22Increase verbosity when suggesting subtle code changesEsteban Küber-3/+5
2020-02-15reject assoc statics & extern consts during parsingMazdak Farrokhzad-2/+0
2020-02-15parse extern constsMazdak Farrokhzad-2/+8
2020-02-05parser: merge `fn` grammars wrt. bodies & headersMazdak Farrokhzad-6/+6
also refactor `FnKind` and `visit_assoc_item` visitors
2020-02-02Suggest `?Sized` on type parametersEsteban Küber-1/+3
2020-01-16resolve: Say "import" when reporting private importsVadim Petrochenkov-8/+8
2020-01-16resolve: Point at the private item definitions in privacy errorsVadim Petrochenkov-2/+14
2020-01-08review commentsEsteban Küber-0/+5
2020-01-05Add backticks to various diagnosticsvarkor-2/+2
2020-01-04Test cleanups to match #[track_caller] in panic!.Adam Perry-4/+2
* Removes unnecessary feature flag from track_caller test. * Tests of panic internals no longer need to explicitly construct Location. * Add #![warn(const_err)] to retain-never-const per @oli-obk. * Add track_caller test with diverging function.
2019-11-18Specific labels when referring to "expected" and "found" typesEsteban Küber-4/+4
2019-11-15Add test for issue-36122Yuki Okushi-0/+18
2019-11-10Make error and warning annotations mandatory in UI testsTomasz Miąsko-18/+1
This change makes error and warning annotations mandatory in UI tests. The only exception are tests that use error patterns to match compiler output and don't have any annotations.
2019-10-27Panicking infra uses &core::panic::Location.Adam Perry-2/+3
This allows us to remove `static_panic_msg` from the SSA<->LLVM boundary, along with its fat pointer representation for &str. Also changes the signature of PanicInfo::internal_contructor to avoid copying. Closes #65856.
2019-10-16Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-3/+5
- Compatible with Emscripten 1.38.46-upstream or later upstream. - Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the old incorrect wasm32 C call ABI with the correct one, preserving the old one as wasm32_bindgen_compat for wasm-bindgen compatibility. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649.
2019-10-12Auto merge of #65020 - ↵bors-0/+148
pnkfelix:targetted-fix-for-always-marking-rust-abi-unwind-issue-64655, r=alexcrichton Always mark rust and rust-call abi's as unwind PR #63909 identified a bug that had been injected by PR #55982. As discussed on https://github.com/rust-lang/rust/issues/64655#issuecomment-537517428 , we started marking extern items as nounwind, *even* extern items that said they were using "Rust" or "rust-call" ABI. This is a more targeted variant of PR #63909 that fixes the above bug. Fix #64655 ---- I personally suspect we will want PR #63909 to land in the long-term But: * it is not certain that PR #63909 *will* land, * more importantly, PR #63909 almost certainly will not be backported to beta/stable. The identified bug was more severe than I think anyone realized (apart from perhaps @gnzlbg, as noted [here](https://github.com/rust-lang/rust/pull/63909#issuecomment-524818838)). Thus, I was motivated to write this PR, which fixes *just* the issue with extern rust/rust-call functions, and deliberately avoids injecting further deviation from current behavior (you can see further notes on this in the comments of the code added here).
2019-10-11emcscripten: ignore another thread-using testRalf Jung-0/+1
2019-10-11ignore-emcscripten as it does not support threadsRalf Jung-0/+1
2019-10-05Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, ↵Tyler Mandry-5/+3
r=alexcrichton" This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-04dont run these tests on targets that default to panic=abort.Felix S. Klock II-0/+2
2019-10-04Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-3/+5
- Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the incorrect wasm32 C call ABI with the old asmjs version, which is correct for both wasm32 and JS. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Temporarily makes Emscripten targets use panic=abort by default because supporting unwinding will require an LLVM patch.