Rollup merge of #134971 - dxsullivan:fix-typo, r=lqd
chore: fix typos I hope my typo corrections will help you. Thank you for your work.
This commit is contained in:
commit
ac4546c9fd
5 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
// Regression test for <https://github.com/rust-lang/rust/issues/112515>.
|
||||
// It's to ensure that this code doesn't have infinite loop in rustdoc when
|
||||
// trying to retrive type alias implementations.
|
||||
// trying to retrieve type alias implementations.
|
||||
|
||||
// ignore-tidy-linelength
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Here, there are two types with the same name. One of these has a `derive` annotation, but in the
|
||||
// expansion these `impl`s are associated to the the *other* type. There is a suggestion to remove
|
||||
// unneded type parameters, but because we're now point at a type with no type parameters, the
|
||||
// unneeded type parameters, but because we're now point at a type with no type parameters, the
|
||||
// suggestion would suggest removing code from an empty span, which would ICE in nightly.
|
||||
//
|
||||
// issue: rust-lang/rust#108748
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// E0116 caused other unrelated errors, so check no unrelated errors are emmitted.
|
||||
// E0116 caused other unrelated errors, so check no unrelated errors are emitted.
|
||||
|
||||
fn main() {
|
||||
let x = "hello";
|
||||
|
|
|
@ -20,7 +20,7 @@ impl std::ops::Index<usize> for A {
|
|||
type Output = ();
|
||||
|
||||
fn index(&self, _idx: usize) -> &() {
|
||||
// Use the relative number to make it resistent to header changes.
|
||||
// Use the relative number to make it resistant to header changes.
|
||||
assert_eq!(caller_line(), self.prev_line + 2);
|
||||
&()
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Regression test for #107745.
|
||||
// Previously need_type_info::update_infer_source will consider expressions originating from
|
||||
// macro expressions as candiate "previous sources". This unfortunately can mean that
|
||||
// macro expressions as candidate "previous sources". This unfortunately can mean that
|
||||
// for macros expansions such as `format!()` internal implementation details can leak, such as:
|
||||
//
|
||||
// ```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue