108604 Commits

Author SHA1 Message Date
Yuki Okushi
77263db96f
Rollup merge of #69954 - RalfJung:panic_if-assert, r=Centril,eddyb
rename panic_if_ intrinsics to assert_

[Suggested by @eddyb](https://github.com/rust-lang/miri/issues/1222#issuecomment-598087523)
2020-03-14 04:03:31 +09:00
Yuki Okushi
995e584678
Rollup merge of #69949 - rust-lang:triagebot-ping-alias, r=Mark-Simulacrum
triagebot.toml: add ping aliases

I think I got the syntax right.
Closes https://github.com/rust-lang/triagebot/issues/402.

r? @Mark-Simulacrum
cc @pnkfelix
2020-03-14 04:03:29 +09:00
Yuki Okushi
78d722f0c7
Rollup merge of #69947 - GuillaumeGomez:cleanup-e0423, r=Dylan-DPC
Clean up E0423 explanation

r? @Dylan-DPC
2020-03-14 04:03:28 +09:00
Yuki Okushi
c13548dccd
Rollup merge of #69809 - matthiaskrgr:lifetimes, r=eddyb
remove lifetimes that can be elided (clippy::needless_lifetimes)
2020-03-14 04:03:26 +09:00
Yuki Okushi
8e17c8366c
Rollup merge of #69802 - matthiaskrgr:cl1ppy, r=Dylan-DPC
fix more clippy findings

* reduce references on match patterns (clippy::match_ref_pats)
* Use writeln!(fmt, "word") instead of write!(fmt, "word\n") (clippy::write_with_newline)
* libtest: remove redundant argument to writeln!() (clippy::writeln_empty_string)
* remove unneeded mutable references (cippy::unnecessary_mut_passed)
* libtest: declare variables as floats instead of casting them (clippy::unnecessary_cast)
* rustdoc: remove redundant static lifetimes (clippy::redundant_static_lifetimes)
* call .as_deref() instead of .as_ref().map(Deref::deref) (clippy::option_as_ref_deref)
* iterate over a maps values directly. (clippy::for_kv_map)
* rustdoc: simplify boolean condition (clippy::nonminimal_bool)
* Use ?-operator in more places (clippy::question_mark, had some false negatives fixed recently)
* rustdoc: Use .any(p) instead of find(p).is_some(). (clippy::search_is_some)
* rustdoc: don't call into_iter() on iterator. (clippy::identity_conversion)
2020-03-14 04:03:24 +09:00
Yuki Okushi
35df9cca7c
Rollup merge of #69723 - sjud:sjud-doc-request, r=Mark-Simulacrum
Added doc on keyword Pub.

Hi, this is my first pull request. I hope it's OK. Please let me know if it would benefit from any changes. Thank you.
2020-03-14 04:03:23 +09:00
Yuki Okushi
913a933202
Rollup merge of #69460 - LeSeulArtichaut:move-compile-pass, r=RalfJung
Move some `build-pass` tests to `check-pass`

Helps with #62277.

r? @cramertj cc @Centril
2020-03-14 04:03:22 +09:00
Yuki Okushi
5d90154886
Rollup merge of #69403 - LeSeulArtichaut:copy-ioslice, r=sfackler
Implement `Copy` for `IoSlice`

Resolves #69395

r? @sfackler
2020-03-14 04:03:20 +09:00
Mark Mansi
a58b17f2b5 update rustdocs for frozen 2020-03-13 13:36:16 -05:00
Mark Mansi
da4e33a9e6 move frozen to rustc_data_structures 2020-03-13 13:28:25 -05:00
bors
d6072319a9 Auto merge of #69155 - chrissimpkins:llvm-globals, r=eddyb
Add support for LLVM globals corresponding to miri allocations should be named alloc123

Adds support for this request from @eddyb in #69134:

> That is, if -Zfewer-names is false (usually only because of --emit=llvm-ir), we should use the same name for LLVM globals we generate out of miri allocs as #67133 does in MIR output (allocN).
>
>This way, we can easily see the mapping between MIR and LLVM IR (and it shouldn't be any costlier for regular compilation, which would continue to use unnamed globals).

r? @eddyb
cc @oli-obk
2020-03-13 16:10:20 +00:00
sjud
87f8ee675e Add documentation for pub keyword 2020-03-13 11:12:59 -04:00
Guillaume Gomez
a36bf9c1b8 Clean up E0434 explanation 2020-03-13 14:36:14 +01:00
Trevor Spiteri
08a7fa6dd8 update stable-since version for const_int_conversion 2020-03-13 14:25:35 +01:00
Oliver Scherer
6ca65bdd75 Print ConstKind::Placeholder just like TyKind::Placeholder 2020-03-13 10:55:57 +01:00
Oliver Scherer
306df94ed3 Print ConstKind::Bound the same as TyKind::Bound 2020-03-13 10:48:41 +01:00
Ralf Jung
13ea774513 bless tests 2020-03-13 08:52:04 +01:00
Ralf Jung
f61fb53af4 adjust enum naming 2020-03-13 08:43:27 +01:00
Yuki Okushi
7c987eb020
Add test for issue-69092 2020-03-13 16:06:09 +09:00
Yuki Okushi
3609bac340
Add test for issue-67739 2020-03-13 16:06:08 +09:00
Yuki Okushi
a2c41e9cdc
Add test for issue-62504 2020-03-13 16:06:08 +09:00
Yuki Okushi
0efc2cf547
Add test for issue-60390 2020-03-13 16:06:08 +09:00
Yuki Okushi
081e32baba
Add test for issue-58490 2020-03-13 16:06:07 +09:00
Ayush Kumar Mishra
c33c88bcbd Minor change 2020-03-13 10:52:41 +05:30
iximeow
28eeea630f fix formatting 2020-03-12 22:21:36 -07:00
Ayush Kumar Mishra
00c6abe92f Minor change 2020-03-13 10:49:49 +05:30
iximeow
0ca2ed3646 return a pointer to the end of the valid part of the sigstack, no further
also unmap the whole thing when cleaning up, rather than leaving a spare
page floating around.
2020-03-12 21:17:10 -07:00
iximeow
041d97f4fd unix: Set a guard page at the end of signal stacks
This mitigates possible issues when signal stacks overflow, which could
manifest as segfaults or in unlucky circumstances possible clobbering of
other memory values as stack overflows tend to enable.
2020-03-12 20:32:02 -07:00
Ayush Mishra
f7fcb589cf
Update src/librustc_error_codes/error_codes/E0628.md
Co-Authored-By: Dylan DPC <dylan.dpc@gmail.com>
2020-03-13 08:14:45 +05:30
Ayush Mishra
1305ae6813
Update src/librustc_error_codes/error_codes/E0628.md
Co-Authored-By: Dylan DPC <dylan.dpc@gmail.com>
2020-03-13 08:14:32 +05:30
Eric Huss
ed0158d7aa tidy: Remove chalk-engine/chalk-macros.
Removed in #69247 while this PR was waiting to merge.
2020-03-12 19:23:30 -07:00
Eric Huss
9a53cf3777 tidy: Sort WHITELIST. 2020-03-12 19:19:18 -07:00
Eric Huss
2e46faa3ca tidy: Add test to RUNTIME_CRATES. 2020-03-12 19:19:18 -07:00
Eric Huss
3c48c89e7b tidy: Add some clarifying comments in license checks. 2020-03-12 19:19:18 -07:00
Eric Huss
bc738f2393 tidy: Verify the runtime crates don't have license exceptions. 2020-03-12 19:19:18 -07:00
Eric Huss
be10f14329 tidy: check the licenses don't change 2020-03-12 19:19:18 -07:00
Eric Huss
3f45da0291 tidy: Check if exceptions are no longer used. 2020-03-12 19:19:18 -07:00
Eric Huss
349fcb9ef6 tidy: Use cargo_metadata for license checks. 2020-03-12 19:19:18 -07:00
Mark Mansi
508d4a24d1 Remove another Rc from RegionInferenceContext 2020-03-12 19:29:54 -05:00
Mark Mansi
4b46271841 Remove a couple of Rc's from RegionInferenceContext 2020-03-12 19:17:08 -05:00
Oliver Middleton
965888adc2 Add Node.js to PR CI image
This should allow the `rustdoc-js` and `rustdoc-js-std` test suites to run automatically on PRs.
2020-03-12 22:55:51 +00:00
Matthias Krüger
66949a72d1 submodules: update clippy from 329923ed to 8485d40a
Changes:
````
Rustup to rust-lang/rust#69674
Use visit_place
Check for mutation
Only fires on temporaries
Extend `redundant_clone` to the case that cloned value is not consumed
add CR feedback
Improve documentation
Use `edition:2018` flag more widely
Update tests/ui/needless_doc_main.rs
Move links to the end of each chapter on adding_lints
Move links to the end of each chapter on CONTRIBUTING
Clean-up adding_lints.md
Clean-up CONTRIBUTING.md
needless_doc_main: only check rust code
Use `node_type_opt` over `node_type`
Fix doc
Fix ICE with trivial_bounds feature
clippy_lints: readme: don't mention crates.io since it is no longer used to publish clippy.
update rust-lang.github.io to rustc-dev-guide.rust-lang.org
Improve placeholder in map_unit_fn
Fix match single binding when in a let stmt
Improve error messages for {option,result}_map_unit_fn
Mention the setup instructions in CONTRIBUTING
redundant_pattern: take binding (ref, ref mut) into account in suggestion.
check_pat: delay creation of the "normal" vec until we reach the branch where is is actually needed
deps: bump itertools 0.8 -> 0.9
add lint on File::read_to_string and File::read_to_end
transition rustc-guide to rustc-dev-guide
Rename macro_use_import -> macro_use_imports
warn on macro_use attr
Fix deploy script for tag deploys
````

Fixes #69957
2020-03-12 21:49:29 +01:00
Mark Mansi
b6518f0f66 update tests 2020-03-12 15:47:36 -05:00
Mark Mansi
c8b527ed99 change method -> associated function 2020-03-12 15:46:45 -05:00
Ralf Jung
e9c96570d6 miri engine: fix treatment of abort intrinsic 2020-03-12 21:22:22 +01:00
Vadim Petrochenkov
e809e0214e ast: Mac/Macro -> MacCall 2020-03-12 22:26:52 +03:00
Matthias Krüger
7b1b08cfee remove lifetimes that can be elided (clippy::needless_lifetimes) 2020-03-12 20:03:09 +01:00
Matthew Jasper
f4eb6ed6b4 Ensure HAS_FREE_LOCAL_NAMES is set for ReFree 2020-03-12 18:48:26 +00:00
Ralf Jung
f32cccc05e rename panic_if_ intrinsics to assert_ 2020-03-12 19:38:09 +01:00
Mazdak Farrokhzad
90e8058716
triagebot.toml: add typo aliases 2020-03-12 18:06:40 +01:00