Skip to content

Commit 2e495d2

Browse files
committed
Auto merge of #84008 - Dylan-DPC:rollup-invxvg8, r=Dylan-DPC
Rollup of 6 pull requests Successful merges: - #80733 (Improve links in inline code in `core::pin`.) - #81764 (Stabilize `rustdoc::bare_urls` lint) - #81938 (Stabilize `peekable_peek_mut`) - #83980 (Fix outdated crate names in compiler docs) - #83992 (Merge idents when generating source content) - #84001 (Update Clippy) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 1255053 + f77be84 commit 2e495d2

File tree

391 files changed

+10738
-6199
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

391 files changed

+10738
-6199
lines changed

compiler/rustc_ast/src/expand/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
//! Definitions shared by macros / syntax extensions and e.g. librustc_middle.
1+
//! Definitions shared by macros / syntax extensions and e.g. `rustc_middle`.
22
33
pub mod allocator;

compiler/rustc_ast/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
5959

6060
/// Requirements for a `StableHashingContext` to be used in this crate.
6161
/// This is a hack to allow using the `HashStable_Generic` derive macro
62-
/// instead of implementing everything in librustc_middle.
62+
/// instead of implementing everything in `rustc_middle`.
6363
pub trait HashStableContext: rustc_span::HashStableContext {
6464
fn hash_attr(&mut self, _: &ast::Attribute, hasher: &mut StableHasher);
6565
}

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct LoweringContext<'a, 'hir: 'a> {
9393

9494
/// HACK(Centril): there is a cyclic dependency between the parser and lowering
9595
/// if we don't have this function pointer. To avoid that dependency so that
96-
/// librustc_middle is independent of the parser, we use dynamic dispatch here.
96+
/// `rustc_middle` is independent of the parser, we use dynamic dispatch here.
9797
nt_to_tokenstream: NtToTokenstream,
9898

9999
/// Used to allocate HIR nodes.

compiler/rustc_codegen_cranelift/src/vtable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Codegen vtables and vtable accesses.
22
//!
3-
//! See librustc_codegen_llvm/meth.rs for reference
3+
//! See `rustc_codegen_ssa/src/meth.rs` for reference.
44
// FIXME dedup this logic between miri, cg_llvm and cg_clif
55

66
use crate::prelude::*;

compiler/rustc_data_structures/src/svh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub struct Svh {
1919
impl Svh {
2020
/// Creates a new `Svh` given the hash. If you actually want to
2121
/// compute the SVH from some HIR, you want the `calculate_svh`
22-
/// function found in `librustc_incremental`.
22+
/// function found in `rustc_incremental`.
2323
pub fn new(hash: u64) -> Svh {
2424
Svh { hash }
2525
}

compiler/rustc_feature/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! # Feature gates
22
//!
33
//! This crate declares the set of past and present unstable features in the compiler.
4-
//! Feature gate checking itself is done in `librustc_ast_passes/feature_gate.rs`
4+
//! Feature gate checking itself is done in `rustc_ast_passes/src/feature_gate.rs`
55
//! at the moment.
66
//!
77
//! Features are enabled in programs via the crate-level attributes of

compiler/rustc_hir/src/stable_hash_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rustc_span::def_id::{DefPathHash, LocalDefId};
99

1010
/// Requirements for a `StableHashingContext` to be used in this crate.
1111
/// This is a hack to allow using the `HashStable_Generic` derive macro
12-
/// instead of implementing everything in librustc_middle.
12+
/// instead of implementing everything in `rustc_middle`.
1313
pub trait HashStableContext:
1414
rustc_ast::HashStableContext + rustc_target::HashStableContext
1515
{

compiler/rustc_hir/src/weak_lang_items.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pub static WEAK_ITEMS_REFS: SyncLazy<StableMap<Symbol, LangItem>> = SyncLazy::ne
1818
map
1919
});
2020

21-
/// The `check_name` argument avoids the need for `librustc_hir` to depend on
22-
/// `librustc_session`.
21+
/// The `check_name` argument avoids the need for `rustc_hir` to depend on
22+
/// `rustc_session`.
2323
pub fn link_name<'a, F>(check_name: F, attrs: &'a [ast::Attribute]) -> Option<Symbol>
2424
where
2525
F: Fn(&'a ast::Attribute, Symbol) -> bool

compiler/rustc_infer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! - **Type inference.** The type inference code can be found in the `infer` module;
44
//! this code handles low-level equality and subtyping operations. The
5-
//! type check pass in the compiler is found in the `librustc_typeck` crate.
5+
//! type check pass in the compiler is found in the `rustc_typeck` crate.
66
//!
77
//! For more information about how rustc works, see the [rustc dev guide].
88
//!

compiler/rustc_lexer/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//! Low-level Rust lexer.
22
//!
3-
//! The idea with `librustc_lexer` is to make a reusable library,
3+
//! The idea with `rustc_lexer` is to make a reusable library,
44
//! by separating out pure lexing and rustc-specific concerns, like spans,
55
//! error reporting, and interning. So, rustc_lexer operates directly on `&str`,
66
//! produces simple tokens which are a pair of type-tag and a bit of original text,
77
//! and does not report errors, instead storing them as flags on the token.
88
//!
99
//! Tokens produced by this lexer are not yet ready for parsing the Rust syntax.
10-
//! For that see [`librustc_parse::lexer`], which converts this basic token stream
10+
//! For that see [`rustc_parse::lexer`], which converts this basic token stream
1111
//! into wide tokens used by actual parser.
1212
//!
1313
//! The purpose of this crate is to convert raw sources into a labeled sequence
@@ -17,7 +17,7 @@
1717
//! The main entity of this crate is the [`TokenKind`] enum which represents common
1818
//! lexeme types.
1919
//!
20-
//! [`librustc_parse::lexer`]: ../rustc_parse/lexer/index.html
20+
//! [`rustc_parse::lexer`]: ../rustc_parse/lexer/index.html
2121
// We want to be able to build this crate with a stable compiler, so no
2222
// `#![feature]` attributes should be added.
2323

0 commit comments

Comments
 (0)