-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 10 pull requests #108904
Rollup of 10 pull requests #108904
Commits on Jan 27, 2023
-
Relax ordering rules for
asm!
operandsThe `asm!` and `global_asm!` macros require their operands to appear strictly in the following order: - Template strings - Positional operands - Named operands - Explicit register operands - `clobber_abi` - `options` This is overly strict and can be inconvienent when building complex `asm!` statements with macros. This PR relaxes the ordering requirements as follows: - Template strings must still come before all other operands. - Positional operands must still come before named and explicit register operands. - Named and explicit register operands can be freely mixed. - `options` and `clobber_abi` can appear in any position.
Configuration menu - View commit details
-
Copy full SHA for 52f7a21 - Browse repository at this point
Copy the full SHA 52f7a21View commit details
Commits on Mar 4, 2023
-
Delete old re-exports from rustc_smir
This approach didn't seem to work well.
Configuration menu - View commit details
-
Copy full SHA for 40185db - Browse repository at this point
Copy the full SHA 40185dbView commit details
Commits on Mar 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2c9b8c5 - Browse repository at this point
Copy the full SHA 2c9b8c5View commit details
Commits on Mar 7, 2023
-
Create new rustc_smir struct to map future crates
+ Add some information to the README.md
Configuration menu - View commit details
-
Copy full SHA for b66db7e - Browse repository at this point
Copy the full SHA b66db7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d13454 - Browse repository at this point
Copy the full SHA 8d13454View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bfcfd0 - Browse repository at this point
Copy the full SHA 3bfcfd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 775bacd - Browse repository at this point
Copy the full SHA 775bacdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5eaeb71 - Browse repository at this point
Copy the full SHA 5eaeb71View commit details
Commits on Mar 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a439c02 - Browse repository at this point
Copy the full SHA a439c02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f4255e - Browse repository at this point
Copy the full SHA 0f4255eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a99ffc - Browse repository at this point
Copy the full SHA 8a99ffcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 08e5a77 - Browse repository at this point
Copy the full SHA 08e5a77View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64eea3c - Browse repository at this point
Copy the full SHA 64eea3cView commit details -
Rename
MapInPlace
asFlatMapInPlace
.After removing the `map_in_place` method, which isn't much use because modifying every element in a collection such as a `Vec` can be done trivially with iteration.
Configuration menu - View commit details
-
Copy full SHA for be60bcb - Browse repository at this point
Copy the full SHA be60bcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 204ba32 - Browse repository at this point
Copy the full SHA 204ba32View commit details -
Rollup merge of rust-lang#105798 - Amanieu:relax-asm, r=joshtriplett
Relax ordering rules for `asm!` operands The `asm!` and `global_asm!` macros require their operands to appear strictly in the following order: - Template strings - Positional operands - Named operands - Explicit register operands - `clobber_abi` - `options` This is overly strict and can be inconvienent when building complex `asm!` statements with macros. This PR relaxes the ordering requirements as follows: - Template strings must still come before all other operands. - Positional operands must still come before named and explicit register operands. - Named and explicit register operands can be freely mixed. - `options` and `clobber_abi` can appear in any position after the template strings. r? `@joshtriplett`
Configuration menu - View commit details
-
Copy full SHA for 20a8119 - Browse repository at this point
Copy the full SHA 20a8119View commit details -
Rollup merge of rust-lang#108148 - parthopdas:master, r=oli-obk
rust-lang#107307 Implementing "<test_binary> --list --format json" for use by IDE test explorers / runners PR 1 of 2 - wiring up just the new information + implement the command line changes i.e. --format json + tests upcoming: PR 2 of 2 - clean up "#[cfg(not(bootstrap))]" from PR 1 As per the discussions on - MCP: https://rust-lang.zulipchat.com/#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/Implementing.20.22.3Ctest_binary.3E.20--list.20--form.E2.80.A6.20compiler-team.23592/near/328747548 - preRFC: https://internals.rust-lang.org/t/pre-rfc-implementing-test-binary-list-format-json-for-use-by-ide-test-explorers-runners/18308 - FYI on Discord: https://discord.com/channels/442252698964721669/459149169546887178/1075581549409484820
Configuration menu - View commit details
-
Copy full SHA for d810534 - Browse repository at this point
Copy the full SHA d810534View commit details -
Rollup merge of rust-lang#108839 - compiler-errors:canonicalize-the-r…
…oot-var, r=lcnr Canonicalize root var when making response from new solver During trait solving, if we equate two inference variables `?0` and `?1` but don't equate them with any rigid types, then `InferCtxt::probe_ty_var` will return `Err` for both of these. The canonicalizer code will then canonicalize the variables independently(!), and the response will not reflect the fact that these two variables have been made equal. This hinders inference and I also don't think it's sound? I haven't thought too much about it past that, so let's talk about it. r? `@lcnr`
Configuration menu - View commit details
-
Copy full SHA for ae46eba - Browse repository at this point
Copy the full SHA ae46ebaView commit details -
Rollup merge of rust-lang#108846 - celinval:smir-poc, r=oli-obk
StableMIR: Proof-of-concept implementation + test This PR is part of the [project Stable MIR](https://github.com/rust-lang/project-stable-mir). The PR deletes old re-exports from rustc_smir and introduces a proof-of-concept implementation for APIs to retrieve crate information. The implementation follows the [design described here](https://hackmd.io/XhnYHKKuR6-LChhobvlT-g?view), but instead of using separate crates for the implementation, it uses separate modules inside `rustc_smir`. The API introduced at this point should be seen just as an example on how we are planning to structure the communication between tools and the compiler. I have not explored yet what should be the right granularity, the best starting point for users, neither the best way to implement it. r? `````@oli-obk`````
Configuration menu - View commit details
-
Copy full SHA for e4844a5 - Browse repository at this point
Copy the full SHA e4844a5View commit details -
Rollup merge of rust-lang#108873 - WaffleLapkin:cmp, r=cjgillot
Simplify `sort_by` calls small cleanup
Configuration menu - View commit details
-
Copy full SHA for 292f553 - Browse repository at this point
Copy the full SHA 292f553View commit details -
Rollup merge of rust-lang#108882 - compiler-errors:E0740, r=eholk
Tweak E0740 Also drive-by suppress E0740 if it's an unresolved type.
Configuration menu - View commit details
-
Copy full SHA for 780c2c1 - Browse repository at this point
Copy the full SHA 780c2c1View commit details -
Rollup merge of rust-lang#108883 - compiler-errors:post-norm-copy-err…
…, r=BoxyUwU Suppress copy impl error when post-normalized type references errors Suppress spurious errors from the `Copy` impl validity check when fields have bad types *post*-normalization, instead of just pre-normalization. ---- The const-generics test regressed recently due to rust-lang#107965, cc ````@BoxyUwU.```` * I think it's because `[_; 0u32]: Copy` now fails to hold because a nested obligation `ConstArgHasType(0u32, usize)` fails. * It's interesting that `[const_error]` shows up in the type only after normalization, though, but I'm pretty sure that it's due to the evaluate call that happens when normalizing unevaluated consts.
Configuration menu - View commit details
-
Copy full SHA for 5b7b922 - Browse repository at this point
Copy the full SHA 5b7b922View commit details -
Rollup merge of rust-lang#108884 - compiler-errors:tweak-illegal-copy…
…-impl-message, r=WaffleLapkin Tweak illegal `Copy` impl message The phrase "may not" can both mean "is not able to" and "possibly does not". Disambiguate this by just using "cannot". `@Lokathor` expressed being annoyed by this [here](https://twitter.com/Lokathor/status/1633200313544089602?s=20). Also drive-by fix for this extremely noisy message: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=6a37275bc810f7846bfe191845b7d11d. r? diagnostics
Configuration menu - View commit details
-
Copy full SHA for 62d18cb - Browse repository at this point
Copy the full SHA 62d18cbView commit details -
Rollup merge of rust-lang#108887 - nnethercote:rename-MapInPlace, r=lqd
Rename `MapInPlace` as `FlatMapInPlace`. After removing the `map_in_place` method, which isn't much use because modifying every element in a collection such as a `Vec` can be done trivially with iteration. r? `@lqd`
Configuration menu - View commit details
-
Copy full SHA for ec7485c - Browse repository at this point
Copy the full SHA ec7485cView commit details -
Rollup merge of rust-lang#108901 - LYF1999:yf/108897, r=lcnr
fix: evaluate with wrong obligation stack fix rust-lang#108897 r? `@lcnr`
Configuration menu - View commit details
-
Copy full SHA for 4b60218 - Browse repository at this point
Copy the full SHA 4b60218View commit details