-
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 8 pull requests #99451
Rollup of 8 pull requests #99451
Commits on Jul 18, 2022
-
This is needed for my Ubuntu 22.04 box due to a slight change in gdb output. The fix is similar to the fix in rust-lang#95063.
Configuration menu - View commit details
-
Copy full SHA for 13bf958 - Browse repository at this point
Copy the full SHA 13bf958View commit details -
Configuration menu - View commit details
-
Copy full SHA for c1c1abc - Browse repository at this point
Copy the full SHA c1c1abcView commit details -
Use span_bug for unexpected field projection type
Improves the compiler error backtrace information, as shown in rust-lang#99363, by using `span_bug` instead of `bug`. New output: ``` build/aarch64-apple-darwin/stage1/bin/rustc /tmp/test.rs --edition=2021 error: internal compiler error: compiler/rustc_middle/src/ty/closure.rs:185:25: Unexpected type Opaque(DefId(0:5 ~ test[db0f]::main::T::{opaque#0}), []) for `Field` projection --> /tmp/test.rs:11:27 | 11 | let Foo((a, b)) = foo; | ^^^ thread 'rustc' panicked at 'Box<dyn Any>', /Users/jmq/src/forked/rust/compiler/rustc_errors/src/lib.rs:1331:9 stack backtrace: ``` (Remainder of output truncated.)
Jordan McQueen authored and Jordan McQueen committedJul 18, 2022 Configuration menu - View commit details
-
Copy full SHA for 38f090b - Browse repository at this point
Copy the full SHA 38f090bView commit details -
Update invalid atomic ordering lint
The restriction that success ordering must be at least as strong as its failure ordering in compare-exchange operations was lifted in rust-lang#98383.
Configuration menu - View commit details
-
Copy full SHA for 45afc21 - Browse repository at this point
Copy the full SHA 45afc21View commit details -
Configuration menu - View commit details
-
Copy full SHA for f403260 - Browse repository at this point
Copy the full SHA f403260View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50c612f - Browse repository at this point
Copy the full SHA 50c612fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e52837c - Browse repository at this point
Copy the full SHA e52837cView commit details
Commits on Jul 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 136f017 - Browse repository at this point
Copy the full SHA 136f017View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01b2379 - Browse repository at this point
Copy the full SHA 01b2379View commit details -
Rollup merge of rust-lang#97183 - oli-obk:tait_ice_async, r=jackh726
wf-check generators fixes rust-lang#90409 We should not rely on generators being well formed by construction now that they can get used via type alias impl trait (and thus users can choose generic arguments that are invalid). This can cause surprising behaviour if (definitely unsound) transmutes are used, and it's generally saner to just check for well formedness.
Configuration menu - View commit details
-
Copy full SHA for 881e1c1 - Browse repository at this point
Copy the full SHA 881e1c1View commit details -
Rollup merge of rust-lang#98320 - compiler-errors:macro-backtrace, r=…
…estebank Mention first and last macro in backtrace Slight improvement to diagnostic mentioning what macro an error originates from. Not sure if it's worthwhile.
Configuration menu - View commit details
-
Copy full SHA for af13e55 - Browse repository at this point
Copy the full SHA af13e55View commit details -
Rollup merge of rust-lang#99335 - Dav1dde:fromstr-docs, r=JohnTitor
Use split_once in FromStr docs Current implementation: ```rust fn from_str(s: &str) -> Result<Self, Self::Err> { let coords: Vec<&str> = s.trim_matches(|p| p == '(' || p == ')' ) .split(',') .collect(); let x_fromstr = coords[0].parse::<i32>()?; let y_fromstr = coords[1].parse::<i32>()?; Ok(Point { x: x_fromstr, y: y_fromstr }) } ``` Creating the vector is not necessary, `split_once` does the job better. Alternatively we could also remove `trim_matches` with `strip_prefix` and `strip_suffix`: ```rust let (x, y) = s .strip_prefix('(') .and_then(|s| s.strip_suffix(')')) .and_then(|s| s.split_once(',')) .unwrap(); ``` The question is how much 'correctness' is too much and distracts from the example. In a real implementation you would also not unwrap (or originally access the vector without bounds checks), but implementing a custom Error and adding a `From<ParseIntError>` and implementing the `Error` trait adds a lot of code to the example which is not relevant to the `FromStr` trait.
Configuration menu - View commit details
-
Copy full SHA for 9f6a2fd - Browse repository at this point
Copy the full SHA 9f6a2fdView commit details -
Rollup merge of rust-lang#99347 - compiler-errors:opaque-type-key-loc…
…al-def-id, r=oli-obk Use `LocalDefId` in `OpaqueTypeKey` Addresses a `// FIXME(oli-obk): make this a LocalDefId` r? ``@oli-obk``
Configuration menu - View commit details
-
Copy full SHA for d00646b - Browse repository at this point
Copy the full SHA d00646bView commit details -
Rollup merge of rust-lang#99392 - nnethercote:fix-debuginfo-tests, r=…
…pnkfelix Fix debuginfo tests. This is needed for my Ubuntu 22.04 box due to a slight change in gdb output. The fix is similar to the fix in rust-lang#95063.
Configuration menu - View commit details
-
Copy full SHA for bf1366b - Browse repository at this point
Copy the full SHA bf1366bView commit details -
Rollup merge of rust-lang#99404 - jmqd:master, r=compiler-errors
Use span_bug for unexpected field projection type Improves the compiler error backtrace information, as shown in rust-lang#99363, by using `span_bug` instead of `bug`. New output: ``` build/aarch64-apple-darwin/stage1/bin/rustc /tmp/test.rs --edition=2021 error: internal compiler error: compiler/rustc_middle/src/ty/closure.rs:185:25: Unexpected type Opaque(DefId(0:5 ~ test[db0f]::main::T::{opaque#0}), []) for `Field` projection --> /tmp/test.rs:11:27 | 11 | let Foo((a, b)) = foo; | ^^^ thread 'rustc' panicked at 'Box<dyn Any>', /Users/jmq/src/forked/rust/compiler/rustc_errors/src/lib.rs:1331:9 stack backtrace: ``` (Remainder of output truncated.)
Configuration menu - View commit details
-
Copy full SHA for 43dbf05 - Browse repository at this point
Copy the full SHA 43dbf05View commit details -
Rollup merge of rust-lang#99410 - tmiasko:atomic-lint, r=fee1-dead
Update invalid atomic ordering lint The restriction that success ordering must be at least as strong as its failure ordering in compare-exchange operations was lifted in rust-lang#98383.
Configuration menu - View commit details
-
Copy full SHA for 415f7e1 - Browse repository at this point
Copy the full SHA 415f7e1View commit details -
Rollup merge of rust-lang#99434 - timvermeulen:skip_next_non_fused, r…
…=scottmcm Fix `Skip::next` for non-fused inner iterators `iter.skip(n).next()` will currently call `nth` and `next` in succession on `iter`, without checking whether `nth` exhausts the iterator. Using `?` to propagate a `None` value returned by `nth` avoids this.
Configuration menu - View commit details
-
Copy full SHA for e301cd3 - Browse repository at this point
Copy the full SHA e301cd3View commit details