about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-01-16Cancel processYuki Okushi-1/+1
2019-01-16Add new literal type ErrYuki Okushi-0/+6
2019-01-15[rust-gdb] relax the GDB version regexJosh Stone-1/+1
The pretty-printer script is checking `gdb.VERSION` to see if it's at least 8.1 for some features. With `re.match`, it will only find the version at the beginning of that string, but in Fedora the string is something like "Fedora 8.2-5.fc29". Using `re.search` instead will find the first location that matches anywhere, so it will find my 8.2.
2019-01-15update test outputmark-12/+60
2019-01-15Fixes text becoming invisible when element targettedGuillaume Gomez-14/+2
2019-01-15Move spin_loop_hint to core::hint moduleClar Fon-9/+27
2019-01-15update/add testsmark-8/+183
2019-01-15fix nested matchers with ?mark-4/+10
2019-01-15Auto merge of #57629 - matthiaskrgr:clippy_submodule_upd, r=oli-obkbors-10/+15
submodules: update clippy from c63b6349 to 1b89724b Changes: ```` Really fix issue number in `map_clone` test Fix issue number in `map_clone` test Remove `map_clone` fixed known problem Fix `map_clone` bad suggestion Add run-rustfix to unnecessary_fold Add run-rustfix to unit_arg test Add run-rustfix for types test Add run-rustfix to starts_ends_with Add run-rustfix to replace_const test Add run-rustfix to redundant_field_names Missing docs: don't require documenting Global Asm items. Add run-rustfix for precedence test Add run-rustfix to mem_replace test Add run-rustfix to map_clone test Add run-rustfix to large_digit_groups Add run-rustfix to into_iter_on_ref Add run-rustfix to infallible_destructuring_match Add rustfix to inconsistent_digit_grouping test Add run-rustfix to explicit_write test Add run-rustfix to excessive_precision test Add run-rustfix to duration_subsec test Disable deprecated_cfg_attr lint for inner attributes Add run-rustfix to collapsible_if test Update Readme Update Readme for (arguably) better readability rustup: the features if_while_or_patterns has been stabilized Fix comments in clippy_lints/src/len_zero.rs readme: update travis badge to reflect migration from travis-ci.org to travis-ci.com Remove all copyright license headers Move cast_ref_to_mut list to correctness group Rustftmt Don't import ty::Ref in cast_ref_to_mut lint Move a hint to an error message in cast_ref_to_mut lint Add a note to cast_ref_to_mut lint Use ty::Ref instead of ty::TyKind::Ref cast_ref_to_mut lint Add missing ` in default lint Improve tests and exclude nested impls Update `unwrap_get` code review suggestions Update known problems Restrict use_self on nested items Improve `get_unwrap` suggestion ````
2019-01-15Fix sources sidebar not showing upGuillaume Gomez-3/+1
2019-01-15Make the query comment into a doc commentIgor Matuszewski-1/+2
2019-01-15use structured macro and path resolve suggestionsAndy Russell-20/+44
2019-01-15Remove an unused function argumentOliver Scherer-74/+4
2019-01-15Auto merge of #57630 - Centril:rollup, r=Centrilbors-35/+417
Rollup of 8 pull requests Successful merges: - #56044 (Drop partially bound function parameters in the expected order) - #57352 (forbid manually impl'ing one of an object type's marker traits) - #57456 (RawVec doesn't always abort on allocation errors) - #57467 (Implement `check_attribute` to forbid `#[allow_internal_unsafe]`) - #57579 (Add core::iter::once_with()) - #57587 (Add 'rustc-env:RUST_BACKTRACE=0' to const-pat-ice test) - #57608 (Simplify 'product' factorial example) - #57614 ([rustdoc] Fix crates filtering box not being filled) Failed merges: r? @ghost
2019-01-15Rollup merge of #57614 - GuillaumeGomez:fix-crate-filtering, r=QuietMisdreavusMazdak Farrokhzad-1/+1
[rustdoc] Fix crates filtering box not being filled Currently, the filter crate box (at the left of the search input) is always empty. To get the number of keys of dictionary in JS, you need to call `Object.keys()` on it. r? @QuietMisdreavus
2019-01-15Rollup merge of #57608 - timvisee:master, r=frewsxcvMazdak Farrokhzad-1/+1
Simplify 'product' factorial example This simplifies the [`factorial(n: 32)`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#examples-46) implementation as example for the `Iterator::product()` function. It currently uses unnecessary additional complexity. Although very minimal, I do not want to include it in some other irrelevant PR.
2019-01-15Rollup merge of #57587 - Aaron1011:fix/const-pat-ice, r=alexcrichtonMazdak Farrokhzad-0/+1
Add 'rustc-env:RUST_BACKTRACE=0' to const-pat-ice test This ensures that the test passes, regardless of what the user has set RUST_BACKTRACE to.
2019-01-15Rollup merge of #57579 - stjepang:once-with, r=SimonSapinMazdak Farrokhzad-0/+135
Add core::iter::once_with() Functions `iter::once()` and `iter::repeat()` construct iterators from values. The latter has the lazy variant `iter::repeat_with()`, but the former doesn't. This PR therefore adds `iter::once_with()`. Another way to think of `iter::once_with()` is that it's a function that converts `FnOnce() -> T` into `Iterator<Item = T>`. If this seems like a reasonable addition, I'll open a tracking issue and update the `#[feature(...)]` attributes.
2019-01-15Rollup merge of #57467 - JohnTitor:implement-the-check-attribute-1, r=oli-obkMazdak Farrokhzad-21/+58
Implement `check_attribute` to forbid `#[allow_internal_unsafe]` Fixes #56768. r? @oli-obk
2019-01-15Rollup merge of #57456 - fintelia:patch-4, r=dtolnayMazdak Farrokhzad-1/+1
RawVec doesn't always abort on allocation errors
2019-01-15Rollup merge of #57352 - arielb1:no-manual-markers, r=nikomatsakisMazdak Farrokhzad-4/+145
forbid manually impl'ing one of an object type's marker traits This shouldn't break compatibility for crates that do not use `feature(optin_builtin_traits)`, because as the test shows, it is only possible to impl a marker trait for a trait object in the crate the marker trait is defined in, which must define `feature(optin_builtin_traits)`. Fixes #56934. r? @nikomatsakis
2019-01-15Rollup merge of #56044 - matthewjasper:function-param-drop-order, r=cramertjMazdak Farrokhzad-7/+75
Drop partially bound function parameters in the expected order Given the function ```rust fn foo((_x, _): (LogDrop, LogDrop), (_, _y): (LogDrop, LogDrop)) {} ``` Prior to 1.12.0 we dropped both `_x` and `_y` before the rest of their respective parameters, since then we dropped `_x` and `_y` after. The original order appears to be the correct order, as the value created later is dropped first, so we revert to that order and add a test for it. While this is technically a breaking change, I can't work out how anyone could be relying on this without making their code very brittle. If this is considered to be too likely to break real world code then I can revert the change and change the test to check for the current order.
2019-01-15Querify entry_fnIgor Matuszewski-110/+116
2019-01-15submodules: update clippy from c63b6349 to 1b89724bMatthias Krüger-10/+15
Changes: ```` Really fix issue number in `map_clone` test Fix issue number in `map_clone` test Remove `map_clone` fixed known problem Fix `map_clone` bad suggestion Add run-rustfix to unnecessary_fold Add run-rustfix to unit_arg test Add run-rustfix for types test Add run-rustfix to starts_ends_with Add run-rustfix to replace_const test Add run-rustfix to redundant_field_names Missing docs: don't require documenting Global Asm items. Add run-rustfix for precedence test Add run-rustfix to mem_replace test Add run-rustfix to map_clone test Add run-rustfix to large_digit_groups Add run-rustfix to into_iter_on_ref Add run-rustfix to infallible_destructuring_match Add rustfix to inconsistent_digit_grouping test Add run-rustfix to explicit_write test Add run-rustfix to excessive_precision test Add run-rustfix to duration_subsec test Disable deprecated_cfg_attr lint for inner attributes Add run-rustfix to collapsible_if test Update Readme Update Readme for (arguably) better readability rustup: the features if_while_or_patterns has been stabilized Fix comments in clippy_lints/src/len_zero.rs readme: update travis badge to reflect migration from travis-ci.org to travis-ci.com Remove all copyright license headers Move cast_ref_to_mut list to correctness group Rustftmt Don't import ty::Ref in cast_ref_to_mut lint Move a hint to an error message in cast_ref_to_mut lint Add a note to cast_ref_to_mut lint Use ty::Ref instead of ty::TyKind::Ref cast_ref_to_mut lint Add missing ` in default lint Improve tests and exclude nested impls Update `unwrap_get` code review suggestions Update known problems Restrict use_self on nested items Improve `get_unwrap` suggestion ````
2019-01-15Address commentsJohn Kåre Alsaker-4/+7
2019-01-15Optimize try_mark_green and eliminate the lock on dep node colorsJohn Kåre Alsaker-116/+117
2019-01-15Add missing unpretty option help messageHirokazu Hata-3/+9
2019-01-15Fix testsYuki Okushi-32/+11
2019-01-15Change from _ to NoneYuki Okushi-1/+1
2019-01-15Restore error messageYuki Okushi-2/+3
2019-01-15Stabilize FileExt::read_exact_at/write_all_atDror Levin-4/+2
Closes #51984.
2019-01-15Pass a default value when unwrapping a spanAB1908-1/+1
Fixes #57323
2019-01-14stabilize extern_crate_selfRyan Leckey-28/+49
2019-01-15Auto merge of #57130 - ↵bors-20/+134
VardhanThigle:Vardhan/x86_64-fortanix-unknown-sgx-tier2_support, r=alexcrichton Upgrade x86_64-fortanix-unknown-sgx platform support to tier 2 ## Overview 1. This PR upgrades x86_64-fortanix-unknown-sgx platform support to tier 2 (std only) by setting up build automation for this target. 1. For supporting unwinding, this target needs to link to a port of LLVM's libunwind (more details could be found in #56979), which will be distributed along with the Rust binaries (similar to the extra musl objects) ### Building and copying libunwind: We have added a new build script (`build-x86_64-fortanix-unknown-sgx-toolchain.sh`) that will run while the container is built. This will build `libunwind.a` from git source. While the container is built, the persistent volumes where obj/ gets created aren't yet mapped. As a workaround, we copy the built `libunwind.a` to `obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-fortanix-unknown-sgx/lib/` after x.py runs. If any reviewer knows of a better solution, please do tell. r? @Mark-Simulacrum
2019-01-14rustdoc: check code block syntax in early passAndy Russell-73/+476
2019-01-14generalize markdown to source span calculationAndy Russell-59/+87
2019-01-15Address commentsJohn Kåre Alsaker-3/+5
2019-01-15Make privacy checking, intrinsic checking and liveness checking incrementalJohn Kåre Alsaker-18/+121
2019-01-15Fix crates filtering box not being filledGuillaume Gomez-1/+1
2019-01-14Auto merge of #57607 - Centril:rollup, r=Centrilbors-496/+715
Rollup of 8 pull requests Successful merges: - #57043 (Fix poor worst case performance of set intersection) - #57480 (Clean up and fix a bug in query plumbing) - #57481 (provide suggestion for invalid boolean cast) - #57540 (Modify some parser diagnostics to continue evaluating beyond the parser) - #57570 (Querify local `plugin_registrar_fn` and `proc_macro_decls_static`) - #57572 (Unaccept `extern_in_paths`) - #57585 (Recover from item trailing semicolon) - #57589 (Add a debug_assert to Vec::set_len) Failed merges: r? @ghost
2019-01-15fix test output changing in rebaseAriel Ben-Yehuda-2/+2
2019-01-15Add error checkYuki Okushi-9/+30
2019-01-15Add testYuki Okushi-0/+30
2019-01-15Make UnsafeCode EarlyLintPassYuki Okushi-22/+20
2019-01-15Run lint for unsafe on the astYuki Okushi-1/+1
2019-01-15Add PartialEqYuki Okushi-2/+2
2019-01-14Simplify 'product' factorial exampletimvisee-1/+1
2019-01-14Rollup merge of #57589 - scottmcm:vec-set_len-debug_assert, r=alexcrichtonMazdak Farrokhzad-0/+2
Add a debug_assert to Vec::set_len Following the precedent of https://github.com/rust-lang/rust/pull/52972, which found https://github.com/llogiq/bytecount/pull/42. (This may well make a test fail; let's see what Travis says.)
2019-01-14Rollup merge of #57585 - estebank:trailing-semicolon, r=petrochenkovMazdak Farrokhzad-30/+113
Recover from item trailing semicolon CC https://github.com/rust-lang/rfcs/pull/2479 r? @petrochenkov
2019-01-14Rollup merge of #57572 - Centril:unaccept-extern-in-path, r=petrochenkovMazdak Farrokhzad-233/+62
Unaccept `extern_in_paths` Based on completed fcp-close in https://github.com/rust-lang/rust/issues/55600, this removes `extern_in_path` (e.g. `extern::foo::bar`) from the language. The changes are primarily reversing https://github.com/rust-lang/rust/commit/32db83b16e06cb5cca72d0e6a648a8008eda0fac. Closes https://github.com/rust-lang/rust/issues/55600 r? @petrochenkov