Commit graph

298901 commits

Author SHA1 Message Date
Trevor Gross
913796c1c5 Fix compiler-builtins publish
compiler-builtins currently wouldn't publish correctly because of a
relative path to `libm` that doesn't get included in the package. Fix
this by simlinking `libm` to within the `compiler-builtins` directory.

Also symlink LICENSE.txt which lets us drop the `include` array in
Cargo.toml. LICENSE.txt and compiler-rt were not being included anyway,
since Cargo silently drops items that are not within the crate
directory.
2025-04-21 06:16:12 -04:00
Trevor Gross
94448a6ff6 Update README and CONTRIBUTING for the new repository layout 2025-04-21 06:16:12 -04:00
Trevor Gross
8ce02e8ef5 Move README.md to compiler-builtins, CONTRIBUTING.md to root
Do this in a commit so git tracks the move; a new README will be
introduced in the root, and CONTRIBUTING will be updated to apply to
both crates.
2025-04-21 06:16:12 -04:00
Trevor Gross
013a83acdd Update licensing information after repository refactoring
In order to disambiguate things now that libm is part of the
compiler-builtins repository, do the following:

* Mention libm in LICENSE.txt
* Clarify the default license for crates other than libm and
  compiler-builtins
* Add an explicit license field to Cargo.toml for all other crates
2025-04-21 06:16:12 -04:00
xizheyin
6fe881c788
Construct OutputType using macro and print [=FILENAME] help info
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-04-21 18:07:58 +08:00
Tshepang Mbambo
c6510d9e55
Merge pull request #2349 from rust-lang/rustc-pull
Rustc pull update
2025-04-21 10:57:39 +02:00
Lukas Wirth
c8527c4dc9 feat: Allow unsetting env vars in server.extraEnv config 2025-04-21 10:38:54 +02:00
bit-aloo
c0c6d4280c
support both trait and non-trail associated declaration 2025-04-21 13:28:53 +05:30
Lukas Wirth
244713d43a
Merge pull request #19650 from Veykril/push-rkxrprnwqktr
fix: Support unstable `UnsafePinned` struct in type layout calc
2025-04-21 07:47:50 +00:00
Lukas Wirth
1b40188314 fix: Support unstable UnsafePinned struct in type layout calc 2025-04-21 09:35:30 +02:00
reddevilmidzy
dd2d6b222b Cleaned up 5 tests in tests/ui 2025-04-21 16:16:38 +09:00
Patryk Wychowaniec
e0d07241d0 avr: Provide abort() 2025-04-21 03:02:24 -04:00
Trevor Gross
97ddaca356 Remove unsafe from naked_asm! blocks
This was changed in a recent nightly so the unsafety is only in the
attribute, `#[unsafe(naked)]`.
2025-04-21 02:45:06 -04:00
Lukas Wirth
8f80674dd6
Merge pull request #19636 from Veykril/push-wttkunmqyskm
fix: Fix completion_snippets_custom config always erroring
2025-04-21 06:28:45 +00:00
Lukas Wirth
5d12827099 fix: Fix completion_snippets_custom config always erroring 2025-04-21 08:18:11 +02:00
Lukas Wirth
c85f63d42e Back out "When changing the config, do not emit an error if a field is missing"
This backs out commit 8497fc321cad420b923e15f600106f8e22324930.
2025-04-21 08:10:00 +02:00
The rustc-dev-guide Cronjob Bot
d12c1f581f Merge from rustc 2025-04-21 04:03:09 +00:00
The rustc-dev-guide Cronjob Bot
49b62eeacc Preparing for merge from rustc 2025-04-21 04:03:02 +00:00
Hegui Dai
f8f23309ca Solved suggestions 2025-04-21 10:14:35 +08:00
Hegui Dai
ea0b6cba06 Solved suggestions 2025-04-21 09:54:11 +08:00
Alejandra González
48430c2970
iter_kv_map: recognize references on maps as well (#14596)
Fix rust-lang/rust-clippy#14595

changelog: [`iter_kv_map`]: recognize references on maps as well
2025-04-21 01:44:34 +00:00
Chayim Refael Friedman
5e544ed9d4 Allow wrapping builtin#offset_of fields argument in parentheses
This is necessary to correctly handle nested fields (`foo.bar`), see the comments in the code for explanation.
2025-04-21 03:43:15 +03:00
Nicholas Nethercote
85f6025f45 Store Results in Formatter.
Instead of `ResultsCursor`.

This partly undoes the second commit from #132346; possible because
`Results::as_result_cursor` (which doesn't consume the `Results`) is now
available. Delaying the `ResultsCursor` construction will facilitate the
next couple of commits.
2025-04-21 10:32:19 +10:00
Chayim Refael Friedman
3b2bb61dc8 Remove unnecessary predefined symbol clones
Now that they're const it's no longer needed.

Nothing manual was performed: only a regexp search of `sym::([\w][\w\d]*)\.clone\(\)` and replace by `sym::$1`.
2025-04-21 03:10:13 +03:00
Chayim Refael Friedman
b2908433fe Get rid of static predefined symbols
Make them all `const`.
2025-04-21 03:07:35 +03:00
Chayim Refael Friedman
c9e272ea0a Parse generic consts
A lang team experiment, https://github.com/rust-lang/rust/issues/113521.
2025-04-21 02:11:56 +03:00
Alex Macleod
8843067aec manual_ok_err: don't lint subpatterns 2025-04-20 22:52:40 +00:00
bors
b8005bff32 Auto merge of #140079 - ChrisDenton:rollup-2h5cg94, r=ChrisDenton
Rollup of 5 pull requests

Successful merges:

 - #137953 (simd intrinsics with mask: accept unsigned integer masks, and fix some of the errors)
 - #139990 (transmutability: remove NFA intermediate representation)
 - #140044 (rustc-dev-guide subtree update)
 - #140051 (Switch exploit mitigations to mdbook footnotes)
 - #140054 (docs: fix typo change from inconstants to invariants)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-04-20 22:41:28 +00:00
sayantn
421bf535b7 Augment stdarch-test to parse PPC
- Remove some unused env variables from `run.sh`
2025-04-20 21:39:39 +00:00
sayantn
1f40595e88 Remove x86_64-unknown-linux-gnu run
+ Rename `x86_64-unknown-linux-gnu-emulated` run to `x86_64-unknown-linux-gnu`
2025-04-20 21:39:39 +00:00
sayantn
6c4b416875 Add -Ctarget-feature=+avx512f run for the emulated run
+ Remove `-Z plt=yes`
2025-04-20 21:39:39 +00:00
sayantn
867fe30ba0 Add test-everything annotations to more archs to ensure test coverage, and some small changes to make CI pass
- Disable `vsx` tests for `ppc` and `ppc64`
 - Disable `tme` tests for `aarch64` and `aarch64_be`
 - Disable `frecipe` tests for `loongarch64`
 - Add `altivec` run for PPC32 (with `-C target-feature=+vsx` `qemu` gives a nasty error)
2025-04-20 21:39:39 +00:00
sayantn
db127cd717 Upgrade qemu CPU to max
- `ppc32` doesn't have `max` cpu model, so set it to `mpc8610`
2025-04-20 21:39:39 +00:00
sayantn
f2870b76fd Remove STDARCH_DISABLE_DEDUP_GUARD as it was unused 2025-04-20 21:39:39 +00:00
sayantn
bc9e29d9be Replace cfg(stdarch_intel_sde) with STDARCH_TEST_SKIP_FUNCTION 2025-04-20 21:39:39 +00:00
sayantn
b3a7ba4607 Change test skipping logic a little, separate feature-based and function-based skipping 2025-04-20 21:39:39 +00:00
sayantn
cc6855e1e9 Remove cupid dependency and env-override-no-avx CI run 2025-04-20 21:39:39 +00:00
sayantn
f6fbd665a0 Add PowerPC64 to CI 2025-04-20 21:39:39 +00:00
sayantn
6cc17153d9 Re-enable all conditionally-disabled x86 assert_instr tests 2025-04-20 21:39:39 +00:00
sayantn
c10b7f8a26 Upgrade CI OS versions
+ Bump ubuntu to 25.04, windows to `windows-2025`, macos-arm to `macos-15` and macos-x86 to `macos-15-large`
2025-04-20 21:39:39 +00:00
Nicholas Nethercote
bf8ce32558 Remove token::{Open,Close}Delim.
By replacing them with `{Open,Close}{Param,Brace,Bracket,Invisible}`.

PR #137902 made `ast::TokenKind` more like `lexer::TokenKind` by
replacing the compound `BinOp{,Eq}(BinOpToken)` variants with fieldless
variants `Plus`, `Minus`, `Star`, etc. This commit does a similar thing
with delimiters. It also makes `ast::TokenKind` more similar to
`parser::TokenType`.

This requires a few new methods:
- `TokenKind::is_{,open_,close_}delim()` replace various kinds of
  pattern matches.
- `Delimiter::as_{open,close}_token_kind` are used to convert
  `Delimiter` values to `TokenKind`.

Despite these additions, it's a net reduction in lines of code. This is
because e.g. `token::OpenParen` is so much shorter than
`token::OpenDelim(Delimiter::Parenthesis)` that many multi-line forms
reduce to single line forms. And many places where the number of lines
doesn't change are still easier to read, just because the names are
shorter, e.g.:
```
-   } else if self.token != token::CloseDelim(Delimiter::Brace) {
+   } else if self.token != token::CloseBrace {
```
2025-04-21 07:35:56 +10:00
est31
5258cb76a5 Don't call ungate_last 2025-04-20 23:14:55 +02:00
Chayim Refael Friedman
31c5918463
Merge pull request #19642 from ChayimFriedman2/fix-warn
fix: Two config code changes
2025-04-20 19:56:25 +00:00
Chayim Refael Friedman
7db3d21a8a When changing the config, do not emit an error if a field is missing 2025-04-20 22:45:25 +03:00
Chayim Refael Friedman
d1108a7305 Remove unused macro arm 2025-04-20 22:37:02 +03:00
Trevor Gross
cf13785636 ci: Fix release-plz configuration 2025-04-20 14:50:27 -04:00
Chayim Refael Friedman
42de0a525b
Merge pull request #19639 from bbb651/doc-fix-dead-links
doc: Fix dead manual links
2025-04-20 18:39:53 +00:00
bbb651
3f0d075653 doc: Fix dead manual links 2025-04-20 20:28:52 +03:00
Urgau
8307f97253 Check bare function idents for non snake-case name 2025-04-20 19:24:23 +02:00
Alex Macleod
077475f1a5
ptr_cast_constness: show snippet from the right context (#14622)
changelog: [`ptr_cast_constness`]: do not replace suggestion by content
of macro

Fixes rust-lang/rust-clippy#14621
2025-04-20 17:18:52 +00:00