about summary refs log tree commit diff
path: root/src/test/ui/extern
AgeCommit message (Collapse)AuthorLines
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.
2019-10-03Update issue-64655-extern-rust-must-allow-unwind.rsFelix S Klock II-1/+0
placate tidy
2019-10-03Apply suggestions from code reviewFelix S Klock II-4/+4
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Co-Authored-By: Ralf Jung <post@ralfj.de>
2019-10-02fix typoFelix S Klock II-1/+1
2019-10-02Regression tests for issue 64655.Felix S. Klock II-0/+145
2019-09-22Point at type param when it's cause of unfulfilled obligationEsteban Küber-6/+6
2019-09-22On obligation errors point at the unfulfilled binding when possibleEsteban Küber-7/+7
2019-09-19When possible point at argument causing item obligation failureEsteban Küber-2/+2
2019-08-31Use span label instead of note for cause in E0631Esteban Küber-35/+21
2019-08-15Group all ui tests and move to abi #62593Kevin Per-531/+0
2019-08-10diagnostics: Describe crate root modules in `DefKind::Mod` as "crate"Vadim Petrochenkov-4/+4
2019-07-27tests: Move run-pass tests without naming conflicts to uiVadim Petrochenkov-0/+999
2019-07-23Update testJonas Schievink-8/+5
2019-07-13review commentEsteban Küber-1/+1