summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2018-12-02Update RLS on betaNick Cameron-0/+0
2018-11-29Update rustfmt to build on all archesAlex Crichton-6/+0
cc #56261
2018-11-22Update clippy submoduleOliver Scherer-5/+5
2018-11-20Update RLS and RustfmtNiko Matsakis-5/+5
2018-11-20Update clippy module to fix breakageAlex Crichton-19/+5
2018-11-20Add temporary renames to manifests for rustfmt/clippyAlex Crichton-0/+2
This will be part of our strategy for shipping renamed versions of these components for the Rust 2018 edition. Closes #55967
2018-11-16Update Cargo to stabilized renamed dependenciesAlex Crichton-0/+0
This commit updates Cargo on the beta branch to include a stabilization of renamed dependencies in manifests.
2018-11-14[beta]: Update Cargo submoduleAlex Crichton-0/+0
Bring in rust-lang/cargo#6312 to the edition release! Closes #55954
2018-11-09[beta]: Update Cargo's submoduleAlex Crichton-0/+0
Hopefully a routine update to the rust-1.31.0 branch!
2018-10-29[beta]: Prepare the 1.31.0 stable releaseAlex Crichton-0/+0
* Update to Cargo's branched 1.31.0 branch * Update bootstrap compiler to stable 1.30.0 * Update the channel to `beta`
2018-10-25Rollup merge of #55269 - matthiaskrgr:typos_oct, r=zackmdavisPietro Albini-1/+1
fix typos in various places
2018-10-25Rollup merge of #55245 - matthiaskrgr:clippy, r=nikomatsakisPietro Albini-14/+14
submodules: update clippy from 5afdf8b7 to b1d03437 Just a routine update. Changes: ```` new_ret_no_self: add sample from #3313 to Known Problems section. Support multiline comments and hopefully fix panic Check for comments in collapsible ifs Resolve ICE in needless range loop lint RIIR update_lints: Update changelog links Rename if_let_redundant_pattern_matching to redundant_pattern_matching Add lint for redundant pattern matching for explicit return boolean Fix issue #3322: reword help message for len_zero Simplify manual_memcpy suggestion in some cases Fix dogfood Update known problems for unnecessary_fold RIIR update_lints: Replace lint count in README.md Rename `active_lints` to `usable_lints` Add comment on WalkDir vs. fs::read_dir sort_by -> sort_by_key Some more documentation for clippy_dev Use `WalkDir` to also gather from subdirectories Avoid linting `boxed_local` on trait implementations. Website: Make lint categories linkable Restore clippy_dummy's placeholder name Swap order of methods in `needless_range_loop` suggestion in some cases Revert "Exclude pattern guards from unnecessary_fold lint" Exclude pattern guards from unnecessary_fold lint ````
2018-10-23fix typos in various placesMatthias Krüger-1/+1
2018-10-21Auto merge of #55236 - petrochenkov:pfail, r=davidtwcobors-8/+5
Move parse-fail tests to UI cc https://github.com/rust-lang/rust/issues/53353 r? @davidtwco
2018-10-21submodules: update clippy from 5afdf8b7 to b1d03437Matthias Krüger-14/+14
Changes: ```` new_ret_no_self: add sample from #3313 to Known Problems section. Support multiline comments and hopefully fix panic Check for comments in collapsible ifs Resolve ICE in needless range loop lint RIIR update_lints: Update changelog links Rename if_let_redundant_pattern_matching to redundant_pattern_matching Add lint for redundant pattern matching for explicit return boolean Fix issue #3322: reword help message for len_zero Simplify manual_memcpy suggestion in some cases Fix dogfood Update known problems for unnecessary_fold RIIR update_lints: Replace lint count in README.md Rename `active_lints` to `usable_lints` Add comment on WalkDir vs. fs::read_dir sort_by -> sort_by_key Some more documentation for clippy_dev Use `WalkDir` to also gather from subdirectories Avoid linting `boxed_local` on trait implementations. Website: Make lint categories linkable Restore clippy_dummy's placeholder name Swap order of methods in `needless_range_loop` suggestion in some cases Revert "Exclude pattern guards from unnecessary_fold lint" Exclude pattern guards from unnecessary_fold lint ````
2018-10-21Remove the parse-fail test suiteVadim Petrochenkov-8/+5
2018-10-21Auto merge of #55125 - RalfJung:stacked-borrows, r=oli-obkbors-19/+5
miri engine: Hooks for basic stacked borrows r? @oli-obk
2018-10-20Update Cargo, build curl/OpenSSL statically via featuresAlex Crichton-11/+16
In addition to to updating Cargo's submodule and Cargo's dependencies, this also updates Cargo's build to build OpenSSL statically into Cargo as well as libcurl unconditionally. This removes OpenSSL build logic from the bootstrap code, and otherwise requests that even on OSX we build curl statically.
2018-10-21update miriRalf Jung-19/+5
2018-10-19ignore target foldersDouglas Campos-0/+1
when you try to edit a crate inside the compiler tree using rls, it generates it's assets under target/rls, then tidy is trying to validate line lenghts for C headers, etc
2018-10-19Auto merge of #55004 - oli-obk:sized_static, r=cramertjbors-0/+0
Check the type of statics and constants for `Sized`ness fixes #54410
2018-10-18Rollup merge of #54964 - tromey:run-both-gdb-and-lldb-tests, r=nikomatsakiskennytm-47/+176
Run both lldb and gdb tests Currently lldb tests are run only on macOS, and gdb tests are only run elsewhere. This patch changes this to run tests depending on what is available. One test is changed, as it was previously marked as failing on macOS, whereas really it is a generic failure with lldb. Closes #54721
2018-10-17Change NLL compare mode to borrowck=migrate.David Wood-1/+1
This commit changes the NLL compare mode to pass `-Z borrowck=migrate` rather than `-Z borrowck=nll` to better test what will be deployed. It does not include the test output updates, as separation of these commits makes reviewing simpler.
2018-10-16Update cargo submoduleOliver Scherer-0/+0
2018-10-15Auto merge of #55084 - matthiaskrgr:clippy, r=oli-obkbors-5/+19
submodules: update clippy from 9d337313 to 5afdf8b7 Should fix toolstate. Changes: ```` fix for rustc master mem_forget: fix syntax error in code sample explicit_counter_loop fix #3308 false positive new_ret_no_self test remove tool lints cfg flag Added new_ret_no_self exception to clippy to pass dogfood tests Removed new_ret_no_self tests from method.rs new_ret_no_self correctly lint impl return Removed unused variables new_ret_no_self fix false positive for impl trait return with associated type self new_ret_no_self corrected panic and added test stderr new_ret_no_self added positive test cases Fix some more `stutter` warnings unused unit lint Install Windows SDK 10.0 on travis cmp_owned refactor cmp_owned correct error message if rhs is deref Add a comment reminding to update README if the default changes Specify which categories are enabled by default Only run markdown linter on linux Move Travis Windows build to allowed failures Add Travis windows build Fix `doc_markdown` lints Fix `stutter` lints Fix `similar_names` warnings cmp_owned current suggestion for multiple deref cmp_owned add test for multiple dereference Corrected single-character string constant used as pattern found in dogfood test Fixes 3289, cmp_owned wording and false positive ````
2018-10-15submodules: update clippy from 9d337313 to 5afdf8b7Matthias Krüger-5/+19
Changes: ```` fix for rustc master mem_forget: fix syntax error in code sample explicit_counter_loop fix #3308 false positive new_ret_no_self test remove tool lints cfg flag Added new_ret_no_self exception to clippy to pass dogfood tests Removed new_ret_no_self tests from method.rs new_ret_no_self correctly lint impl return Removed unused variables new_ret_no_self fix false positive for impl trait return with associated type self new_ret_no_self corrected panic and added test stderr new_ret_no_self added positive test cases Fix some more `stutter` warnings unused unit lint Install Windows SDK 10.0 on travis cmp_owned refactor cmp_owned correct error message if rhs is deref Add a comment reminding to update README if the default changes Specify which categories are enabled by default Only run markdown linter on linux Move Travis Windows build to allowed failures Add Travis windows build Fix `doc_markdown` lints Fix `stutter` lints Fix `similar_names` warnings cmp_owned current suggestion for multiple deref cmp_owned add test for multiple dereference Corrected single-character string constant used as pattern found in dogfood test Fixes 3289, cmp_owned wording and false positive ````
2018-10-14update miriRalf Jung-5/+19
2018-10-13submodules: update cargo from ad6e5c00 to 5dbac988Matthias Krüger-0/+0
Changes: Switch to use crates-io as the registry name and don't include publish when registry is not specified fix redundant pkgid generation validate some basic properties of a valid resolve Detail dep name in invalid version error Fix dashes in rename dependencies. Bump flate2 to 1.0.3 Add default in config document Add support for providing a default registry Add support for registry to new and init use impl Iterator instead of custom types in `source` let jetbrains reorder some impls to match the definition use impl Iterator instead of custom types in resolver and graph remove Graph::sort as it is unused fmt Bump libgit2-sys to 0.7.9 Switch to use registry Allow registry option for cargo install. Second attempt at fixing msys terminal width. Try to improve "version not found" error Fix typo
2018-10-13submodules: update rls from 15d4d4a to 440a985Matthias Krüger-0/+0
Changes: Apply Clippy lints Respect build_dir when creating external build plans Fix Windows tests Implement external build plan Detect manifest diagnostic position for toml::de::Error Fix std::sync hover doc expectation Apply CI specific long timeout Propagate cargo errors as manifest diagnostics Add test for use statement function completions Refactor cmd test `within_timeout` Avoid stdout-writer/rls process exit race Improve cmd test "no shutdown response" error message Add RUST_BACKTRACE=1 to ci env Improve cmd test timeout reliability Fix use statement function suggestions Revert "Revert "Remove "edition" Cargo feature (it's stable now)"" Add build_wait() tests Automatically tune wait_to_build Rework cmd tests Fixes #54697
2018-10-13submodules: update clippy from 32b1d1fc to 9d337313Matthias Krüger-19/+5
Changes: Remove now-useless `allow(unknown_lints)` Stabilize tool lints Use `impl Iterator` in arg position in clippy_dev Fix fn_to_numeric_cast_with_truncation suppression Limit commutative assign op lint to primitive types Clarify code Fix #2937 Fix cast_possible_wrap and cast_sign_loss warnings Fix cast_possible_truncation warnings Fixes #2925 cmp_owned false positive if_let_redundant_pattern_matching: use Span.to() instead of Span.with_hi() to fix crash. Improve diagnostics in case of lifetime elision (closes #3284) Fix items_after_statements for `const`s Fix items_after_statements for sub-functions Fix items_after_statements for `use` statements Don't suggest cloned() for map Box deref Fix excessive_precision false positive Fix FP in `fn_to_numeric_cast_with_truncation` new_without_default should not warn about unsafe new fix command to manually test an example Add license to README Adding more detail to filter_map lint documentation. additional people Add license header to other files Add license header to Rust files Relicense clippy Document relicensing process Fix util/export.py to include lints from methods
2018-10-13update miriRalf Jung-5/+5
2018-10-10Run both lldb and gdb testsTom Tromey-47/+176
Currently lldb tests are run only on macOS, and gdb tests are only run elsewhere. This patch changes this to run tests depending on what is available. One test is changed, as it was previously marked as failing on macOS, whereas really it is a generic failure with lldb. Closes #54721
2018-10-10Auto merge of #54764 - tromey:test-rust-lldb, r=alexcrichtonbors-7/+44
Run debuginfo tests against rust-enabled lldb, when possible If the rust-enabled lldb was built, then use it when running the debuginfo tests. Updating the lldb submodule was necessary as this needed a way to differentiate the rust-enabled lldb, so I added a line to the --version output. This adds compiletest commands to differentiate between the rust-enabled and non-rust-enabled lldb, as is already done for gdb. A new "rust-lldb" header directive is also added, but not used in this patch; I plan to use it in #54004. This updates all the tests.
2018-10-09update miriRalf Jung-5/+5
2018-10-08Run debuginfo tests against rust-enabled lldb, when possibleTom Tromey-7/+44
If the rust-enabled lldb was built, then use it when running the debuginfo tests. Updating the lldb submodule was necessary as this needed a way to differentiate the rust-enabled lldb, so I added a line to the --version output. This adds compiletest commands to differentiate between the rust-enabled and non-rust-enabled lldb, as is already done for gdb. A new "rust-lldb" header directive is also added, but not used in this patch; I plan to use it in #54004. This updates all the tests.
2018-10-07Auto merge of #54451 - alexcrichton:no-mangle-extern-linkage, r=michaelwoeristerbors-2/+2
rustc: Allow `#[no_mangle]` anywhere in a crate This commit updates the compiler to allow the `#[no_mangle]` (and `#[export_name]` attributes) to be located anywhere within a crate. These attributes are unconditionally processed, causing the compiler to always generate an exported symbol with the appropriate name. After some discussion on #54135 it was found that not a great reason this hasn't been allowed already, and it seems to match the behavior that many expect! Previously the compiler would only export a `#[no_mangle]` symbol if it were *publicly reachable*, meaning that it itself is `pub` and it's otherwise publicly reachable from the root of the crate. This new definition is that `#[no_mangle]` *is always reachable*, no matter where it is in a crate or whether it has `pub` or not. This should make it much easier to declare an exported symbol with a known and unique name, even when it's an internal implementation detail of the crate itself. Note that these symbols will persist beyond LTO as well, always making their way to the linker. Along the way this commit removes the `private_no_mangle_functions` lint (also for statics) as there's no longer any need to lint these situations. Furthermore a good number of tests were updated now that symbol visibility has been changed. Closes #54135
2018-10-06rustc: Allow `#[no_mangle]` anywhere in a crateAlex Crichton-2/+2
This commit updates the compiler to allow the `#[no_mangle]` (and `#[export_name]` attributes) to be located anywhere within a crate. These attributes are unconditionally processed, causing the compiler to always generate an exported symbol with the appropriate name. After some discussion on #54135 it was found that not a great reason this hasn't been allowed already, and it seems to match the behavior that many expect! Previously the compiler would only export a `#[no_mangle]` symbol if it were *publicly reachable*, meaning that it itself is `pub` and it's otherwise publicly reachable from the root of the crate. This new definition is that `#[no_mangle]` *is always reachable*, no matter where it is in a crate or whether it has `pub` or not. This should make it much easier to declare an exported symbol with a known and unique name, even when it's an internal implementation detail of the crate itself. Note that these symbols will persist beyond LTO as well, always making their way to the linker. Along the way this commit removes the `private_no_mangle_functions` lint (also for statics) as there's no longer any need to lint these situations. Furthermore a good number of tests were updated now that symbol visibility has been changed. Closes #54135
2018-10-06submodules: update clippy to 32b1d1fc157f71ed2f10b60fe28abe087a743618 to fix ↵Matthias Krüger-14/+14
tests.
2018-10-04Add features to the workspace hackOliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer-1/+5
2018-10-03Update clippyManish Goregaokar-14/+18
2018-10-02Rollup merge of #54648 - alexcrichton:update-cargo, r=nikomatsakisPietro Albini-0/+0
Update Cargo's submodule Bring in a few updates and fixes, mostly a standard update.
2018-10-02Update clippyManish Goregaokar-14/+14
2018-09-29update miriRalf Jung-5/+5
2018-09-29Rollup merge of #54645 - tromey:android-gdb-version, r=alexcrichtonkennytm-203/+225
Compute Android gdb version in compiletest compiletest has special code for running gdb for Android targets. In particular it computes a different path to gdb. However, this gdb is not used for the version test, which results in some tests being run when they should not be. You can see this in #54004. This patch moves the special case to analyze_gdb and a new helper function to decide whether the case applies. This causes the version check to work properly. Note that the bulk of the runtest.rs change is just reindentation caused by moving from a "match" to an "if" -- but there is a (small) change buried in there.
2018-09-29Rollup merge of #54567 - tromey:paths-in-stamp-hashes, r=Mark-Simulacrumkennytm-0/+13
Include path in stamp hash for debuginfo tests The debuginfo tests are exposed to the environment in a couple of ways: the path to the gdb executable matters, as does the Python path used when loading lldb. This patch incorporates these paths into the hash that is written to the stamp file, so that changing the path will cause the tests to be re-run.
2018-09-28Update Cargo's submoduleAlex Crichton-0/+0
Bring in a few updates and fixes, mostly a standard update.
2018-09-28Compute Android gdb version in compiletestTom Tromey-203/+225
compiletest has special code for running gdb for Android targets. In particular it computes a different path to gdb. However, this gdb is not used for the version test, which results in some tests being run when they should not be. You can see this in #54004. This patch moves the special case to analyze_gdb and a new helper function to decide whether the case applies. This causes the version check to work properly. Note that the bulk of the runtest.rs change is just reindentation caused by moving from a "match" to an "if" -- but there is a (small) change buried in there.
2018-09-28Fix RLS toolstate after #54356 mergeIgor Matuszewski-0/+0
2018-09-27Auto merge of #52319 - tinco:issue_12590, r=pnkfelixbors-5/+25
Track whether module declarations are inline (fixes #12590) To track whether module declarations are inline I added a field `inline: bool` to `ast::Mod`. The main use case is for pretty to know whether it should render the items associated with the module, but perhaps there are use cases for this information to not be forgotten in the AST.
2018-09-26update clippy submodule to a72e786cMatthias Krüger-14/+14
Fixes clippy build.