Skip to content

chore: fix typos #134971

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

Merged
merged 1 commit into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/rustdoc/type-alias/deeply-nested-112515.rs
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/indexing/indexing-spans-caller-location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
&()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
//
// ```
Expand Down
Loading