about summary refs log tree commit diff
path: root/src/test/run-pass-valgrind
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-506/+0
2022-11-05Bless more testsMichael Goulet-2/+4
2022-10-13Fix testGary Guo-1/+1
2022-08-07Remove even more box syntax uses from src/testest31-9/+10
Prior work, notably 6550021124451628b1efc60c59284465b109e3aa from #88316 has removed box syntax from most of the testsuite. However, some tests were left out. This commit removes box_syntax uses from more locations in src/test. Some tests that are very box syntax specific are not being migrated.
2022-06-30Change enum->int casts to not go through MIR casts.Oli Scherer-1/+1
Instead we generate a discriminant rvalue and cast the result of that.
2022-06-02make cenum_impl_drop_cast deny-by-default and show up as future breakage ↵Ralf Jung-1/+1
diagnostic
2021-01-13Update tests for extern block lintingMark Rousskov-2/+4
2020-11-22Drop support for cloudabi targetsLzu Tao-1/+0
2020-10-27Add unsized_fn_params featureSantiago Pastorino-6/+3
2019-09-01Remove no-prefer-dynamic from valgrind testsMark Rousskov-17/+0
2019-05-16Added ignore-sgx for appropriate testsDario Gonzalez-0/+1
2018-12-25Remove licensesMark Rousskov-130/+0
2018-12-11std: Depend directly on crates.io cratesAlex Crichton-1/+1
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-10-24Remove license headers from unsized-locals tests.Masaki Hara-40/+0
2018-10-24Add tests for unsized-locals.Masaki Hara-0/+203
2018-08-19Implement simple codegen for unsized rvalues.Masaki Hara-0/+65
2018-08-05Convert unknown_features lint into an errorvarkor-1/+0
2018-06-11Remove some '#[feature]' attributes for stabilized featuresSimon Sapin-4/+1
2018-01-02Add 'ignore-cloudabi' to tests that don't and won't build on CloudABI.Ed Schouten-1/+2
It looks like many of these tests are already disabled on emscripten, which also doesn't seem to support environment variables and subprocess spawning. Just add a similar tag for CloudABI. While there, sort some of the lists of operating systems alphabetically.
2017-11-26Stabilize const-calling existing const-fns in stdSimon Sapin-1/+0
Fixes #46038
2017-09-24Add a run-pass-valgrind test for vecdeque issueSteven Fackler-0/+25
2017-09-16change #![feature(const_fn)] to specific gatesAlex Burka-1/+1
2017-06-29Move unsized_tuple_coercion behind a feature gate.Masaki Hara-0/+4
2017-06-29Split dst-dtor-{1,2} tests into four.Masaki Hara-4/+63
2017-06-29Add unsized tuple coercions.Masaki Hara-2/+4
2017-01-31Removes FIXMEs related to #22405Wesley Wiser-2/+0
2017-01-19travis: Get an emscripten builder onlineAlex Crichton-0/+2
This commit adds a new entry to the Travis matrix which will execute emscripten test suites. Along the way it updates a few bits of the test suite to continue passing on emscripten, such as: * Ignoring i128/u128 tests as they're presumably just not working (didn't investigate as to why) * Disabling a few process tests (not working on emscripten) * Ignore some num tests in libstd (#39119) * Fix some warnings when compiling
2016-10-18Fix some pretty printing testsVadim Petrochenkov-2/+0
2016-08-24Disable old trans access via -Z orbit, #[rustc_no_mir] or --disable-orbit.Eduard Burtescu-3/+2
2016-07-24move coerce-match{,-calls} into run-pass-valgrindTamir Duberstein-0/+55
Closes #21696.
2016-03-17Add #[rustc_no_mir] to make tests pass with -Z orbit.Eduard Burtescu-1/+4
2016-02-29test: Mark all rpass-valgrind as no-prefer-dynamicAlex Crichton-0/+11
This applies the same fix as added in 595d5b2f which is to just compile all valgrind tests statically instead of dynamically. It looks like this is a resurgence of either #30383 or #31328 in some weird fashion. I'm not actually sure what's going on with the bots, and it's unclear whether this is a valgrind bug or a libstd bug, but for now let's just get things landing again. Closes #30383
2016-02-19test: Fix a spuriously failing test on valgrindAlex Crichton-0/+2
It's unclear to me whether this test failing under valgrind is actually legit. The test only fails in valgrind when everything is dynamically linked, and it appears to work when statically linked. For now just add the `// no-prefer-dynamic` directive and let's just chalk it up to a weird valgrind issue. Closes #31328
2015-12-25update valgrind suppressionsTamir Duberstein-0/+3
2015-11-08valgrind: update suppressions and move interesting testsTamir Duberstein-0/+101
2015-06-13Use `assert_eq!` instead of `assert!` in testspetrochenkov-1/+1
2015-05-29add const_fn featuresNiko Matsakis-0/+1
2015-05-27Use `const fn` to abstract away the contents of UnsafeCell & friends.Eduard Burtescu-1/+1
2015-05-19Address review commetsAriel Ben-Yehuda-0/+44
I think I didn't run tests properly - my second call to select_all_obligations_or_error has made 3 tests fail. However, this is just an error message change - integer fallback never worked with casts.
2015-04-14test: Fix fallout in run-pass testsAlex Crichton-3/+2
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-1/+1
Now that support has been removed, all lingering use cases are renamed.
2015-03-23Require feature attributes, and add them where necessaryBrian Anderson-0/+2
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-1/+0
2015-03-03Switched to Box::new in many places.Felix S. Klock II-6/+4
Many of the modifications putting in `Box::new` calls also include a pointer to Issue 22405, which tracks going back to `box <expr>` if possible in the future. (Still tried to use `Box<_>` where it sufficed; thus some tests still have `box_syntax` enabled, as they use a mix of `box` and `Box::new`.) Precursor for overloaded-`box` and placement-`in`; see Issue 22181.
2015-02-28std: Implement stdio for `std::io`Alex Crichton-0/+1
This is an implementation of RFC 899 and adds stdio functionality to the new `std::io` module. Details of the API can be found on the RFC, but from a high level: * `io::{stdin, stdout, stderr}` constructors are now available. There are also `*_raw` variants for unbuffered and unlocked access. * All handles are globally shared (excluding raw variants). * The stderr handle is no longer buffered. * All handles can be explicitly locked (excluding the raw variants). The `print!` and `println!` machinery has not yet been hooked up to these streams just yet. The `std::fmt::output` module has also not yet been implemented as part of this commit.
2015-02-18Fallout: tests. As tests frequently elide things, lots of changesNiko Matsakis-2/+2
here. Some of this may have been poorly rebased, though I tried to be careful and preserve the spirit of the test.
2015-01-26Fallout of io => old_ioAlex Crichton-1/+1
2015-01-07Test fixes and rebase conflictsAlex Crichton-0/+5
2015-01-06FalloutNick Cameron-2/+2
2014-12-14Free stdin on exitSteven Fackler-0/+13