about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-08-12Opaques do not constrain generic paramsMichael Goulet-13/+51
2023-08-12Auto merge of #109356 - jackh726:issue-108544, r=lcnrbors-12/+77
Only check outlives goals on impl compared to trait Fixes #108544 r? `@compiler-errors`
2023-08-11Only check outlives goals on impl compared to traitJack Huey-12/+77
2023-08-11Auto merge of #114720 - scottmcm:better-sub, r=workingjubileebors-5/+58
Tell LLVM that the negation in `<*const T>::sub` cannot overflow Today it's just `sub` <https://rust.godbolt.org/z/8EzEPnMr5>; with this PR it's `sub nsw`.
2023-08-11Auto merge of #114735 - RalfJung:miri, r=RalfJungbors-55/+1795
update Miri r? `@ghost`
2023-08-11Auto merge of #114729 - flip1995:clippyup, r=Manishearthbors-378/+1543
Update Clippy r? `@Manishearth` cc `@Centri3` This reinstates the `filter_map_bool_then` lint https://github.com/rust-lang/rust/pull/114715, since I think you fixed the ICE in https://github.com/rust-lang/rust/commit/beb57f074eb83643dde6ad960edadd3dbe4e6109 which is included in this sync.
2023-08-11Auto merge of #2989 - eduardosm:x86-intrinsics, r=RalfJungbors-0/+1720
miri: implement some `llvm.x86.sse.*` intrinsics and add tests PR moved from https://github.com/rust-lang/rust/pull/113932. Implements LLVM intrisics needed to run most SSE functions from `core::arch::x86{,_64}`. Also adds miri tests for those functions (mostly copied from core_arch tests). r? `@RalfJung` The first commit is the same that the commit in the PR I had opened in the Rust repository. I addressed review comments in additional commits to make it easier to review. I also fixed formatting and clippy warnings.
2023-08-11Auto merge of #3023 - RalfJung:gamma, r=RalfJungbors-3024/+4240
add gamma function shims needs a rustup to fetch the new declarations in std
2023-08-11miri: implement some `llvm.x86.sse.*` intrinsics and add testsEduardo Sánchez Muñoz-0/+1720
Implements LLVM intrisics needed to run most SSE functions from `core::arch::x86{,_64}`. Also adds miri tests for those functions (mostly copied from core_arch tests).
2023-08-11Auto merge of #113432 - klensy:ms-cut-backtrace, r=ChrisDentonbors-9/+13
reduce deps for windows-msvc targets for backtrace (eventually) mirrors https://github.com/rust-lang/backtrace-rs/pull/543 Some dependencies of backtrace don't used on windows-msvc targets, so exclude them: miniz_oxide (+ adler) addr2line (+ gimli) object (+ memchr) This saves about 30kb of std.dll + 17.5mb of rlibs
2023-08-11Merge commit '1e8fdf492808a25d78a97e1242b835ace9924e4d' into clippyupPhilipp Krones-378/+1543
2023-08-11Auto merge of #11320 - max-niederman:redundant_locals_shadow_mutated, ↵bors-11/+31
r=Alexendoo redundant_locals: fix FPs on mutated shadows Fixes #11290. When a mutable binding is shadowed by a mutable binding of the same name in a different scope, mutations in that scope have different meaning. This PR fixes spurious `redundant_locals` emissions on such locals. cc `@Centri3,` `@flip1995` changelog: [`redundant_locals`]: fix false positives on mutated shadows
2023-08-11Auto merge of #114672 - lenawanel:master, r=compiler-errorsbors-5/+17
make `typeid::typeid_itanium_cxx_abi::transform_ty` evaluate length in array types the ICE in https://github.com/rust-lang/rust/issues/114275 was caused by `transform_ty` in compiler/rustc_symbol_mangling/src/typeid/typeid_itanium_cxx_abi.rs encountering an unevaluated const, while expecting it to already be evaluated.
2023-08-11Auto merge of #11316 - flip1995:rustup, r=flip1995bors-148/+156
Rustup r? `@ghost` cc `@max-niederman` With the latest sync, I'm getting a lot of FP in the `redundant_locals` lint you recently added. Any ideas where this could come from? changelog: none
2023-08-11Dogfood and bless testsPhilipp Krones-2/+3
2023-08-11Fix redundant_locals for Async desugaringPhilipp Krones-0/+2
2023-08-11Auto merge of #114719 - compiler-errors:rollup-bf1vr51, r=compiler-errorsbors-224/+31
Rollup of 5 pull requests Successful merges: - #114194 (Inline trivial (noop) flush calls) - #114257 (Avoid using `ptr::Unique` in `LinkedList` code) - #114359 ([library/std] Replace condv while loop with `cvar.wait_while`.) - #114402 (Fix documentation of impl From<Vec<T>> for Rc<[T]>) - #114715 (Revert clippy lint [`filter_map_bool_then`]) r? `@ghost` `@rustbot` modify labels: rollup
2023-08-10Tell LLVM that the negation in `<*const T>::sub` cannot overflowScott McMurray-5/+58
Today it's just `sub` <https://rust.godbolt.org/z/8EzEPnMr5>; with this PR it's `sub nsw`.
2023-08-11Auto merge of #114718 - compiler-errors:rollup-1am5rpn, r=compiler-errorsbors-252/+670
Rollup of 7 pull requests Successful merges: - #114599 (Add impl trait declarations to SMIR) - #114622 (rustc: Move `crate_types` and `stable_crate_id` from `Session` to `GlobalCtxt`) - #114662 (Unlock trailing where-clauses for lazy type aliases) - #114693 (Remove myself from the review rotation) - #114694 (make the provisional cache slightly less broken) - #114705 (Add spastorino to mailmap) - #114712 (Fix a couple of bad comments) r? `@ghost` `@rustbot` modify labels: rollup
2023-08-10Rollup merge of #114715 - Centri3:revert-clippy-11115, r=ManishearthMichael Goulet-205/+0
Revert clippy lint [`filter_map_bool_then`] r? `@Manishearth` Issue in question is https://github.com/rust-lang/rust-clippy/issues/11309. We usually wait until the next sync but this ICE is entirely unpreventable and happens often for code where type annotations are needed alongside a lifetime parameter so I think it's a good idea to revert it here. Also, this got into 1.71.1: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=620a95846a0e4810dffb39d7594d62d7
2023-08-10Rollup merge of #114402 - tifv:tifv-fix-rc-doc, r=cuviperMichael Goulet-3/+3
Fix documentation of impl From<Vec<T>> for Rc<[T]> The example in the documentation of `impl From<Vec<T>> for <Rc<[T]>` is irrelevant (likely was copied from `impl From<Box<T>> for <Rc<T>`). I suggest taking corresponding example from the documentation of `Arc` and replacing `Arc` with `Rc`.
2023-08-10Rollup merge of #114359 - ttsugriy:barrier-simpl, r=cuviperMichael Goulet-5/+2
[library/std] Replace condv while loop with `cvar.wait_while`. `wait_while` takes care of spurious wake-ups in centralized place, reducing chances for mistakes and potential future optimizations (who knows, maybe in future there will be no spurious wake-ups? :)
2023-08-10Rollup merge of #114257 - rytheo:linked-list-avoid-unique, r=cuviperMichael Goulet-11/+13
Avoid using `ptr::Unique` in `LinkedList` code Addresses a [comment](https://github.com/rust-lang/rust/pull/103093#discussion_r1268506747) by `@RalfJung` about avoiding use of `core::ptr::Unique` in the standard library.
2023-08-10Rollup merge of #114194 - thomcc:flushinline, r=cuviperMichael Goulet-0/+13
Inline trivial (noop) flush calls At work I noticed that `writer.flush()?` didn't get optimized away in cases where the flush is obviously a no-op, which I had expected (well, desired). I went through and added `#[inline]` to a bunch of cases that were obviously noops, or delegated to ones that were obviously noops. I omitted platforms I don't have access to (some tier3). I didn't do this very scientifically, in cases where it was non-obvious I left `#[inline]` off.
2023-08-10Rollup merge of #114712 - compiler-errors:comment-nits, r=lcnrMichael Goulet-9/+9
Fix a couple of bad comments A couple of nits I saw. Sorry, this really should be folded into some other PR of mine, but I will literally forget if I don't put these up now.
2023-08-10Rollup merge of #114705 - spastorino:add-spastorino-mailmap, r=compiler-errorsMichael Goulet-0/+2
Add spastorino to mailmap
2023-08-10Rollup merge of #114694 - lcnr:provisional-cache, r=compiler-errorsMichael Goulet-56/+274
make the provisional cache slightly less broken It is still broken for the following cycles: ```mermaid graph LR R["R: coinductive"] --> A["A: inductive"] R --> B["B: coinductive"] A --> B B --> R ``` the `R -> A -> B -> R` cycle should be considered to not hold, as it is mixed, but because we first put `B` into the cache from the `R -> B -> R` cycle which is coinductive, it does hold. This issue will also affect our new coinduction approach. Longterm cycles are coinductive as long as one step goes through an impl where-clause, see https://github.com/rust-lang/a-mir-formality/blob/f4fc5bae36ab1a9fefddd54e5ccffc5f671467ec/crates/formality-prove/src/prove/prove_wc.rs#L51-L62. Here we would first have a fully inductive cycle `R -> B -> R` which is then entered by a cycle with a coinductive step `R -> A -coinductive-> B -> R`. I don't know how to soundly implement a provisional cache for goals not on the stack without tracking all cycles the goal was involved in and whether they were inductive or not. We could then only use goals from the cache if the *inductivity?* of every cycle remained the same. This is a mess to implement. I therefore want to rip out the provisional cache entirely, but will wait with this until I talked about it with `@nikomatsakis.` r? `@compiler-errors`
2023-08-10Rollup merge of #114693 - pietroalbini:pa-pietro-review-rotation, ↵Michael Goulet-1/+1
r=compiler-errors Remove myself from the review rotation I'll go on vacation soon, and in general I've not been able to keep up with the reviews. r? `@Mark-Simulacrum`
2023-08-10Rollup merge of #114662 - fmease:lazy-ty-aliases-unlock-trailing-wcs, r=oli-obkMichael Goulet-49/+175
Unlock trailing where-clauses for lazy type aliases Allows trailing where-clauses on lazy type aliases and forbids[^1] leading ones. Completes #89122 (see section *Top-level type aliases*). `@rustbot` label F-lazy_type_alias r? `@oli-obk` [^1]: This is absolutely fine since lazy type aliases are only meant to be stabilized as part of a new edition.
2023-08-10Rollup merge of #114622 - petrochenkov:noplugin, r=oli-obkMichael Goulet-135/+133
rustc: Move `crate_types` and `stable_crate_id` from `Session` to `GlobalCtxt` Removes two pieces of mutable state. Follow up to https://github.com/rust-lang/rust/pull/114578.
2023-08-10Rollup merge of #114599 - spastorino:add-impl-trait-smir, r=oli-obkMichael Goulet-2/+76
Add impl trait declarations to SMIR r? `@oli-obk`
2023-08-10redundant_locals: fix FPs on mutated shadowsMax Niederman-11/+31
When a mutable binding is shadowed by a mutable binding of the same name in a different scope, mutations in that scope have different meaning. This commit fixes spurious `redundant_locals` emissions on such locals.
2023-08-11Auto merge of #114507 - sebastiantoh:issue-114235, r=jackh726bors-12/+113
Add suggestion to quote inlined format argument as string literal Fixes #114235
2023-08-11Auto merge of #11318 - Centri3:#11309, r=Manishearthbors-11/+53
[`filter_map_bool_then`]: Don't ICE on late bound regions Fixes #11309 Also lints `&NonCopy` now, since any `&` is `Copy`. That was accidental, but it seems that this is a consequence (or improvement!) of this fix. r? `@Jarcho` changelog: [`filter_map_bool_then`]: Don't ICE on late bound regions
2023-08-10Comment nitsMichael Goulet-9/+9
2023-08-10Auto merge of #114005 - Zalathar:no-cstr, r=jackh726bors-26/+52
coverage: Don't convert filename/symbol strings to `CString` for FFI LLVM APIs are usually perfectly happy to accept pointer/length strings, as long as we supply a suitable length value when creating a `StringRef` or `std::string`. This lets us avoid quite a few intermediate `CString` copies during coverage codegen. It also lets us use an `IndexSet<Symbol>` (instead of an `IndexSet<CString>`) when building the deduplicated filename table.
2023-08-10Revert "New lint [`filter_map_bool_then`]"Catherine Flores-205/+0
This reverts commits 978b1daf99d8326718684381704902fdaaf71b18 and 3235d9d612909bc64550eea3a0d387e1187e93dd.
2023-08-10Add test for `&mut`Catherine Flores-1/+9
2023-08-10Don't ICE with late bound regionsCatherine Flores-11/+45
2023-08-10Add spastorino to mailmapSantiago Pastorino-0/+2
2023-08-10Auto merge of #114474 - estebank:missing-semi, r=compiler-errorsbors-13/+169
Detect missing `;` that parses as function call Fix #106515.
2023-08-10Bump nightly version -> 2023-08-10Philipp Krones-1/+1
2023-08-10Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-428/+1315
2023-08-10add gamma function shimsRalf Jung-2/+42
2023-08-10Add impl trait declarations to SMIRSantiago Pastorino-1/+75
2023-08-10Fix copy & paste doc errorSantiago Pastorino-1/+1
2023-08-10Merge from rustcRalf Jung-3021/+4197
2023-08-10Preparing for merge from rustcRalf Jung-1/+1
2023-08-10Auto merge of #3022 - RalfJung:upcast, r=compiler-errorsbors-31/+22
replace AsAny hack by trait upcasting :)
2023-08-10replace AsAny hack by trait upcasting :)Ralf Jung-31/+22