about summary refs log tree commit diff
path: root/src/test/ui/extern
AgeCommit message (Collapse)AuthorLines
2019-03-11Update testsVadim Petrochenkov-8/+8
2019-01-01Fix broken links to second edition TRPL.Corey Farwell-4/+4
Fixes https://github.com/rust-lang/rust/issues/57104.
2018-12-25Remove licensesMark Rousskov-131/+21
2018-12-15Rollup merge of #56679 - euclio:external-doc-parse, r=estebankPietro Albini-6/+63
overhaul external doc attribute diagnostics This PR improves the error handling and spans for the external doc attribute. Many cases that silently failed before now emit errors, spans are tightened, and the errors have help and suggestions. I tried to address all the cases that users ran into in the tracking issue. cc #44732 r? @QuietMisdreavus
2018-12-11std: Depend directly on crates.io cratesAlex Crichton-2/+2
Ever since we added a Cargo-based build system for the compiler the standard library has always been a little special, it's never been able to depend on crates.io crates for runtime dependencies. This has been a result of various limitations, namely that Cargo doesn't understand that crates from crates.io depend on libcore, so Cargo tries to build crates before libcore is finished. I had an idea this afternoon, however, which lifts the strategy from #52919 to directly depend on crates.io crates from the standard library. After all is said and done this removes a whopping three submodules that we need to manage! The basic idea here is that for any crate `std` depends on it adds an *optional* dependency on an empty crate on crates.io, in this case named `rustc-std-workspace-core`. This crate is overridden via `[patch]` in this repository to point to a local crate we write, and *that* has a `path` dependency on libcore. Note that all `no_std` crates also depend on `compiler_builtins`, but if we're not using submodules we can publish `compiler_builtins` to crates.io and all crates can depend on it anyway! The basic strategy then looks like: * The standard library (or some transitive dep) decides to depend on a crate `foo`. * The standard library adds ```toml [dependencies] foo = { version = "0.1", features = ['rustc-dep-of-std'] } ``` * The crate `foo` has an optional dependency on `rustc-std-workspace-core` * The crate `foo` has an optional dependency on `compiler_builtins` * The crate `foo` has a feature `rustc-dep-of-std` which activates these crates and any other necessary infrastructure in the crate. A sample commit for `dlmalloc` [turns out to be quite simple][commit]. After that all `no_std` crates should largely build "as is" and still be publishable on crates.io! Notably they should be able to continue to use stable Rust if necessary, since the `rename-dependency` feature of Cargo is soon stabilizing. As a proof of concept, this commit removes the `dlmalloc`, `libcompiler_builtins`, and `libc` submodules from this repository. Long thorns in our side these are now gone for good and we can directly depend on crates.io! It's hoped that in the long term we can bring in other crates as necessary, but for now this is largely intended to simply make it easier to manage these crates and remove submodules. This should be a transparent non-breaking change for all users, but one possible stickler is that this almost for sure breaks out-of-tree `std`-building tools like `xargo` and `cargo-xbuild`. I think it should be relatively easy to get them working, however, as all that's needed is an entry in the `[patch]` section used to build the standard library. Hopefully we can work with these tools to solve this problem! [commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
2018-12-10improve diagnostics for invalid external docsAndy Russell-10/+23
2018-12-10reject invalid external doc attributesAndy Russell-1/+45
Also, provide a suggestion for the correct syntax.
2018-11-18resolve: Avoid sentence breaks in diagnosticsVadim Petrochenkov-3/+3
2018-11-18resolve: Check resolution consistency for import paths and multi-segment ↵Vadim Petrochenkov-4/+5
macro paths
2018-11-07This test will not link on wasm32.Felix S. Klock II-6/+6
2018-11-06Sidestep link error from rustfix'ed code by using a *defined* static.Felix S. Klock II-13/+38
As a drive-by, added `-g` to the compile-flags so that the test more reliably fails to compile when the extern static in question is *not* provided. (I.e. this is making the test more robust in the face of potential future revisions.) Fix #54388.
2018-10-28resolve: More precise spans for privacy errorsVadim Petrochenkov-4/+4
2018-10-17fix other tests failing due to change in case or new suggestion for extern crateFrançois Mockers-4/+5
2018-10-05Fix two UI tests with locale-dependent outputVadim Petrochenkov-14/+3
2018-09-20Disable rustfix temporarily on extern-const.rsRémy Rakic-26/+1
`src/test/ui/extern/extern-const.rs` seems to have an inconsistent behaviour across build configurations, possibly non-deterministically. This is tracked in issue 54388. For this PR, disable running rustfix on it because it failed on CI, until that issue is fixed.
2018-08-21Rollup merge of #53296 - estebank:suggest-closure, r=KodrAuskennytm-3/+5
When closure with no arguments was expected, suggest wrapping Fix #49694.
2018-08-17Stabilize `use_extern_macros`Vadim Petrochenkov-3/+1
2018-08-15update recently moved testsEsteban Küber-2/+4
2018-08-15When closure with no arguments was expected, suggest wrappingEsteban Küber-1/+1
2018-08-14Fixed 'no such file or directory' mismatch between Windows and Linux.David Wood-1/+4
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+508