Skip to content

Spelling & minor span fix #14357

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 2 commits into from
May 23, 2014
Merged

Spelling & minor span fix #14357

merged 2 commits into from
May 23, 2014

Conversation

huonw
Copy link
Member

@huonw huonw commented May 22, 2014

The span on a inner doc-comment would point to the next token, e.g. the span for the a line points to the b line, and the span of b points to the fn.

//! a
//! b

fn bar() {}

huonw added 2 commits May 22, 2014 22:55
The position of the .bump call (before extracting the span fields) was
causing a doc-comment to have the span of the next token, not itself.
@huonw
Copy link
Member Author

huonw commented May 22, 2014

(I've manually verified the span thing, but I don't know how to write a test for it.)

bors added a commit that referenced this pull request May 23, 2014
The span on a inner doc-comment would point to the next token, e.g. the span for the `a` line points to the `b` line, and the span of `b` points to the `fn`.

```rust
//! a
//! b

fn bar() {}
```
@bors bors closed this May 23, 2014
@bors bors merged commit d3fde84 into rust-lang:master May 23, 2014
@huonw huonw deleted the spelling branch June 27, 2014 06:47
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 20, 2023
fix: Don't pass feature flags to rustc private crates metadata invocation

Fixes rust-lang/rust-analyzer#14327

Better error reporting I'll do in a follow up
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 3, 2025
…ension_comparions` (rust-lang#14358)

close rust-lang#14357

changelog: [`case_sensitive_file_extension_comparisons`]: suggest
`is_some_and` to suppress other lint warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants