forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#113676 - matthiaskrgr:rollup-n01iiy8, r=matth…
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#112525 (Adjustments for RustyHermit) - rust-lang#112729 (Add machine-applicable suggestion for `unused_qualifications` lint) - rust-lang#113618 (update ancient note) - rust-lang#113640 (Make `nodejs` control the default for RustdocJs tests instead of a hard-off switch) - rust-lang#113668 (Correct `the` -> `there` typo in items.md) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
14 changed files
with
150 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// run-rustfix | ||
|
||
#![deny(unused_qualifications)] | ||
|
||
mod foo { | ||
pub fn bar() {} | ||
} | ||
|
||
mod baz { | ||
pub mod qux { | ||
pub fn quux() {} | ||
} | ||
} | ||
|
||
fn main() { | ||
use foo::bar; | ||
bar(); | ||
//~^ ERROR unnecessary qualification | ||
|
||
use baz::qux::quux; | ||
quux(); | ||
//~^ ERROR unnecessary qualification | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// run-rustfix | ||
|
||
#![deny(unused_qualifications)] | ||
|
||
mod foo { | ||
pub fn bar() {} | ||
} | ||
|
||
mod baz { | ||
pub mod qux { | ||
pub fn quux() {} | ||
} | ||
} | ||
|
||
fn main() { | ||
use foo::bar; | ||
foo::bar(); | ||
//~^ ERROR unnecessary qualification | ||
|
||
use baz::qux::quux; | ||
baz::qux::quux(); | ||
//~^ ERROR unnecessary qualification | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
error: unnecessary qualification | ||
--> $DIR/unused-qualifications-suggestion.rs:17:5 | ||
| | ||
LL | foo::bar(); | ||
| ^^^^^^^^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/unused-qualifications-suggestion.rs:3:9 | ||
| | ||
LL | #![deny(unused_qualifications)] | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
help: replace it with the unqualified path | ||
| | ||
LL | bar(); | ||
| ~~~ | ||
|
||
error: unnecessary qualification | ||
--> $DIR/unused-qualifications-suggestion.rs:21:5 | ||
| | ||
LL | baz::qux::quux(); | ||
| ^^^^^^^^^^^^^^ | ||
| | ||
help: replace it with the unqualified path | ||
| | ||
LL | quux(); | ||
| ~~~~ | ||
|
||
error: aborting due to 2 previous errors | ||
|