Ralf Jung
f99566ec4d
data_race: detect races between atomic and non-atomic accesses, even if both are reads
2023-10-23 11:35:12 +02:00
Ralf Jung
a4e42ad185
data_race: clarify and slightly refactor non-atomic handling
2023-10-23 09:45:29 +02:00
The Miri Conjob Bot
dd683dd12e
fmt
2023-10-23 08:40:43 +02:00
The Miri Conjob Bot
624f68da16
Merge from rustc
2023-10-23 05:37:15 +00:00
The Miri Conjob Bot
a80b5c00b6
Preparing for merge from rustc
2023-10-23 05:30:20 +00:00
bors
913ceaee96
Auto merge of #117062 - Kobzol:update-rustc-perf, r=Mark-Simulacrum
...
Update rustc-perf version
Needed to unblock https://github.com/rust-lang/rust/pull/116033 .
The commit first needs to be uploaded to our mirrors.
r? `@Mark-Simulacrum`
2023-10-22 21:57:27 +00:00
bors
54b0434cea
Auto merge of #117000 - weihanglo:update-cargo, r=weihanglo
...
Update cargo
22 commits in 8eb8acbb116e7923ea2ce33a50109933ed5ab375..d2f6a048529eb8e9ebc55d793abd63456c98fac2
2023-10-17 11:55:04 +0000 to 2023-10-20 18:25:30 +0000
- chore(deps): bump rustix from 0.38.18 to 0.38.19 (rust-lang/cargo#12851 )
- refactor: centralize logic of getting max resolve version (rust-lang/cargo#12860 )
- If there's a version in the lock file only use that exact version (rust-lang/cargo#12772 )
- Make the precise field of a source an Enum (rust-lang/cargo#12849 )
- fix(cli): Provide next steps for bad -Z flag (rust-lang/cargo#12857 )
- fix(remove): Preserve feature comments (rust-lang/cargo#12837 )
- docs: fix typo (rust-lang/cargo#12844 )
- chore(triagebot): auto label when PR review state changes (rust-lang/cargo#12856 )
- fix(add): Preserve more comments (rust-lang/cargo#12838 )
- ci: big ⚠️ to ensure the CNAME file is always there (rust-lang/cargo#12853 )
- docs(cargo-bench): `--bench` is passed in unconditionally to bench harnesses (rust-lang/cargo#12850 )
- docs(contrib): generate redirection HTML pages in CI (rust-lang/cargo#12846 )
- docs: remove review capacity notice (rust-lang/cargo#12842 )
- fix(help):Clarify install's positional (rust-lang/cargo#12841 )
- Adjust `-Zcheck-cfg` for new rustc syntax and behavior (rust-lang/cargo#12845 )
- fix(replace): Partial-version spec support (rust-lang/cargo#12806 )
- Print environment variables for build script executions with `-vv` (rust-lang/cargo#12829 )
- fix(cli): Suggest cargo-search on bad commands (rust-lang/cargo#12840 )
- docs(contrib): Policy on manifest editing (rust-lang/cargo#12836 )
- ci/contrib: use separate concurrency group (rust-lang/cargo#12835 )
- ci/contrib: do not fail on missing gh-pages (rust-lang/cargo#12834 )
- Clarify flag behavior in `cargo remove --help` (rust-lang/cargo#12823 )
r? ghost
2023-10-22 20:02:32 +00:00
Jakub Beránek
41dfebbd17
Update rustc-perf version
2023-10-22 20:04:20 +02:00
bors
74092c5516
Auto merge of #3134 - RalfJung:log-not-lin, r=saethlin
...
avoid a linear scan over the entire int_to_ptr_map on each deallocation
2023-10-22 16:17:49 +00:00
Jakub Beránek
823d72abde
Pass host triple when running tests in opt-dist
2023-10-22 12:58:35 +02:00
Jakub Beránek
a836fd65f9
Use beta cargo in opt-dist
...
Using the new cargo caused issues when a backwards-incompatible change was made to cargo.
2023-10-22 12:58:35 +02:00
bors
f35c36af19
Auto merge of #3135 - RalfJung:nonatomic-clock, r=RalfJung
...
avoid AtomicU64 when a Cell is enough
2023-10-22 07:20:06 +00:00
Ralf Jung
b53c34f7b8
avoid AtomicU64 when a Cell is enough
2023-10-22 08:43:57 +02:00
Ralf Jung
8cbac823d0
clippy
2023-10-22 08:40:37 +02:00
Ralf Jung
48445b9181
avoid a linear scan over the entire int_to_ptr_map on each deallocation
2023-10-22 08:26:58 +02:00
The Miri Conjob Bot
1f09dd21b7
Merge from rustc
2023-10-22 05:36:24 +00:00
The Miri Conjob Bot
193fec640d
Preparing for merge from rustc
2023-10-22 05:29:24 +00:00
Philipp Krones
24b3554e73
Merge commit ' 2b030eb03d' into clippyup
2023-10-21 14:16:11 +02:00
The Miri Conjob Bot
8044a59a29
Merge from rustc
2023-10-21 05:23:43 +00:00
The Miri Conjob Bot
ee54d83b1f
Preparing for merge from rustc
2023-10-21 05:14:07 +00:00
Weihang Lo
45e74236aa
Update cargo
2023-10-20 18:56:53 -04:00
Oli Scherer
6fa47e15e7
bless miri
2023-10-20 21:14:02 +00:00
Oli Scherer
af93c20c06
Rename lots of files that had generator in their name
2023-10-20 21:14:02 +00:00
Oli Scherer
e96ce20b34
s/generator/coroutine/
2023-10-20 21:14:01 +00:00
Oli Scherer
60956837cf
s/Generator/Coroutine/
2023-10-20 21:10:38 +00:00
Ralf Jung
b824bb1158
ignore deny lints in josh
2023-10-20 08:04:49 +02:00
Ralf Jung
20fe485c57
Merge from rustc
2023-10-20 08:03:38 +02:00
Ralf Jung
464135de78
Preparing for merge from rustc
2023-10-20 08:03:31 +02:00
Ralf Jung
ecaf828e13
clarify comment
2023-10-19 22:32:42 +02:00
Ralf Jung
b325f31f66
remove allocations from int_to_ptr_map and exposed when they get freed
2023-10-19 22:26:15 +02:00
Ralf Jung
55ce55d965
switch intptrcast to helper trait pattern like everything else
2023-10-19 22:26:15 +02:00
Ralf Jung
f3863294a8
intptrcast: only find strictly in-bounds pointers when we are not hitting the base address
2023-10-19 22:15:59 +02:00
Ralf Jung
b01c480181
fmt
2023-10-19 21:26:38 +02:00
bors
94c4e5c411
Auto merge of #115214 - Urgau:rfc-3127-trim-paths, r=compiler-errors
...
Implement rustc part of RFC 3127 trim-paths
This PR implements (or at least tries to) [RFC 3127 trim-paths](https://github.com/rust-lang/rust/issues/111540 ), the rustc part. That is `-Zremap-path-scope` with all of it's components/scopes.
`@rustbot` label: +F-trim-paths
2023-10-19 19:09:29 +00:00
Ralf Jung
d5d8a515ce
Merge from rustc
2023-10-19 17:57:38 +02:00
Ralf Jung
8fb03fba15
Preparing for merge from rustc
2023-10-19 17:57:28 +02:00
Camille GILLOT
4ff03cd1a4
Allow to run filecheck in mir-opt tests.
2023-10-19 15:51:52 +00:00
Matthias Krüger
1d46614335
Rollup merge of #116650 - RalfJung:miri-intptrcast, r=oli-obk
...
add some comments and some cleanup around Miri intptrcast
`@saethlin` maybe this helps a bit?
2023-10-19 14:38:26 +02:00
Esteban Küber
bd8b46800d
Tweak wording of type errors involving type params
...
Fix #78206 .
2023-10-18 23:53:18 +00:00
dependabot[bot]
53fff9672c
Bump rustix from 0.38.17 to 0.38.19 in /miri-script
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.17 to 0.38.19.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.17...v0.38.19 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 21:35:00 +00:00
dependabot[bot]
277ab78c57
Bump rustix from 0.38.17 to 0.38.19 in /cargo-miri
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.17 to 0.38.19.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.17...v0.38.19 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 20:21:30 +00:00
dependabot[bot]
0036d400f0
Bump rustix from 0.38.17 to 0.38.19
...
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 18:44:37 +00:00
lcnr
306a7ea8b4
AliasTy::new instead of tcx method
2023-10-18 13:57:19 +02:00
bors
09df6108c8
Auto merge of #116767 - cjgillot:alloc-normalize, r=oli-obk
...
Normalize alloc-id in tests.
AllocIds are globally numbered in a rustc invocation. This makes them very sensitive to changes unrelated to what is being tested. This commit normalizes them by renumbering, in order of appearance in the output.
The renumbering allows to keep the identity, that a simple `allocN` wouldn't. This is useful when we have memory dumps.
cc `@saethlin`
r? `@oli-obk`
2023-10-17 20:46:53 +00:00
bors
94ba57cef4
Auto merge of #116855 - matthiaskrgr:rollup-i2izdwb, r=matthiaskrgr
...
Rollup of 5 pull requests
Successful merges:
- #111072 (Add new simpler and more explicit syntax for check-cfg)
- #116717 (Special case iterator chain checks for suggestion)
- #116719 (Add MonoItems and Instance to stable_mir)
- #116787 (Implement an internal lint encouraging use of `Span::eq_ctxt`)
- #116827 (Make `handle_options` public again.)
r? `@ghost`
`@rustbot` modify labels: rollup
2023-10-17 18:51:46 +00:00
Matthias Krüger
3ea438eb3a
Rollup merge of #116787 - a-lafrance:span-internal-lint, r=oli-obk
...
Implement an internal lint encouraging use of `Span::eq_ctxt`
Adds a new Rustc internal lint that forbids use of `.ctxt() == .ctxt()` for spans, encouraging use of `.eq_ctxt()` instead (see https://github.com/rust-lang/rust/issues/49509 ).
Also fixed a few violations of the lint in the Rustc codebase (a fun additional way I could test my code). Edit: MIR opt folks I believe that's why you're CC'ed, just a heads up.
Two things I'm not sure about:
1. The way I chose to detect calls to `Span::ctxt`. I know adding diagnostic items to methods is generally discouraged, but after some searching and experimenting I couldn't find anything else that worked, so I went with it. That said, I'm happy to implement something different if there's a better way out there. (For what it's worth, if there is a better way, it might be worth documenting in the rustc-dev-guide, which I'm happy to take care of)
2. The error message for the lint. Ideally it would probably be good to give some context as to why the suggestion is made (e.g. `rustc::default_hash_types` tells the user that it's because of performance), but I don't have that context so I couldn't put it in the error message. Happy to iterate on the error message based on feedback during review.
r? ``@oli-obk``
2023-10-17 19:07:23 +02:00
bors
2366a90d3f
Auto merge of #3124 - eduardosm:fix-sse41-round, r=RalfJung
...
Fix rounding mode check in SSE4.1 round functions
Now it masks out the correct bit and adds some explanatory comments. Also extends the tests.
2023-10-17 15:24:26 +00:00
Eduardo Sánchez Muñoz
a8aa303cf0
Fix rounding mode check in SSE4.1 round functions
...
Now it masks out the correct bit and adds some explanatory comments. Also extends the tests.
2023-10-17 17:22:39 +02:00
Weihang Lo
8f970c72a6
Update cargo
2023-10-17 10:26:13 -04:00
Urgau
dcde31ad1e
[RFC 3127 - Trim Paths]: Fix building tools (rustdoc, clippy, ...)
2023-10-17 10:11:31 +02:00