Camille GILLOT
d119a13137
Rename walk_crate.
2021-09-02 19:23:11 +02:00
Mara Bos
c082e157ca
Rollup merge of #88592 - b-naber:region_substs, r=oli-obk
...
Fix ICE in const check
Fixes https://github.com/rust-lang/rust/issues/88433
2021-09-02 19:10:24 +02:00
Mara Bos
8f88d44b0d
Rollup merge of #88589 - xFrednet:00000-correct-comment-to-doc, r=petrochenkov
...
Correct doc comments inside `use_expr_visitor.rs`
Just a simple update. I haven't changed any content inside the comments, as they still seem correct. Have a wonderful rest of the day 🙃
2021-09-02 19:10:23 +02:00
Mara Bos
2159c5db63
Rollup merge of #88582 - jhpratt:int_roundings, r=joshtriplett
...
Implement #88581
See #88581 for details. This API was discussed on Zulip.
`@rustbot` label: +T-libs-api +S-waiting-on-review
r? `@joshtriplett`
2021-09-02 19:10:22 +02:00
Mara Bos
73162aabc7
Rollup merge of #88573 - camelid:rustdoc-assoc-panic, r=GuillaumeGomez
...
rustdoc: Don't panic on ambiguous inherent associated types
Instead, return `Type::Infer` since compilation should fail anyway.
That's how rustdoc handles `hir::TyKind::Err`s, so this just extends
that behavior to `ty::Err`s when analyzing associated types.
For some reason, the error is printed twice with rustdoc (though only
once with rustc). I'm not sure why that is, but it's better than
panicking.
This commit also makes rustdoc fail early in the non-projection,
non-error case, instead of returning a `Res::Err` that would likely
cause rustdoc to panic later on. This change is originally from #88379 .
r? `@GuillaumeGomez`
2021-09-02 19:10:21 +02:00
Mara Bos
f4193346fe
Rollup merge of #88567 - camelid:query-job-info, r=cjgillot
...
Remove redundant `Span` in `QueryJobInfo`
Previously, `QueryJobInfo` was composed of two parts: a `QueryInfo` and
a `QueryJob`. However, both `QueryInfo` and `QueryJob` have a `span`
field, which seem to be the same. So, the `span` was recorded twice.
Now, `QueryJobInfo` is composed of a `QueryStackFrame` (the other field
of `QueryInfo`) and a `QueryJob`. So, now, the `span` is only recorded
once.
2021-09-02 19:10:20 +02:00
Mara Bos
e248c4d5d0
Rollup merge of #88565 - lqd:issue-83190, r=spastorino
...
Add regression test for issue 83190
Reduced from `bioyino-metric` by ````@hellow554```` and myself.
Closes #83190 .
r? ````@spastorino````
2021-09-02 19:10:19 +02:00
Mara Bos
0d105c0e77
Rollup merge of #88560 - klensy:formatter-pad-shrink, r=m-ou-se
...
`fmt::Formatter::pad`: don't call chars().count() more than one time
First commit merges two branches of match to call chars().count() only once: that should be faster if this method hits place of 3rd (previous) branch, plus quarter shorter.
Second commit fixes some clippy lints while i'm here (should it be separate PR?).
2021-09-02 19:10:18 +02:00
Mara Bos
ffbce26e24
Rollup merge of #88543 - m-ou-se:closure-migration-macro-block-fragment, r=estebank
...
Improve closure dummy capture suggestion in macros.
Fixes some cases of https://github.com/rust-lang/rust/issues/88440
Fixes https://crater-reports.s3.amazonaws.com/pr-87190-3/try%23a7a572ce3edd6d476191fbfe92c9c1986e009b34/reg/rcodec-1.0.1/log.txt
2021-09-02 19:10:17 +02:00
Mara Bos
afdaa2e8f5
Rollup merge of #88532 - ptrojahn:single_use, r=davidtwco
...
Remove single use variables
2021-09-02 19:10:16 +02:00
Mara Bos
ea82d0651a
Rollup merge of #88512 - m-ou-se:array-into-iter-deref-stuff, r=estebank
...
Upgrade array_into_iter lint to include Deref-to-array types.
Fixes https://github.com/rust-lang/rust/issues/88099
Fixes the issue mentioned here: https://github.com/rust-lang/rust/pull/84147#issuecomment-819000436
2021-09-02 19:10:15 +02:00
Mara Bos
8fd1bf3323
Rollup merge of #88505 - ibraheemdev:use-unwrap-unchecked, r=kennytm
...
Use `unwrap_unchecked` where possible
2021-09-02 19:10:14 +02:00
Mara Bos
e50069ff4f
Rollup merge of #88177 - joshtriplett:stabilize-chroot, r=m-ou-se
...
Stabilize std::os::unix::fs::chroot
I've verified that this works as documented, and I've tested it in (a nightly
build of) production software as a replacement for an unsafe call to
`libc::chroot`. It's been available in nightly for a few releases. I think it's
ready to stabilize.
---
Tracking issue: https://github.com/rust-lang/rust/issues/84715
2021-09-02 19:10:12 +02:00
Camille GILLOT
df148e4efb
Drop walk_crate_and_attributes.
2021-09-02 19:08:59 +02:00
Camille GILLOT
bd2f08c22f
Bless tests.
2021-09-02 19:08:59 +02:00
Camille GILLOT
fa2bc4f400
Directly access the module for use suggestions.
2021-09-02 19:08:58 +02:00
Camille GILLOT
7ec973d9ce
Stop using walk_crate.
2021-09-02 19:08:58 +02:00
Aaron Hill
611191f54c
Report cycle error using 'deepest' obligation in the cycle
2021-09-02 11:49:32 -05:00
bors
1cf8fdd4f0
Auto merge of #87580 - ChrisDenton:win-arg-parse-2008, r=m-ou-se
...
Update Windows Argument Parsing
Fixes #44650
The Windows command line is passed to applications [as a single string](https://docs.microsoft.com/en-us/archive/blogs/larryosterman/the-windows-command-line-is-just-a-string ) which the application then parses to get a list of arguments. The standard rules (as used by C/C++) for parsing the command line have slightly changed over the years, most recently in 2008 which added new escaping rules.
This PR implements the new rules as [described on MSDN](https://docs.microsoft.com/en-us/cpp/cpp/main-function-command-line-args?view=msvc-160#parsing-c-command-line-arguments ) and [further detailed here](https://daviddeley.com/autohotkey/parameters/parameters.htm#WIN ). It has been tested against the behaviour of C++ by calling a C++ program that outputs its raw command line and the contents of `argv`. See [my repo](https://github.com/ChrisDenton/winarg/tree/std ) if anyone wants to reproduce my work.
For an overview of how this PR changes argument parsing behavior and why we feel it is warranted see https://github.com/rust-lang/rust/pull/87580#issuecomment-893833893 .
For some examples see: https://github.com/rust-lang/rust/pull/87580#issuecomment-894299249
2021-09-02 16:16:13 +00:00
Aaron Hill
f2d9ee9c34
Preserve most sub-obligations in the projection cache
2021-09-02 11:10:40 -05:00
bors
a8c2c7b712
Auto merge of #7604 - flip1995:rustup, r=Manishearth
...
Rustup
I'll write some TODOs later. This time I'll need a review for this Rustup
r? `@ghost` (for now)
changelog: none
2021-09-02 15:30:12 +00:00
Frank Steffahn
ab89c88faa
Consistent placement of doc alias for primitives below the doc(primitive…)
2021-09-02 17:21:05 +02:00
Frank Steffahn
49c680ada0
Add "!" doc alias for std::ops::Not
2021-09-02 17:19:43 +02:00
b-naber
f825d6c6cc
add test
2021-09-02 16:34:25 +02:00
b-naber
b5f680e748
do not resolve instances for trait fn ids
2021-09-02 16:29:49 +02:00
bors
fcce644119
Auto merge of #88530 - bjorn3:shrink_session, r=cjgillot
...
Shrink Session a bit
Remove a couple of unnecessary fields from `Session` and remove a `Lock<T>` for a field that is never mutated anyway.
2021-09-02 13:12:59 +00:00
xFrednet
a079ae2599
Correct doc comments inside use_expr_visitor.rs
2021-09-02 15:05:27 +02:00
flip1995
01b17af108
Fix fallout from re-applying patches
2021-09-02 13:04:47 +01:00
flip1995
fb6839db2d
Bump nightly version -> 2021-09-02
2021-09-02 12:45:45 +01:00
xFrednet
8bf2940abb
Fix matadata collection configuration formatting
2021-09-02 12:42:00 +01:00
Cameron Steffen
c2bb313e7a
Add higher docs and remove some unneeded fields
2021-09-02 12:41:30 +01:00
flip1995
c7c2036cb9
Fix remaining dogfood errors
...
Except for the missing docs ones
2021-09-02 12:40:52 +01:00
Cameron Steffen
588367b62e
Fix dogfood
2021-09-02 12:39:54 +01:00
Cameron Steffen
5722a7dacd
Fix manual_match with let-expressions
2021-09-02 12:38:59 +01:00
flip1995
61bb96738c
Merge remote-tracking branch 'upstream/master' into rustup2
2021-09-02 12:38:17 +01:00
Vadim Petrochenkov
9940758416
expand: Treat more macro calls as statement macro calls
2021-09-02 14:14:38 +03:00
bjorn3
74c7f1267b
Add explanation for ctfe_backtrace lock
2021-09-02 12:29:12 +02:00
bjorn3
b86a2ee036
Use in_incr_comp_dir_sess in cg_clif
2021-09-02 12:29:12 +02:00
bjorn3
c9abc7e2bb
Remove print_fuel_crate field of Session
2021-09-02 12:29:11 +02:00
bjorn3
5464b2e713
Remove optimization_fuel_crate from Session
2021-09-02 12:29:11 +02:00
bors
64929313f5
Auto merge of #88516 - matthiaskrgr:clippy_perf_end_august, r=jyn514,GuillaumeGomez
...
some low hanging clippy::perf fixes
2021-09-02 10:27:44 +00:00
bjorn3
ff98cb6408
Remove unused argument from resolve_crate
2021-09-02 12:25:27 +02:00
bjorn3
f59198ab96
Introduce CrateRejections struct
2021-09-02 12:25:27 +02:00
bjorn3
b3f850a50c
Remove root field from CrateLocator
2021-09-02 12:25:26 +02:00
bjorn3
3a8c457916
Remove host_hash from CrateLocator
2021-09-02 12:25:26 +02:00
bjorn3
a3ada4e68a
Refactor CrateLocator.is_proc_macro
...
This also fixes a (theoretical) bug where a proc-macro may be loaded as
plugin if it exports a symbol with the right name.
2021-09-02 12:25:26 +02:00
bjorn3
4f35f66796
Don't store Session in CrateLocator
2021-09-02 12:25:26 +02:00
Matthew Jasper
9366dfdff5
Bless 32bit MIR opt tests
2021-09-02 10:18:08 +01:00
Matthew Jasper
fd5b40fd3e
Remove TODO
2021-09-02 09:21:16 +01:00
bors
849f0a144b
Auto merge of #7619 - UnrealApex:patch-1, r=flip1995
...
Update README.md
Capitalized proper noun.
changelog:none
2021-09-02 08:11:57 +00:00