beetrees
ac599d4e90
Replace links to github.com/rust-lang/rfcs with links to the Rust RFC Book
2026-09-07 16:07:24 +01:00
mejrs
8f316d411d
refactor rustc_allowed_through_unstable_modules attribute and lint message
2026-09-03 12:42:20 +02:00
Waffle Lapkin
f34322b0dc
remove #![feature(never_type)] from the compiler
...
The reason `rustc_ast_ir` and `rustc_pattern_analysis` have nested
`cfg_attr`s is so that they don't mention `cfg(bootstrap)` when nightly
or rustc cargo feature turned on. If you don't do it like that, they stop
compiling on stable (or rather, they emit unexpected cfg warnings...).
2026-08-24 19:04:00 +02:00
qaijuang
0a4168abfa
address follow up suggestions
2026-07-30 20:30:27 -04:00
qaijuang
9628fa5345
lint malformed rustc_on_unimplemented filters
2026-07-30 02:44:40 -04:00
Urgau
20a75d1f60
Fix invalid definition of strlen in error codes documentation
2026-06-25 23:53:44 +02:00
Jonathan Brouwer
9ad6dbf24f
Use AllowedTargets::ManuallyChecked for LangParser
2026-06-22 17:09:37 +02:00
Eva van Houten
851ab7aecc
Fix error-index test (and remove accidentally committed file)
2026-06-13 16:19:40 +02:00
Eva van Houten
91b5e6b3f3
Improve invalid cfg predicate error
2026-06-13 16:19:39 +02:00
Jonathan Brouwer
87a08b15cb
Integrate target checking for #[repr] into its attribute parser
2026-06-02 21:12:15 +02:00
Jonathan Brouwer
a5591746c5
Convert feature gating to the new attr parsing infrastructure
2026-05-31 15:27:52 +02:00
Jonathan Brouwer
7aef596de4
Clean up parse_repr_align function of ReprParser
2026-05-30 11:38:38 +02:00
42triangles
173bad72c3
fix E0371 description
2026-05-20 11:44:04 +02:00
mu001999
d5a26d811b
Support trailing self in import paths
2026-04-27 10:58:30 +08:00
mejrs
d6bccac835
Fix error code example
2026-04-15 13:50:43 +02:00
Jonathan Brouwer
65745a1b95
Revert #152369 because of multiple regressions
...
The regressions are documented in the PR comments.
This reverts commit 2972b5e , reversing changes made to f908263 .
2026-04-09 18:53:59 +02:00
Edvin Bryntesson
bd864efa70
bless tests and tidy
...
also removes E0452 and splits
`tests/rustdoc-ui/lints/renamed-lint-still-applies` into 2 tests
this is because of delayed warn lint being lost on compiler aborting on
error
2026-04-03 11:08:11 +02:00
Jynn Nelson
f1f0b4504a
downgrade duplicate features from hard-error -> deny-by-default
2026-03-10 11:56:29 +01:00
León Orell Valerian Liehr
6bb6b11d9d
Rename #[rustc_variance] to #[rustc_dump_variances]
2026-03-02 19:31:15 +01:00
mejrs
5f9a365964
Dele e0231
2026-02-24 10:50:39 +01:00
mejrs
f944436c29
port over diagnostic::on_unimplemented
2026-02-24 10:50:38 +01:00
Jonathan Brouwer
2a58411a87
Port #[feature] to the new attribute parsing infrastructure
...
Co-authored-by: jdonszelmann <janabent@gmail.com >
2026-02-22 19:28:00 +01:00
mu001999
58e5475683
Rewrite build_reduced_graph_for_use_tree
2026-02-20 10:58:58 +08:00
Stuart Cook
910d4f4c09
Rollup merge of #152206 - tshepang:misc, r=davidtwco
...
misc doc improvements
These are things I collected as I was looking at code and docs
2026-02-17 13:02:23 +11:00
Ralf Jung
5e65109f21
add write_box_via_move intrinsic and use it for vec!
...
This allows us to get rid of box_new entirely
2026-02-16 17:27:40 +01:00
Jonathan Brouwer
c61c2603cf
Port #[lang] to the new attribute parsers
2026-02-13 16:04:19 +00:00
Tshepang Mbambo
638d23ce42
E0570: improve text
2026-02-07 04:25:02 +02:00
ritik chahar
daaff44cbc
Fix tidy formatting manually for E0423.md
2026-01-31 10:46:58 +05:30
ritik chahar
9cdcd0c3fa
Document enum types used as values for E0423
2026-01-31 10:15:19 +05:30
Edvin Bryntesson
acd6ba4edb
Port #[instruction_set] to attribute parser
2025-12-31 03:01:05 +01:00
Matthias Krüger
185f7dc044
Rollup merge of #149949 - JonathanBrouwer:error_cleanup, r=jdonszelmann
...
Cleanup of attribute parsing errors
Removes the specific `UnknownMetaItem` and `IllFormedAttributeInputLint` errors.
Note that `IllFormedAttributeInputLint` is not a lint, contrary to its name
r? ``````@jdonszelmann``````
2025-12-14 20:04:56 +01:00
bors
3f4dc1e02d
Auto merge of #146348 - jdonszelmann:eiiv3, r=lcnr,oli-obk
...
Externally implementable items
Supersedes https://github.com/rust-lang/rust/pull/140010
Tracking issue: https://github.com/rust-lang/rust/issues/125418
Getting started:
```rust
#![feature(eii)]
#[eii(eii1)]
pub fn decl1(x: u64)
// body optional (it's the default)
{
println!("default {x}");
}
// in another crate, maybe
#[eii1]
pub fn decl2(x: u64) {
println!("explicit {x}");
}
fn main() {
decl1(4);
}
```
- tiny perf regression, underlying issue makes multiple things in the compiler slow, not just EII, planning to solve those separately.
- No codegen_gcc support, they don't have bindings for weak symbols yet but could
- No windows support yet for weak definitions
This PR merges the implementation of EII for just llvm + not windows, doesn't yet contain like a new panic handler implementation or alloc handler. With this implementation, it would support implementing the panic handler in terms of EII already since it requires no default implementation so no weak symbols
The PR has been open in various forms for about a year now, but I feel that having some implementation merged to build upon
2025-12-14 04:20:26 +00:00
Jonathan Brouwer
1da1a39c9a
Remove UnknownMetaItem error
2025-12-13 13:44:57 +01:00
Jacob Pratt
6b29f18654
Rollup merge of #149903 - JonathanBrouwer:cfg_old_cleanup, r=jdonszelmann
...
Remove unused code in `cfg_old`
r? ```@jdonszelmann```
Fixes one of the todos from https://github.com/rust-lang/rust/issues/149865
2025-12-13 00:55:58 -05:00
Jonathan Brouwer
0ab4b8b9e0
Remove the E0536 error code
2025-12-12 14:38:12 +01:00
Jana Dönszelmann
52e0bfccb0
rename feature gate to extern_item_impls
2025-12-12 11:32:35 +01:00
Jana Dönszelmann
a4abfad99b
EII new error code
2025-12-12 11:32:26 +01:00
Matthias Krüger
bf399241fe
Rollup merge of #146584 - cyrgani:error-codes-macro, r=GuillaumeGomez
...
remove duplicated columns from `rustc_error_code::error_codes!`
Possible because of rust-lang/rust#146308 ~~, but currently still blocked on the next stage0 bump~~.
2025-12-11 22:09:52 +01:00
Matthias Krüger
02434fe718
Rollup merge of #148678 - xonx4l:EO412_replacement_with_EO425, r=Kivooeo
...
Merge E0412 into E0425
This PR merge E0412 into E0425 as both mean the same thing to users.
This fixes https://github.com/rust-lang/rust/issues/148558 .
2025-12-02 22:02:30 +01:00
xonx4l
4b000cfacd
Merge E0412 into E0425
2025-12-02 18:25:13 +00:00
reddevilmidzy
d4af0f0772
Fix indent in E0591.md
2025-11-30 21:24:33 +09:00
lcnr
feb13036ef
remove support for type-of
2025-11-25 10:19:44 +01:00
bjorn3
973c7527b4
Unify the configuration of the compiler docs
...
Previously it was rather inconsistent which crates got the rust logo and
which didn't and setting html_root_url was forgotten in many cases.
2025-11-05 11:25:27 +00:00
Jonathan Brouwer
b78800fd5d
Port cfg!() macro to the new attribute parsing system
...
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com >
2025-11-03 18:23:41 +01:00
Matthias Krüger
7320d3ed61
Rollup merge of #146585 - hkBst:indexing-1, r=jdonszelmann
...
indexing: reword help
After looking at https://github.com/rust-lang/rust/issues/40850 , I thought I'd try to improve wording around error E0608 a bit. Hopefully I've succeeded.
2025-10-02 10:27:49 +02:00
Marijn Schouten
86f2d424c8
indexing: reword help
...
Co-authored-by: beef <ent3rm4n@gmail.com >
2025-10-01 07:39:03 +00:00
cyrgani
321cd2aa25
remove duplicated columns from rustc_error_code::error_codes!
2025-09-27 12:29:54 +02:00
Jules Bertholet
60dd0df6e7
Address review comments
2025-09-24 13:52:33 -04:00
Jules Bertholet
389907a17e
Enforce E0719 only for trait aliases
2025-09-18 09:16:58 -04:00
Jonathan Brouwer
7db1840569
Changes to the uitests
...
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com >
2025-08-27 20:25:18 +02:00