Josh Stone
5d8083360a
Allow full relro on powerpc64-unknown-linux-gnu
...
This was previously limited to partial relro, citing issues on RHEL6,
but that's no longer a supported platform since #95026 . We have long
been enabling full relro in RHEL7's own Rust builds for ppc64, without
trouble, so it should be fine to drop this workaround.
2022-09-21 11:53:50 -07:00
bors
db4b4d3bec
Auto merge of #102097 - Dylan-DPC:rollup-gc75oh4, r=Dylan-DPC
...
Rollup of 7 pull requests
Successful merges:
- #89891 (`alloc`: add unstable cfg features `no_rc` and `no_sync`)
- #101995 (Add another example for `uN::carrying_mul`)
- #102031 (Adding ignore fuchsia tests for Backtrace, ErrorKind cases)
- #102041 (Improve `-Zmeta-stats` some more)
- #102045 (fix ConstProp handling of written_only_inside_own_block_locals)
- #102058 (Clarify Path::extension() semantics in docs abstract)
- #102059 (Use rebind instead of dummy binder in `SameTypeModuloInfer` relation)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2022-09-21 17:17:25 +00:00
David Koloski
0650c4078c
Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy
2022-09-21 13:13:27 -04:00
Urgau
e214385a4d
Add missing space between notable trait tooltip and where clause
2022-09-21 19:01:49 +02:00
Andrew Pollack
6c29716d0a
Adding ignore fuchsia tests for signal cases
2022-09-21 15:57:19 +00:00
Jhonny Bill Mena
e52e2344dc
FIX - adopt new Diagnostic naming in newly migrated modules
...
FIX - ambiguous Diagnostic link in docs
UPDATE - rename diagnostic_items to IntoDiagnostic and AddToDiagnostic
[Gardening] FIX - formatting via `x fmt`
FIX - rebase conflicts. NOTE: Confirm wheather or not we want to handle TargetDataLayoutErrorsWrapper this way
DELETE - unneeded allow attributes in Handler method
FIX - broken test
FIX - Rebase conflict
UPDATE - rename residual _SessionDiagnostic and fix LintDiag link
2022-09-21 11:43:22 -04:00
Jhonny Bill Mena
5f91719f75
UPDATE - rename SessionSubdiagnostic macro to Subdiagnostic
...
Also renames:
- sym::AddSubdiagnostic to sym:: Subdiagnostic
- rustc_diagnostic_item = "AddSubdiagnostic" to rustc_diagnostic_item = "Subdiagnostic"
2022-09-21 11:39:53 -04:00
Jhonny Bill Mena
a3396b2070
UPDATE - rename DiagnosticHandler macro to Diagnostic
2022-09-21 11:39:53 -04:00
Jhonny Bill Mena
191fac6826
UPDATE - rename AddSubdiagnostic trait to AddToDiagnostic
2022-09-21 11:39:53 -04:00
Jhonny Bill Mena
19b348fed4
UPDATE - rename DiagnosticHandler trait to IntoDiagnostic
2022-09-21 11:39:52 -04:00
Jhonny Bill Mena
5b8152807c
UPDATE - move SessionDiagnostic from rustc_session to rustc_errors
2022-09-21 11:39:52 -04:00
Oli Scherer
47cb378526
Remove unused imports
2022-09-21 15:37:10 +00:00
Oli Scherer
f45b570e08
Add 'src/tools/miri/' from commit '75dd959a3a40eb5b4574f8d2e23aa6efbeb33573'
...
git-subtree-dir: src/tools/miri
git-subtree-mainline: 3f3167fb59341ac3240ca1774f48e8c053219131
git-subtree-split: 75dd959a3a40eb5b4574f8d2e23aa6efbeb33573
2022-09-21 15:36:26 +00:00
Ralf Jung
3f3167fb59
miri is not in toolstate any more
2022-09-21 15:35:53 +00:00
Oli Scherer
7e23244ef1
HACK: Treat miri as if it were a submodule
2022-09-21 15:35:53 +00:00
Oli Scherer
6cfa7ef2ba
Remove miri from the submodule list and require it for CI to pass
2022-09-21 15:35:53 +00:00
Oli Scherer
d9382d03bd
Remove miri submodule
2022-09-21 15:35:53 +00:00
Aaron Hill
3d8b3e6ca1
Set 'exec-env:RUST_BACKTRACE=0' in const-eval-select tests
...
This allows the tests to pass even if the user has RUST_BACKTRACE
set when running 'x.py'
2022-09-21 10:25:03 -05:00
yukang
7adfb44b95
add trivial comments
2022-09-21 23:21:41 +08:00
Deadbeef
898c76cd82
Make error messages great again (and fix clippy and add test)
2022-09-21 15:02:15 +00:00
Guillaume Gomez
6069f71e6c
Add GUI test for .stab
elements in docblocks
2022-09-21 16:40:31 +02:00
Guillaume Gomez
efbde853af
Add doc aliases on Sized trait
2022-09-21 16:20:15 +02:00
Guillaume Gomez
150623eb6c
Prevent usage of .stab
elements to create scrollable areas in doc blocks
2022-09-21 16:12:14 +02:00
Dylan DPC
39bb2a7988
Rollup merge of #102059 - compiler-errors:issue-101984, r=jackh726
...
Use rebind instead of dummy binder in `SameTypeModuloInfer` relation
Lazy binder usage (sorry, my fault) + assertion in `Binder::dummy`
Fixes #101984
2022-09-21 19:01:09 +05:30
Dylan DPC
77d063b954
Rollup merge of #102058 - mqudsi:path_extension_docs, r=thomcc
...
Clarify Path::extension() semantics in docs abstract
State up-front and center what shape the returned extension will have, without making the user read through the description and examples.
This is a doc-only change. There are no changes to the API contract and the clarification is in line with what was already stated/promised in the existing doc text - just clarified, summarized, and served bright and early.
Rationale: Various frameworks and libraries for different platforms have their different conventions as to whether an "extension" is ".ext" or just "ext" and anyone that's had to deal with this ambiguity in the past is always double- or triple-checking to make sure the function call returns an extension that matches the expected semantics. Offer the answer to this important question right off the bat instead of making them dig to find it.
```@rustbot``` label +A-docs
2022-09-21 19:01:09 +05:30
Dylan DPC
7d7f55599a
Rollup merge of #102045 - RalfJung:const-prop-regression-fix, r=oli-obk
...
fix ConstProp handling of written_only_inside_own_block_locals
Fixes a regression introduced by https://github.com/rust-lang/rust/pull/100239 , which adds an early return and thus skips some code in `visit_terminator` that must be run for soundness.
Fixes https://github.com/rust-lang/rust/issues/101973
2022-09-21 19:01:08 +05:30
Dylan DPC
4b7c596b3a
Rollup merge of #102041 - nnethercote:improve-meta-stats, r=bjorn3
...
Improve `-Zmeta-stats` some more
A follow-up to #97384 .
r? ```@bjorn3```
2022-09-21 19:01:08 +05:30
Dylan DPC
36e39725fb
Rollup merge of #102031 - andrewpollack:compiler-tests-backtrace, r=tmandry
...
Adding ignore fuchsia tests for Backtrace, ErrorKind cases
Tests where Backtrace parses are required (invalid since Fuchsia backtraces are not symbolized), and test where ErrorKind is not properly translated from a Fuchsia-style to Unix-style error code
cc. ```@djkoloski```
r? ```@tmandry```
2022-09-21 19:01:07 +05:30
Dylan DPC
9b24a1f9a0
Rollup merge of #101995 - scottmcm:carrying-mul-example, r=Mark-Simulacrum
...
Add another example for `uN::carrying_mul`
The prose talks about doing this, so might as well add a simple code example of it too.
2022-09-21 19:01:07 +05:30
Dylan DPC
5377c31122
Rollup merge of #89891 - ojeda:modular-alloc, r=Mark-Simulacrum
...
`alloc`: add unstable cfg features `no_rc` and `no_sync`
In Rust for Linux we are using these to make `alloc` a bit more modular.
See https://github.com/rust-lang/rust/pull/86048 and https://github.com/rust-lang/rust/pull/84266 for similar requests.
Of course, the particular names are not important.
2022-09-21 19:01:06 +05:30
bors
75dd959a3a
Auto merge of #2557 - RalfJung:triple-to-string, r=RalfJung
...
remove unnecessary to_string
2022-09-21 13:26:05 +00:00
Ralf Jung
c672c35ad6
format > to_string
2022-09-21 15:25:30 +02:00
Ralf Jung
33284ec099
remove unnecessary to_string
2022-09-21 15:24:06 +02:00
Oli Scherer
86f1ca812b
Improve diagnostic for adding more bounds to opaque types
2022-09-21 13:15:24 +00:00
Oli Scherer
4b323e62ba
Reproduce sad diagnostic
2022-09-21 13:15:24 +00:00
Oli Scherer
36cb01deb3
Try out a perf optimization
2022-09-21 13:15:24 +00:00
Oli Scherer
20d962cfa5
Simplify insert_outlives_predicate opaque type logic
2022-09-21 13:15:24 +00:00
Oli Scherer
615c9e8647
Inline substitution logic into declared_region_bounds
2022-09-21 13:11:54 +00:00
Oli Scherer
a8c9784336
Add regression test
2022-09-21 13:11:54 +00:00
Oli Scherer
90b6744af7
Also collect bounds from the ParamEnv for opaque types
2022-09-21 13:11:54 +00:00
Oli Scherer
37928f5986
Neither require nor imply lifetime bounds on opaque type for well formedness
2022-09-21 13:11:54 +00:00
bors
7248d06384
Auto merge of #9471 - jplatte:patch-1, r=xFrednet
...
Add matches! checking to nonstandard_macro_braces
changelog: Enhancement: [`nonstandard_macro_braces`]: Now includes `matches!()` in the default lint config
[#9471 ](https://github.com/rust-lang/rust-clippy/pull/9471 )
2022-09-21 12:56:19 +00:00
Oli Scherer
c8ecf09a25
Generalize projection_must_outlive
2022-09-21 12:51:33 +00:00
Oli Scherer
4d4cc4fe53
Generalize a helper to be useful for types other than projections
2022-09-21 12:51:33 +00:00
Oli Scherer
96b819a456
Inline a trivial function
2022-09-21 12:51:33 +00:00
bors
351afbbe1c
Auto merge of #2555 - oli-obk:libffi-is-unhappy, r=RalfJung
...
Only support libffi on unix for now
2022-09-21 12:49:24 +00:00
Oli Scherer
4f357956b8
Only support libffi on unix for now
2022-09-21 12:48:47 +00:00
bors
b79b7d8b4e
Auto merge of #101846 - chenyukang:fix-101793, r=davidtwco
...
Fix the wording of help msg for bitwise not
Fixes #101793
2022-09-21 12:32:54 +00:00
Oli Scherer
e0a2e2d892
Deduplicate two functions that would soon have been three
2022-09-21 12:31:48 +00:00
Guillaume Gomez
b4fdc5861d
Add missing documentation for bool::from_str
2022-09-21 14:17:11 +02:00