| Age | Commit message (Collapse) | Author | Lines |
|
Use lib crate type for SGX in `fn build_auxiliary`
since SGX does not support `dylib`
cc @Goirad
|
|
Moving more build-pass tests to check-pass
One or two tests became build-pass without the FIXME because they really
needed build-pass (were failing without it).
Helps with #62277
---
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/rust-lang/rust/71340)
<!-- Reviewable:end -->
|
|
Rollup of 5 pull requests
Successful merges:
- #71311 (On `FnDef` type annotation suggestion, use fn-pointer output)
- #71488 (normalize field projection ty to fix broken MIR issue)
- #71489 (Fix off by one in treat err as bug)
- #71585 (remove obsolete comment)
- #71634 (Revert #71372 ("Fix #! (shebang) stripping account space issue").)
Failed merges:
r? @ghost
|
|
Revert #71372 ("Fix #! (shebang) stripping account space issue").
While #71372 fixed some of the problems `#!`-stripping had, it introduced others:
* inefficient implementation (`.chars().filter(...).collect()` on the entire input file)
* this also means the length returned isn't always correct, leading to e.g. #71471
* it ignores whitespace anywhere, stripping ` # ! ...` which isn't a valid shebang
* the definition of "whitespace" it uses includes newlines, which means even `\n#\n!\n...` is stripped as a shebang (and anything matching the regex `\s*#\s*!\s*`, and not followed by `[`, really)
* it's backward-incompatible but didn't go through Crater
Now, #71487 is already open and will solve all of these issues. But for running Crater, and just in case #71487 takes a bit longer, I decided it's safer to just revert #71372.
This will also make #71372's diff clearer, as it will start again from the original whitespace-unaware version.
r? @petrochenkov
|
|
remove obsolete comment
Not sure if it's better to have an outdated comment or no comment at all (made obsolete by 2b9fea1300b515e0f8929bb3a09d4fb6fef3f0ea).
|
|
Fix off by one in treat err as bug
`-Ztreat-err-as-bug` doesn't work properly with delay_span_bug.
r? @eddyb
|
|
normalize field projection ty to fix broken MIR issue
Fixes #71344
r? @eddyb
|
|
On `FnDef` type annotation suggestion, use fn-pointer output
Address the last point in #71209.
|
|
This reverts commit 46a8dcef5c9e4de0d412c6ac3c4765cb4aef4f7f, reversing
changes made to f28e3873c55eb4bdcfc496e1f300b97aeb0d189c.
|
|
smoke-test for async fn with mir-opt-level=0
MIR opt levels heavily influence which MIR transformations run, and we barely test non-default opt levels. I am particularly worried about `async fn` lowering and how it might (not) work when the set of preceding MIR passes changes -- see https://github.com/rust-lang/rust/pull/70073.
This adds some basic smoke testing, where at least a few `async fn` `run-pass` test are ensured to also work with mir-opt-level=0.
|
|
|
|
Convert more queries to use `LocalDefId`
This PR is based on commits in https://github.com/rust-lang/rust/pull/71215 and should partially solve #70853
|
|
Update RLS to unbreak toolstate
Breakage caused by https://github.com/rust-lang/rust/pull/71263.
r? @ghost
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rollup of 7 pull requests
Successful merges:
- #67841 (Add Read/Write::can_read/write_vectored)
- #71524 (Minimize parameter of coerce_borrowed_pointer())
- #71558 (Cleanup and document `-Z tls-model` )
- #71578 (linkchecker: fix typo in main.rs)
- #71596 (Fix broken link in `QPath` documentation)
- #71604 (make recursive-zst test unleashed)
- #71605 (No need to whitelist E0750 anymore)
Failed merges:
r? @ghost
|
|
|
|
|
|
and `maybe_unused_trait_import` queries
|
|
|
|
|
|
|
|
|
|
No need to whitelist E0750 anymore
Since #71304 has been fixed, no need to whitelist it anymore.
r? @Dylan-DPC
|
|
make recursive-zst test unleashed
Make sure we find this issue even without const qualification.
r? @oli-obk @ecstatic-morse
|
|
Fix broken link in `QPath` documentation
r? @Dylan-DPC
|
|
linkchecker: fix typo in main.rs
Came across this while reading the file.
|
|
Cleanup and document `-Z tls-model`
r? @Amanieu
|
|
Minimize parameter of coerce_borrowed_pointer()
Change last parameter of `coerce_borrowed_pointer()` from `TypeAndMut` to `Mutability` (similar to `coerce_unsafe_ptr()`), since the `TypeAndMut::ty` is never used directly in this function.
|
|
Add Read/Write::can_read/write_vectored
When working with an arbitrary reader or writer, code that uses vectored
operations may end up being slower than code that copies into a single
buffer when the underlying reader or writer doesn't actually support
vectored operations. These new methods allow you to ask the reader or
witer up front if vectored operations are efficiently supported.
Currently, you have to use some heuristics to guess by e.g. checking if
the read or write only accessed the first buffer. Hyper is one concrete
example of a library that has to do this dynamically:
https://github.com/hyperium/hyper/blob/0eaf304644a396895a4ce1f0146e596640bb666a/src/proto/h1/io.rs#L582-L594
|
|
Emit basic block info for stmts and terminators in MIR dumps only with -Zverbose
r? @eddyb
as per https://github.com/rust-lang/rust/pull/70755#discussion_r403419476
|
|
Co-Authored-By: varkor <github@varkor.com>
|
|
|
|
mode
|
|
delay_span_bug bumps error_count after checking treat_err_as_bug
|
|
Breakage caused by https://github.com/rust-lang/rust/pull/71263.
|
|
|
|
|
|
|
|
Remove some `Vec` allocations to improve performance
This claws back most of the performance lost in https://github.com/rust-lang/rust/pull/69745.
r? @eddyb
|
|
Don't run various MIR optimizations at mir-opt-level=0
Add missing checks for mir-opt-level to non-essential MIR passes.
I verified that this can still bootstrap even with these passes disabled.
r? @oli-obk cc @RalfJung
|
|
Rollup of 6 pull requests
Successful merges:
- #68716 (Stabilize `Span::mixed_site`)
- #71263 (Remove unused abs_path method from rustc_span::source_map::FileLoader)
- #71409 (Point at the return type on `.into()` failure caused by `?`)
- #71419 (add message for resolution failure because wrong namespace)
- #71438 (Tweak some suggestions in `rustc_resolve`)
- #71589 (remove Unique::from for shared pointer types)
Failed merges:
r? @ghost
|