Mazdak Farrokhzad
09997e7227
error_block_no_opening_brace: handle closures better
2020-03-10 08:35:23 +01:00
Mazdak Farrokhzad
c01b3e6996
block-no-opening-brace: add another statement
2020-03-10 08:35:23 +01:00
Mazdak Farrokhzad
65b7ba5129
parser: add note for 'label expr
.
2020-03-10 08:35:23 +01:00
Mazdak Farrokhzad
83be689b94
parser/attr: adjust indentation.
2020-03-10 08:35:23 +01:00
Mazdak Farrokhzad
e72df7edad
parse_labeled_expr: add a suggestion on missing colon.
2020-03-10 08:35:23 +01:00
Mazdak Farrokhzad
fe848b44fe
parse_block_tail: reduce visibility
2020-03-10 08:35:23 +01:00
Mazdak Farrokhzad
addbc5b9df
unify/improve/simplify attribute parsing
2020-03-10 08:35:23 +01:00
Mazdak Farrokhzad
be86b2d37b
parse: recover on fn foo() = expr;
2020-03-10 08:32:34 +01:00
Mazdak Farrokhzad
379f3181de
parse: simplify parse_fn_body
2020-03-10 08:32:34 +01:00
Mazdak Farrokhzad
055733f3b3
parse: recover on &'lt $expr
/ 'lt $expr
.
2020-03-10 08:32:34 +01:00
Mazdak Farrokhzad
8ee220c447
more reuse in block parsing & improve diagnostics.
2020-03-10 08:32:34 +01:00
Mazdak Farrokhzad
883e90dd81
simplify parse_inner_attributes
2020-03-10 08:32:34 +01:00
Mazdak Farrokhzad
c303c4463c
use error_block_no_opening_brace more
2020-03-10 08:32:34 +01:00
Mazdak Farrokhzad
9596dc2a47
parse_labeled_expr: simplify
2020-03-10 08:32:34 +01:00
Mazdak Farrokhzad
bafa5cc9ba
macros/unknown-builtin: use hack for musl problems
2020-03-10 08:30:07 +01:00
Mazdak Farrokhzad
87b6bc3518
span-api-tests: leave FIXME
2020-03-10 07:26:27 +01:00
Ana-Maria Mihalache
4809be0137
rustc_errors: Use ensure_source_file_source_present where necessary.
2020-03-10 07:26:27 +01:00
Mazdak Farrokhzad
cf2d4236eb
--bless some tests
2020-03-10 07:26:27 +01:00
Mazdak Farrokhzad
b3bc427228
adjust span-api-tests.rs
2020-03-10 07:26:27 +01:00
Mazdak Farrokhzad
192d134e80
pacify rustdoc by using better url
2020-03-10 07:26:27 +01:00
Mazdak Farrokhzad
fd302f46dc
Store TokenStream
in rmeta::MacroDef
.
...
This removes a hack from `load_macro_untracked` in which parsing is used.
2020-03-10 07:26:27 +01:00
bors
dd155df0a6
Auto merge of #69879 - Centril:rollup-ryea91j, r=Centril
...
Rollup of 10 pull requests
Successful merges:
- #69475 (Remove the `no_force` query attribute)
- #69514 (Remove spotlight)
- #69677 (rustc_metadata: Give decoder access to whole crate store)
- #69714 (Make PlaceRef take just one lifetime)
- #69799 (Allow ZSTs in `AllocRef`)
- #69817 (test(patterns): add patterns feature tests to borrowck test suite)
- #69836 (Check if output is immediate value)
- #69847 (clean up E0393 explanation)
- #69861 (Add note about localization to std::fmt docs)
- #69877 (Vec::new is const stable in 1.39 not 1.32)
Failed merges:
r? @ghost
2020-03-10 05:48:27 +00:00
Mazdak Farrokhzad
3e9efbd8b4
Rollup merge of #69877 - CAD97:patch-1, r=dtolnay
...
Vec::new is const stable in 1.39 not 1.32
Changelog: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1390-2019-11-07
This really surprised me when a MSRV check for 1.35 failed with `Vec::new is not yet stable as a const fn` and the docs said that it was const stabilized in 1.32.
2020-03-10 06:47:59 +01:00
Mazdak Farrokhzad
20361bd2bf
Rollup merge of #69861 - Dylnuge:dylnuge/locale-doc, r=Mark-Simulacrum
...
Add note about localization to std::fmt docs
Closes #69681
2020-03-10 06:47:58 +01:00
Mazdak Farrokhzad
6f1db996c1
Rollup merge of #69847 - GuillaumeGomez:cleanup-e0393, r=Dylan-DPC
...
clean up E0393 explanation
r? @Dylan-DPC
2020-03-10 06:47:56 +01:00
Mazdak Farrokhzad
436f2ec58c
Rollup merge of #69836 - JohnTitor:immediate-outputs, r=nagisa
...
Check if output is immediate value
Fixes #62046
r? @nagisa
2020-03-10 06:47:55 +01:00
Mazdak Farrokhzad
08095f4978
Rollup merge of #69817 - thekuom:test/borrow-checking-pattern-features, r=Centril
...
test(patterns): add patterns feature tests to borrowck test suite
Addresses request here: https://github.com/rust-lang/rust/pull/69690#issuecomment-595763571
Fixes https://github.com/rust-lang/rust/issues/67311 .
r? @Centril
2020-03-10 06:47:53 +01:00
Mazdak Farrokhzad
6ad5e69b5a
Rollup merge of #69799 - TimDiekmann:zst, r=Amanieu
...
Allow ZSTs in `AllocRef`
Allows ZSTs in all `AllocRef` methods. The implementation of `AllocRef` for `Global` and `System` were adjusted to reflect those changes.
This is the second item on the roadmap to support ZSTs in `AllocRef`: https://github.com/rust-lang/wg-allocators/issues/38#issuecomment-595861542
After this has landed, I will adapt `RawVec`, but since this will be a pretty big overhaul, it makes sense to do a different PR for it.
~~Requires #69794 to land first~~
r? @Amanieu
2020-03-10 06:47:52 +01:00
Mazdak Farrokhzad
977d69fc19
Rollup merge of #69714 - spastorino:place-ref-lifetime, r=oli-obk
...
Make PlaceRef take just one lifetime
r? @eddyb
2020-03-10 06:47:50 +01:00
Mazdak Farrokhzad
5a62acaf9e
Rollup merge of #69677 - petrochenkov:spancode, r=eddyb
...
rustc_metadata: Give decoder access to whole crate store
Pre-requisite for https://github.com/rust-lang/rust/pull/68941 .
r? @eddyb
2020-03-10 06:47:49 +01:00
Mazdak Farrokhzad
61150353bf
Rollup merge of #69514 - GuillaumeGomez:remove-spotlight, r=kinnison
...
Remove spotlight
I had a few comments saying that this feature was at best misunderstood or not even used so I decided to organize a poll about on [twitter](https://twitter.com/imperioworld_/status/1232769353503956994 ). After 87 votes, the result is very clear: it's not useful. Considering the amount of code we have just to run it, I think it's definitely worth it to remove it.
r? @kinnison
cc @ollie27
2020-03-10 06:47:47 +01:00
Mazdak Farrokhzad
5b08aad6d9
Rollup merge of #69475 - Zoxc:no-no-force, r=michaelwoerister
...
Remove the `no_force` query attribute
This removes the `no_force` query attribute and instead uses the `DepNodeParams` trait to find out if a query can be forced.
Also the `analysis` query is moved to the query macro.
r? @eddyb
2020-03-10 06:47:46 +01:00
Ayush Kumar Mishra
761c8c1eef
Removed trailing whitespace
2020-03-10 09:07:29 +05:30
Christopher Durham
a56196205b
Vec::new is const tstable in 1.39 not 1.32
2020-03-09 23:07:04 -04:00
Ayush Kumar Mishra
6f2c01bcfb
Add long error explanation for E0739
2020-03-10 08:33:14 +05:30
Chris Simpkins
c60d581eb1
update x.py tidy testing command
2020-03-09 23:00:41 -04:00
YI
0a0c850d73
fix test failure due to earlier emitted error
2020-03-10 10:54:48 +08:00
Chris Simpkins
4922b683de
remove trailing whitespace (tidy)
2020-03-09 22:15:41 -04:00
Chris Simpkins
9f734c978c
Add documentation of tool testing with x.py script
2020-03-09 22:04:59 -04:00
Chris Simpkins
259b06e33f
add documentation of x.py tool testing
2020-03-09 21:55:56 -04:00
Chris Simpkins
0982c58edc
update tidy documentation to recommend ./x.py test tidy
2020-03-09 21:40:00 -04:00
YI
906bb8d0e8
fix #62456
2020-03-10 09:30:24 +08:00
Vadim Petrochenkov
2e6528961c
builtin_macros: Add attribute macro #[cfg_accessible(path)]
2020-03-10 01:02:13 +03:00
Vadim Petrochenkov
552a8875bd
expand: Implement support for retrying macro expansions
2020-03-10 00:56:09 +03:00
Ayush Kumar Mishra
7b75c346d5
Add long error explanation for E0628 #61137
2020-03-10 02:04:48 +05:30
David Tolnay
a2364dc85f
Write backtrace fmt test using relative paths
...
For some reason the absolute paths were formatted differently on the
armhf-gnu target.
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
left: `"Backtrace [\n { fn: \"__rust_maybe_catch_panic\" },\n { fn: \"std::rt::lang_start_internal\", file: \"./rust/rt.rs\", line: 300 },\n { fn: \"std::rt::lang_start\", file: \"./rust/rt.rs\", line: 400 },\n]"`,
right: `"Backtrace [\n { fn: \"__rust_maybe_catch_panic\" },\n { fn: \"std::rt::lang_start_internal\", file: \"/rust/rt.rs\", line: 300 },\n { fn: \"std::rt::lang_start\", file: \"/rust/rt.rs\", line: 400 },\n]"`', src/libstd/backtrace.rs:486:5
2020-03-09 12:24:25 -07:00
Ralf Jung
911c75ff5f
also handle abort intrinsic with new machine hook
2020-03-09 20:18:48 +01:00
David Tolnay
33600e4d2d
Add test of Debug representation of Backtrace
2020-03-09 12:01:32 -07:00
David Tolnay
a9cc010c48
Make it possible to instantiate hardcoded Backtrace from test
2020-03-09 12:01:32 -07:00
David Tolnay
1f1ca877b7
Change disabled and unsupported backtraces to print using placeholder style
2020-03-09 12:01:32 -07:00