Jakub Beránek
ab73bb25cf
Add a comment
2024-05-22 13:04:14 +02:00
bors
f0038a7c8f
Auto merge of #124227 - compiler-errors:hack-check-method-res, r=estebank
...
Make sure that the method resolution matches in `note_source_of_type_mismatch_constraint`
`note_source_of_type_mismatch_constraint` is a pile of hacks that I implemented to cover up another pile of hacks.
It does a bunch of re-confirming methods, but it wasn't previously checking that the methods it was looking (back) up were equal to the methods we previously had. This PR adds those checks.
Fixes #118185
2024-05-22 10:57:59 +00:00
Guillaume Gomez
fc76015dcb
Migrate run-make/rustdoc-scrape-examples-macros
to rmake.rs
2024-05-22 11:49:21 +02:00
Ralf Jung
cb5319483e
clarify comment
...
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
2024-05-22 11:19:04 +02:00
bors
7fd1429754
Auto merge of #3623 - RalfJung:rustup, r=RalfJung
...
Rustup
2024-05-22 09:10:54 +00:00
Ralf Jung
abbe244a81
clippy
2024-05-22 11:09:34 +02:00
Scott McMurray
8ee3d29cd9
Stop using to_hir_binop
in codegen
2024-05-22 01:34:26 -07:00
bors
bec10295d4
Auto merge of #125335 - compiler-errors:binder, r=lcnr
...
Uplift `Binder`, `OutlivesPredicate` into `rustc_type_ir`
Almost done with all the types 🙏
r? lcnr
2024-05-22 08:33:34 +00:00
Ralf Jung
a1bc030b70
Merge from rustc
2024-05-22 10:08:32 +02:00
Ralf Jung
24138f0034
Preparing for merge from rustc
2024-05-22 08:56:21 +02:00
Nicholas Nethercote
e60c1916e0
Remove #[macro_use]
extern crate tracing from
rustc_span`.
...
Because explicit macro imports are better than implicit macro imports.
2024-05-22 16:03:48 +10:00
Nicholas Nethercote
220f3ab825
Add a useful comment.
...
For something that wasn't obvious to me.
2024-05-22 16:03:48 +10:00
Nicholas Nethercote
2c61c00859
Fix up whitespace in compiler/rustc_macros/src/serialize.rs
.
2024-05-22 16:03:46 +10:00
Mads Marquart
722b2ee17d
Remove unnecessary .md
from the documentation sidebar
2024-05-22 07:38:37 +02:00
Michael Howell
b5923a95a8
Move tests into appropriate subdirectories
2024-05-21 21:21:26 -07:00
bors
b54dd08a84
Auto merge of #125326 - weiznich:move/do_not_recommend_to_diganostic_namespace, r=compiler-errors
...
Move `#[do_not_recommend]` to the `#[diagnostic]` namespace
This commit moves the `#[do_not_recommend]` attribute to the `#[diagnostic]` namespace. It still requires
`#![feature(do_not_recommend)]` to work.
r? `@compiler-errors`
2024-05-22 04:14:08 +00:00
Jubilee Young
3a21fb5cec
Wrap Context.ext in AssertUnwindSafe
2024-05-21 19:05:37 -07:00
bors
54cdc13542
Auto merge of #125387 - weihanglo:update-cargo, r=weihanglo
...
Update cargo
9 commits in 0de7f2ec6c39d68022e6b97a39559d2f4dbf3930..84dc5dc11a9007a08f27170454da6097265e510e
2024-05-17 16:54:54 +0000 to 2024-05-20 18:57:08 +0000
- Fix warning about unused Permissions (rust-lang/cargo#13938 )
- fix: support IPv6-only network for cargo fix (rust-lang/cargo#13907 )
- Load `libsecret` by its `SONAME`, `libsecret-1.so.0` (rust-lang/cargo#13927 )
- docs(ref): Simplify check-cfg build.rs docs (rust-lang/cargo#13937 )
- Make `git::use_the_cli` test truly locale independent (rust-lang/cargo#13935 )
- Silence warnings running embedded unittests. (rust-lang/cargo#13929 )
- Fix warning output in build_with_symlink_to_path_dependency_with_build_script_in_git (rust-lang/cargo#13930 )
- Fix: Make path dependencies with the same name stays locked (rust-lang/cargo#13572 )
- Temporarily fix standard_lib tests on linux. (rust-lang/cargo#13931 )
r? ghost
2024-05-22 02:03:23 +00:00
Ben Kimock
c3a606237d
PR feedback
2024-05-21 20:12:30 -04:00
Ben Kimock
95150d7246
Add a footer in FileEncoder and check for it in MemDecoder
2024-05-21 20:12:29 -04:00
bors
72d8d8d9f9
Auto merge of #125202 - flip1995:clippy-subtree-update, r=Manishearth
...
Clippy subtree update
r? `@Manishearth`
2024-05-21 23:55:52 +00:00
Weihang Lo
09f1a90bf8
Update cargo
2024-05-21 18:53:54 -04:00
Jubilee Young
d0b45a951b
tidy: stop special-casing tests/ui entry limit
2024-05-21 15:16:06 -07:00
bors
791adf759c
Auto merge of #124417 - Xiretza:translate-early-lints, r=fmease
...
Make early lints translatable
<del>Requires https://github.com/projectfluent/fluent-rs/pull/353 .</del> 5134a04eaa
r? diagnostics
2024-05-21 21:36:09 +00:00
Michael Goulet
1c8230ea3c
Uplift OutlivesPredicate, remove a bunch of unnecessary associated types from Interner
2024-05-21 17:00:45 -04:00
Michael Goulet
28ce588321
Uplift binder
2024-05-21 17:00:45 -04:00
Xiretza
98dd6c7e8f
Rename buffer_lint_with_diagnostic to buffer_lint
2024-05-21 20:16:39 +00:00
Xiretza
c4f6502c6d
Fix typo in deprecation lint message
2024-05-21 20:16:39 +00:00
Xiretza
8004e6a379
Make early lints translatable
2024-05-21 20:16:39 +00:00
Xiretza
b7abf014ec
Convert uses of BuiltinLintDiag::Normal to custom variants
...
This ensures all diagnostic messages are created at diagnostic emission
time, making them translatable.
2024-05-21 20:16:39 +00:00
Xiretza
41a20b4c56
Port DeprecatedMacro to diag structs
2024-05-21 20:16:39 +00:00
Xiretza
c227f35a9c
Generate lint diagnostic message from BuiltinLintDiag
...
Translation of the lint message happens when the actual diagnostic is
created, not when the lint is buffered. Generating the message from
BuiltinLintDiag ensures that all required data to construct the message
is preserved in the LintBuffer, eventually allowing the messages to be
moved to fluent.
Remove the `msg` field from BufferedEarlyLint, it is either generated
from the data in the BuiltinLintDiag or stored inside
BuiltinLintDiag::Normal.
2024-05-21 20:16:39 +00:00
Xiretza
2482f3c17c
Convert unexpected_cfg_{name,value} to struct diagnostics
2024-05-21 20:16:39 +00:00
Xiretza
bac6b6248b
Convert NAMED_ASM_LABELS lint to diag struct
2024-05-21 20:11:42 +00:00
Xiretza
36902fbcf6
Fix subdiagnostic-only enum variants not generating code
2024-05-21 20:11:42 +00:00
Xiretza
eee14e9adf
Add note_once/help_once to diagnostic derives
2024-05-21 20:11:42 +00:00
Xiretza
56bca95875
Implement IntoDiagArg for RustcVersion
2024-05-21 20:11:42 +00:00
Xiretza
3b979aebfe
Implement IntoDiagArg for hir Namespace
2024-05-21 20:11:42 +00:00
bors
39e02f1bd1
Auto merge of #125379 - matthiaskrgr:rollup-6149w01, r=matthiaskrgr
...
Rollup of 6 pull requests
Successful merges:
- #123122 (Fix incorrect suggestion for undeclared hrtb lifetimes in where clauses.)
- #123492 (add pull request template asking for relevant tracking issues)
- #125276 (Fix parsing of erroneously placed semicolons)
- #125310 (Move ~100 tests from tests/ui to subdirs)
- #125357 (Migrate `run-make/rustdoc-scrape-examples-multiple` to `rmake.rs`)
- #125369 (Don't do cc detection for synthetic targets)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-05-21 19:29:59 +00:00
Michael Howell
55bd054a21
rustdoc: rename issue-\d+.rs
tests to have meaningful names
2024-05-21 12:28:34 -07:00
Michael Howell
4486c24db3
Add URL and crate_name to test cases
2024-05-21 12:28:30 -07:00
Ralf Jung
9526ce60fd
improve comment wording
2024-05-21 21:13:20 +02:00
Rémy Rakic
6867d6492b
add helper to target bin path
2024-05-21 18:40:34 +00:00
Matthias Krüger
d04e2e2858
Rollup merge of #125369 - saethlin:synthetic-targets-dont-cc, r=onur-ozkan
...
Don't do cc detection for synthetic targets
Fixes https://github.com/rust-lang/rust/issues/125365
Synthetic targets only exist for mir-opt tests, and the mir-opt test suite is in general designed to avoid any use of a C compiler. We don't need to do CC detection. It's unclear to me how this code didn't cause issues before.
2024-05-21 20:28:49 +02:00
Matthias Krüger
639853fea5
Rollup merge of #125357 - GuillaumeGomez:migrate-rustdoc-scrape-examples-multiple, r=jieyouxu
...
Migrate `run-make/rustdoc-scrape-examples-multiple` to `rmake.rs`
Part of https://github.com/rust-lang/rust/issues/121876 .
r? ```@jieyouxu```
2024-05-21 20:28:49 +02:00
Matthias Krüger
1b57ef3207
Rollup merge of #125310 - workingjubilee:muck-out-the-test-stables, r=Nilstrieb
...
Move ~100 tests from tests/ui to subdirs
new dirs for some, the rest in old
sweep tests up before they turn cold
to stop our code from growing mold
2024-05-21 20:28:48 +02:00
Matthias Krüger
bfa98d318f
Rollup merge of #125276 - dev-ardi:no-main-diag, r=fmease
...
Fix parsing of erroneously placed semicolons
This closes https://github.com/rust-lang/rust/issues/124935 , is a continuation of https://github.com/rust-lang/rust/pull/125245 after rebasing https://github.com/rust-lang/rust/pull/125117 .
Thanks ```@gurry``` for your code and sorry for making it confusing :P
r? fmease
2024-05-21 20:28:47 +02:00
Matthias Krüger
7a90db7fb1
Rollup merge of #123492 - lcnr:master, r=davidtwco
...
add pull request template asking for relevant tracking issues
As mentioned at RustNation, I would like to remind PR authors to link to relevant tracking issues when opening PRs as it is otherwise very easy to forget doing so.
There's a certain amount of conflict between making the template as small as possible while still being clear for new contributors. I am very much open to changes here but really want to try this out.
Also unsure how much formal buy-in we need here. Maybe merge this pinging t-compiler and t-libs, and then ask how people feel about this on zulip in a few weeks?
r? `@davidtwco`
2024-05-21 20:28:47 +02:00
Matthias Krüger
6009cb776a
Rollup merge of #123122 - surechen:fix_122714, r=fmease
...
Fix incorrect suggestion for undeclared hrtb lifetimes in where clauses.
For poly-trait-ref like `for<'a> Trait<T>` in `T: for<'a> Trait<T> + 'b { }`.
We should merge the hrtb lifetimes: existed `for<'a>` and suggestion `for<'b>` or will get err: [E0316] nested quantification of lifetimes
fixes #122714
2024-05-21 20:28:46 +02:00
Lzu Tao
30e0ab84f9
maybe replace check-cfg values in bootstrap with ones in Cargo.toml
2024-05-21 18:17:55 +00:00