summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2016-04-11Fix a test on stableAlex Crichton-0/+1
2016-04-07fix compile-fail and parse-fail tests by blindly opting back intoFelix S. Klock II-11/+31
parser recovery (so that expected errors match up) I'm opting into parser recovery in all these cases out of expediency, not because the error messages you get with recovery enabled are actually all that usable in all cases listed.
2016-04-07syntax: Stop the bump loop for trait items at } and EOF.Eduard Burtescu-4/+19
backport of 221d0fbad0b201ef9264d3c9a30cd8c143ed51b2 to beta with hand-resolution of conflicts and reverting to `try!` syntax.
2016-03-16Add comment explaining purpose of testNiko Matsakis-0/+3
2016-03-16Do not report errors from regionck if other errors were alreadyNiko Matsakis-0/+24
reported during the lifetime of this inferencer. Fixes #30580.
2016-03-16remove wrong assert in check_matchAriel Ben-Yehuda-0/+20
the assert was invalidated by PR #31020 Fixes #31561
2016-03-16don't treat unit patterns as wildcard patternsAriel Ben-Yehuda-0/+29
Fixes #32004
2016-03-16truncate i8-s to i1-s when loading constantsAriel Ben-Yehuda-0/+19
Fixes #30891
2016-03-03Ignore a rustdoc test that does not work on betaBrian Anderson-0/+1
2016-03-01Auto merge of #31962 - sanxiyn:const-eval-map, r=arielb1bors-0/+21
Fix #31910.
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-29std: Stabilize APIs for the 1.8 releaseAlex Crichton-57/+14
This commit is the result of the FCPs ending for the 1.8 release cycle for both the libs and the lang suteams. The full list of changes are: Stabilized * `braced_empty_structs` * `augmented_assignments` * `str::encode_utf16` - renamed from `utf16_units` * `str::EncodeUtf16` - renamed from `Utf16Units` * `Ref::map` * `RefMut::map` * `ptr::drop_in_place` * `time::Instant` * `time::SystemTime` * `{Instant,SystemTime}::now` * `{Instant,SystemTime}::duration_since` - renamed from `duration_from_earlier` * `{Instant,SystemTime}::elapsed` * Various `Add`/`Sub` impls for `Time` and `SystemTime` * `SystemTimeError` * `SystemTimeError::duration` * Various impls for `SystemTimeError` * `UNIX_EPOCH` * `ops::{Add,Sub,Mul,Div,Rem,BitAnd,BitOr,BitXor,Shl,Shr}Assign` Deprecated * Scoped TLS (the `scoped_thread_local!` macro) * `Ref::filter_map` * `RefMut::filter_map` * `RwLockReadGuard::map` * `RwLockWriteGuard::map` * `Condvar::wait_timeout_with` Closes #27714 Closes #27715 Closes #27746 Closes #27748 Closes #27908 Closes #29866
2016-02-29Use HIR map instead of tcx in constant evaluatorSeo Sanghyeon-0/+21
Constant evaluator can be called while tcx is in construction.
2016-02-28Auto merge of #31902 - mitaa:rdoc-shorter, r=alexcrichtonbors-0/+70
fixes #31899 r? @alexcrichton
2016-02-27Auto merge of #31915 - nagisa:mir-unpretty-fix, r=arielb1bors-0/+15
Fixes https://github.com/rust-lang/rust/issues/31913
2016-02-27Add testSimonas Kazlauskas-0/+15
2016-02-27Clearly separate code blocks from other blocksmitaa-0/+70
For summary descriptions we need the first paragraph (adjacent lines until a blank line) - but the rendered markdown of a code block did not leave a blank line in the html and was thus included in the summary line.
2016-02-26Auto merge of #31903 - mitaa:rdoc-ghostly-impls, r=alexcrichtonbors-0/+36
fixes #29584 r? @alexcrichton
2016-02-26Don't inline impls from `doc(hidden)` modulesmitaa-0/+36
2016-02-26Rollup merge of #31904 - bluss:writer-formatter-error, r=alexcrichtonManish Goregaokar-0/+54
Make sure formatter errors are emitted by the default Write::write_fmt Previously, if an error was returned from the formatter that did not originate in an underlying writer error, Write::write_fmt would return successfully even if the formatting did not complete (was interrupted by an `fmt::Error` return). Now we choose to emit an io::Error with kind Other for formatter errors. Since this may reveal error returns from `write!()` and similar that previously passed silently, it's a kind of a [breaking-change]. Fixes #31879
2016-02-26Rollup merge of #31901 - bluss:suggest-use, r=sanxiynManish Goregaokar-8/+8
suggest: Put the `use` in suggested code inside the quotes Change import a trait suggestion from: help: candidate #1: use `std::io::Write` to help: candidate #1: `use std::io::Write` so that the code can be copied directly. Fixes #31864
2016-02-26Auto merge of #31857 - jseyfried:fix_scoping, r=nikomatsakisbors-0/+29
This fixes a bug (#31845) introduced in #31105 in which lexical scopes contain items from all anonymous module ancestors, even if the path to the anonymous module includes a normal module: ```rust fn f() { fn g() {} mod foo { fn h() { g(); // This erroneously resolves on nightly } } } ``` This is a [breaking-change] on nightly but not on stable or beta. r? @nikomatsakis
2016-02-26Make sure formatter errors are emitted by the default Write::write_fmtUlrik Sverdrup-0/+54
Previously, if an error was returned from the formatter that did not originate in an underlying writer error, Write::write_fmt would return successfully even if the formatting did not complete (was interrupted by an `fmt::Error` return). Now we choose to emit an io::Error with kind Other for formatter errors. Since this may reveal error returns from `write!()` and similar that previously passed silently, it's a kind of a [breaking-change].
2016-02-26Auto merge of #31749 - nikomatsakis:compiletest-subdir, r=alexcrichtonbors-0/+0
You can now group tests into directories like `run-pass/borrowck` or `compile-fail/borrowck`. By default, all `.rs` files within any directory are considered tests: to ignore some directory, create a placeholder file called `compiletest-ignore-dir` (I had to do this for several existing directories). r? @alexcrichton cc @brson
2016-02-26suggest: Put the `use` in suggested code inside the quotesUlrik Sverdrup-8/+8
Change import a trait suggestion from: help: candidate #1: use `std::io::Write` to help: candidate #1: `use std::io::Write` so that the code can be copied directly.
2016-02-25Auto merge of #30856 - mneumann:thread_local_extern, r=alexcrichtonbors-0/+43
This will correctly add the thread_local attribute to the external static variable ```errno```: ```rust extern { #[thread_local] static errno: c_int; } ``` Before this commit, the thread_local attribute is ignored. Fixes #30795. Thanks @alexcrichton for pointing out the solution.
2016-02-25Rollup merge of #31837 - mitaa:rdoc-inherent-assoc, r=alexcrichtonManish Goregaokar-0/+23
This effectively only records associated items from either inherent impls or trait definitions in the search-index. fixes #31808 r? @alexcrichton
2016-02-25Rollup merge of #31835 - mitaa:rdoc-global-src, r=alexcrichtonManish Goregaokar-0/+17
fixes #26995 r? @alexcrichton
2016-02-25Rollup merge of #31818 - GuillaumeGomez:error_display, r=brsonManish Goregaokar-0/+22
Fixes #31788
2016-02-25Rollup merge of #31362 - jseyfried:fix_extern_crate_visibility, r=nikomatsakisManish Goregaokar-38/+42
This PR changes the visibility of extern crate declarations to match that of items (fixes #26775). To avoid breakage, the PR makes it a `public_in_private` lint to reexport a private extern crate, and it adds the lint `inaccessible_extern_crate` for uses of an inaccessible extern crate. The lints can be avoided by making the appropriate `extern crate` declaration public.
2016-02-24Move the borrowck run-pass/compile-fail tests into their own directoriesNiko Matsakis-0/+0
as a test.
2016-02-24Add compiletest-ignore-dir to existing subdirectories.Niko Matsakis-0/+0
2016-02-24Fix source-links for files with absolute-pathsmitaa-0/+17
`clean_srcpath` tries to make the source-path relative to `src_root`, but this didn't work since `src_root` itself wasn't absolute.
2016-02-24Improve unused import detectionJeffrey Seyfried-0/+7
2016-02-24Resolve: include normal modules in the ribsJeffrey Seyfried-0/+22
2016-02-24Warn instead of error when using an inaccessable extern crateJeffrey Seyfried-5/+16
2016-02-24Warn when reexporting a private extern crateJeffrey Seyfried-0/+4
2016-02-24Fix the visibility of extern crate declarations and stop warning on pub ↵Jeffrey Seyfried-38/+27
extern crate
2016-02-23Don't show associated consts from trait implsmitaa-0/+23
2016-02-23Auto merge of #31822 - petrochenkov:derive, r=alexcrichtonbors-1/+46
Fixes https://github.com/rust-lang/rust/issues/29548
2016-02-22Auto merge of #30969 - Amanieu:extended_atomic_cmpxchg, r=alexcrichtonbors-0/+68
This is an implementation of rust-lang/rfcs#1443.
2016-02-22Add a test to make sure trans doesn't choke on any of the intrinsicsAmanieu d'Antras-0/+37
2016-02-22Fix #[derive] for empty structs with bracesVadim Petrochenkov-1/+46
2016-02-22Ignore test case on Windows.Michael Neumann-0/+1
Windows is not #[cfg(target_thread_local)] and as such should link to the external symbol. But it fails with: thread '<main>' panicked at 'assertion failed: `(left == right)` (left: `272246271`, right: `3`)', C:/bot/slave/auto-win-msvc-64-opt/build/src/test/run-pass/thread-local-extern-static.rs:24
2016-02-21Run thread-local-extern-static test only on supported platforms.Michael Neumann-2/+4
2016-02-21Auto merge of #31761 - Amanieu:volatile, r=alexcrichtonbors-1/+7
Tracking issue: #31756 RFC: rust-lang/rfcs#1467 I've made these unstable for now. Should they be stabilized straight away since we've had plenty of experience with people using the unstable intrinsics?
2016-02-20Add test for E0152 error message improvementGuillaume Gomez-0/+22
2016-02-20Auto merge of #31757 - petrochenkov:unitdotdot, r=nikomatsakisbors-11/+11
This warning was introduced on Nov 28, 2015 and got into 1.6 stable, it was later requalified from a hardwired warning to a warn-by-default lint. If this patch is landed soon enough, then `match_of_unit_variant_via_paren_dotdot` will get into 1.8 stable as a deny-by-default lint. My intention is to turn it into a hard error after March 3, 2016, then it will hit stable at 1.9. r? @nikomatsakis cc @pnkfelix
2016-02-20Auto merge of #31747 - jseyfried:stop_resolve_after_fail, r=nrcbors-2/+2
Now that #31461 is merged, a failing resolution can never become indeterminate or succeed, so we no longer have to keep trying to resolve failing import directives. r? @nrc
2016-02-20Fix test case. Needs no_mangle and aux-buildMichael Neumann-0/+4