| Age | Commit message (Collapse) | Author | Lines |
|
|
|
Always use lazy qualif getters during const-checking
`has_mut_interior_eager_seek` was needed to work around an overly restrictive bound on the `per_local` argument to the `Qualif` trait. This PR makes that bound `FnMut` instead of `Fn` so we can seek cursors inside of it, resolving a FIXME in the const-checking code.
|
|
|
|
|
|
|
|
All qualif getters are now lazy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The resume arg is passed as argument `_2` and needs to be moved to the
`Yield`s target `Place`
|
|
|
|
|
|
Use BufWriter for emitting MIR
I noticed that `--emit=mir` takes long time on a large crate. https://github.com/rust-lang/rust/pull/64344 seem to have fixed `-Zdump-mir`, but not `--emit=mir`.
|
|
|
|
2. as a result, drop rustc_errors dep from syntax
|
|
For now, this is all the crate contains, but more
attribute logic & types will be moved there over time.
|
|
|
|
|
|
Address inconsistency in using "is" with "declared here"
"is" was generally used for NLL diagnostics, but not other diagnostics. Using "is" makes the diagnostics sound more natural and readable, so it seems sensible to commit to them throughout.
r? @Centril
|
|
Rollup of 6 pull requests
Successful merges:
- #68588 (check_unsafety: more code reuse)
- #68638 (Add missing links for cmp traits)
- #68660 (Fix typo.)
- #68669 (suggest adding space in accidental doc comments)
- #68670 (clarify "incorrect issue" error)
- #68680 (Add `#![doc(html_playground_url = ...)]` to alloc crate)
Failed merges:
r? @ghost
|
|
check_unsafety: more code reuse
r? oli-obk
|
|
Change opt-level from 2 back to 3
In Cargo.toml, the opt-level for `release` and `bench` was overridden to be 2. This was to work around a problem with LLVM 7. However, rust no longer uses LLVM 7, so this is hopefully no longer needed?
I tried a little bit to replicate the original problem, and could not. I think running this through CI is the best way to smoke test this :) Even if things break dramatically, the comment should be updated to reflect that things are still broken with LLVM 9.
I'm just getting started playing with the compiler, so apologies if I've missed an obvious problem here.
fixes #52378
(possibly relevant is the [current update to LLVM 10](https://github.com/rust-lang/rust/pull/67759))
|
|
In Cargo.toml, the opt-level for `release` and `bench` was
overridden to be 2. This was to work around a problem with LLVM
7. However, rust no longer uses LLVM 7, so this is no longer
needed.
This creates a small compile time regression in MIR constant eval,
so I've added a #[inline(always)] on the `step` function used in
const eval
Also creates a binary size increase in wasm-stringify-ints-small,
so I've bumped the limit there.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rollup of 11 pull requests
Successful merges:
- #68200 (Stabilize the debug_map_key_value feature)
- #68383 (Clean up E0205 explanation)
- #68412 (Clean up E0207 explanation)
- #68454 (clean up E0214 explanation)
- #68482 (clean up error codes explanation)
- #68563 (Don't call `tcx.fn_sig` on closures)
- #68570 (Bump LLVM submodule to fix LLVM assertion failure in MSP430 interrupt generation.)
- #68571 (check_match: extract common logic)
- #68573 (Clean up E0262 explanation)
- #68575 (Disable the testcase for Vxworks.)
- #68581 (Add support for icebreakers-cleanup-crew commands)
Failed merges:
r? @ghost
|
|
|
|
Fixes #68542
|
|
|
|
Print constants in `type_name` for const generics
Fixes https://github.com/rust-lang/rust/issues/65372.
r? @oli-obk as there may have been a deliberate decision not to in https://github.com/rust-lang/rust/commit/5b9848912a85e28d000602fc2e81bad9c2f2a981#diff-4ed1a72c0bfdf17be769ed520932cd02R80.
|
|
Make pointers to statics internal
Closes #67611
r? @nikomatsakis
|
|
|
|
|
|
|
|
Also share drop-glue when compiling with -Zshare-generics (i.e. at opt-level=0)
This PR adds drop-glue to the set of monomorphizations that can be shared across crates via `-Zshare-generics`.
This version of the PR might have detrimental effects on performance as it makes lots of stuff dependent on a single query results (`upstream_monomorphizations_for(def_id_of_drop_in_place)`). That should be fixable but let's do a perf run first.
Potentially fixes issue https://github.com/rust-lang/rust/issues/64140. (cc @alexcrichton)
The changes here are related to @matthewjasper's https://github.com/rust-lang/rust/pull/67332 but should be mostly orthogonal.
r? @ghost
|
|
Suggest borrowing `Vec<NonCopy>` in for loop
Partially address #64167.
|
|
|
|
|
|
This reduces the amount of invalidated data when new types are
add to upstream crates.
|
|
|
|
|
|
Partially address #64167.
|