about summary refs log tree commit diff
path: root/src/test/ui/extern
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-1541/+0
2023-01-04Move testsCaio-0/+32
2022-10-01bless ui testsMaybe Waffle-1/+1
2022-09-27core: Mark all safe intrinsics with #[rustc_safe_intrinsic]Arthur Cohen-1/+3
2022-09-23Restore ignore tagFlorian Bartels-2/+0
This test case actually requires std::process.
2022-08-29Make the trait bound is not satisfied specify kindObei Sideg-1/+1
2022-08-21Rework point-at-argMichael Goulet-6/+6
2022-07-17Add regression test for #95829Yuki Okushi-0/+42
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-07-15Move item_span from check_item_type into each functionMichael Goulet-3/+3
2022-07-07Auto merge of #98827 - aDotInTheVoid:suggest-extern-block, r=nagisabors-0/+38
Suggest using block for `extern "abi" fn` with no body `@rustbot` modify labels: +A-diagnostics
2022-07-06Suggest using block for `extern "abi" fn` with no bodyNixon Enraght-Moony-0/+38
2022-07-01Shorten def_span for more items.Camille GILLOT-3/+3
2022-06-28add regression test for #80074Takayuki Maeda-0/+14
2022-04-25do not consider two extern types to be similarlcnr-0/+38
2022-03-16resolve the conflict in compiler/rustc_session/src/parse.rscodehorseman-1/+1
Signed-off-by: codehorseman <cricis@yeah.net>
2022-02-24don't ice when an extern static is too bigasquared31415-0/+63
2021-12-11Auto merge of #91769 - estebank:type-trait-bound-span-2, r=oli-obkbors-5/+0
Tweak assoc type obligation spans * Point at RHS of associated type in obligation span * Point at `impl` assoc type on projection error * Reduce verbosity of recursive obligations * Point at source of binding lifetime obligation * Tweak "required bound" note * Tweak "expected... found opaque (return) type" labels * Point at set type in impl assoc type WF errors r? `@oli-obk` This is a(n uncontroversial) subset of #85799.
2021-12-11Tweak assoc type obligation spansEsteban Kuber-5/+0
* Point at RHS of associated type in obligation span * Point at `impl` assoc type on projection error * Reduce verbosity of recursive obligations * Point at source of binding lifetime obligation * Tweak "required bound" note * Tweak "expected... found opaque (return) type" labels * Point at set type in impl assoc type WF errors
2021-12-09Add needs-unwind to tests that depend on panickingDavid Koloski-0/+2
This directive isn't automatically set by compiletest or x.py, but can be turned on manually for targets that require it.
2021-12-01Improve suggestion for extern crate self error messageMichael-0/+2
2021-12-01Stop treating extern crate loading failures as fatal errorsMichael-0/+23
2021-11-18Move some tests to more reasonable directoriesCaio-0/+58
2021-11-14Move some tests to more reasonable directoriesCaio-0/+5
2021-11-06Move some tests to more reasonable directoriesCaio-0/+33
2021-11-04Fix tests using `only-i686` to use the correct `only-x86` directiveWesley Wiser-3/+3
We translate `i686` to `x86` which means tests marked as `only-i686` never ran. Update those tests to use `only-x86`.
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