Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0300d98
feat(time): add `Duration` extractors for units larger than second
sorairolake Nov 8, 2026
69d8f47
chore: set issue numbers of tracking issues
sorairolake Nov 10, 2026
076d2b6
docs(time): clarify exact seconds for units larger than the second
sorairolake Nov 10, 2026
a494797
Add `r? @ghost` suffix to Josh push PRs
Kobzol Nov 18, 2026
3c5e1ca
Merge pull request #3098 from Kobzol/josh-push-msg
Kobzol Nov 18, 2026
6ba40f2
Add hashbrown to the list of Josh subtrees
Kobzol Nov 18, 2026
ed370b6
Merge pull request #3099 from Kobzol/hashbrown-subtree
Kobzol Nov 18, 2026
54b1675
Add regression test for issue 53156
HaineSensei Nov 21, 2026
ad37db9
Prepare for merging from rust-lang/rust
invalid-email-address Nov 23, 2026
cbd1581
Merge ref 'fde8dfd63847' from rust-lang/rust
invalid-email-address Nov 23, 2026
c84ad29
Merge pull request #3101 from rust-lang/rustc-pull
tshepang Nov 23, 2026
8d7a4de
fix some GitHub and doc link
reddevilmidzy Nov 23, 2026
7a902d8
fix link connection
reddevilmidzy Nov 23, 2026
470fa8c
Merge pull request rust-lang/rustc-dev-guide#3102 from reddevilmidzy/…
reddevilmidzy Nov 23, 2026
9048760
Prepare for merging from rust-lang/rust
invalid-email-address Nov 23, 2026
1460b5c
Merge ref '5debe6a12444' from rust-lang/rust
invalid-email-address Nov 23, 2026
f7f2bb9
Merge pull request #3103 from rust-lang/rustc-pull
tshepang Nov 23, 2026
31a18a1
update-hir-lowering-doc
yassa-tamer Nov 11, 2026
5c28cca
Merge pull request rust-lang/rustc-dev-guide#3092 from yassa-tamer/up…
reddevilmidzy Nov 24, 2026
70e5f94
add test checking that -Ctarget-feature implies cfg(target_feature)
RalfJung Nov 24, 2026
0096949
Fix typo in ConstItemInteriorMutationsDiag struct
AymeneBahmed Nov 24, 2026
7ee3dfe
Add explanatory comment and rename alias of stdarch intrinsic-test
xonx4l Nov 24, 2026
33e9f69
Make `issue-96797.rs` link again
traviscross Nov 25, 2026
b455f3a
Return `Err` from `send_process_group_signal` if leader has been awaited
jmillikin Nov 25, 2026
397fe3c
prevent comment noise
tshepang Nov 25, 2026
32e9969
reflow src/hir.md
tshepang Nov 25, 2026
067f22a
improve hir.md
tshepang Nov 25, 2026
c370818
reflow src/parallel-rustc.md
tshepang Nov 25, 2026
d93b8e6
improve parallel-rustc.md
tshepang Nov 25, 2026
765c7c8
reflow src/tests/compiletest.md
tshepang Nov 25, 2026
58b1549
add date-check marker to recent section
tshepang Nov 25, 2026
058c874
reflow src/tests/x86_64-gnu-parallel-frontend.md
tshepang Nov 25, 2026
3f387ca
Merge pull request #3104 from rust-lang/tshepang/misc
tshepang Nov 25, 2026
57050a7
We decoupled the autodiff frontend a long time ago from the backend
ZuseZ4 Nov 25, 2026
08582df
Rollup merge of #166438 - RalfJung:cfg-target-feature, r=antoyo
jhpratt Nov 25, 2026
4e77d94
Rollup merge of #166536 - traviscross:TC/relink-issue-96797-test, r=A…
jhpratt Nov 25, 2026
8e52515
Rollup merge of #165624 - sorairolake:feature/duration-extractors, r=…
jhpratt Nov 25, 2026
27e760d
Rollup merge of #166231 - HaineSensei:issue-53156-test, r=jackh726
jhpratt Nov 25, 2026
3c9f5b0
Rollup merge of #166401 - xonx4l:add-alias-comment, r=Kobzol
jhpratt Nov 25, 2026
bfb5877
Rollup merge of #166520 - AymeneBahmed:fix-interior-mutable-error-typ…
jhpratt Nov 25, 2026
a95eafe
Rollup merge of #166540 - jmillikin:process-group-signal-err, r=josht…
jhpratt Nov 25, 2026
dd6efb7
Rollup merge of #166544 - tshepang:rdg-sync, r=tshepang
jhpratt Nov 25, 2026
34869ef
Rollup merge of #166545 - ZuseZ4:run-autodiff-ui-tests-by-default, r=…
jhpratt Nov 25, 2026
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 compiler/rustc_lint/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ pub(crate) struct ConstItemInteriorMutationsDiag<'tcx> {
pub method_name: Ident,
pub const_name: Ident,
pub const_ty: Ty<'tcx>,
#[label("`{$const_name}` is a interior mutable `const` item of type `{$const_ty}`")]
#[label("`{$const_name}` is an interior mutable `const` item of type `{$const_ty}`")]
pub receiver_span: Span,
#[subdiagnostic]
pub sugg_static: Option<ConstItemInteriorMutationsSuggestionStatic>,
Expand Down
93 changes: 93 additions & 0 deletions library/core/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,99 @@ impl Duration {
self.secs as u128 * NANOS_PER_SEC as u128 + self.nanos.as_inner() as u128
}

/// Returns the number of _whole_ weeks contained by this `Duration`.
///
/// The returned value does not include any fractional component
/// corresponding to units less than a week of the duration.
///
/// For this method, one week is defined as 7 days, or 604,800 seconds.
///
/// # Examples
///
/// ```
/// #![feature(duration_extractors)]
/// #![feature(duration_constructors)]
/// use std::time::Duration;
///
/// let duration = Duration::from_days(40);
/// assert_eq!(duration.as_weeks(), 5);
/// ```
#[unstable(feature = "duration_extractors", issue = "165786")]
#[must_use]
#[inline]
pub const fn as_weeks(&self) -> u64 {
self.as_secs() / (SECS_PER_MINUTE * MINS_PER_HOUR * HOURS_PER_DAY * DAYS_PER_WEEK)
}

/// Returns the number of _whole_ days contained by this `Duration`.
///
/// The returned value does not include any fractional component
/// corresponding to units less than a day of the duration.
///
/// For this method, one day is defined as 24 hours, or 86,400 seconds.
///
/// # Examples
///
/// ```
/// #![feature(duration_extractors)]
/// use std::time::Duration;
///
/// let duration = Duration::from_hours(130);
/// assert_eq!(duration.as_days(), 5);
/// ```
#[unstable(feature = "duration_extractors", issue = "165786")]
#[must_use]
#[inline]
pub const fn as_days(&self) -> u64 {
self.as_secs() / (SECS_PER_MINUTE * MINS_PER_HOUR * HOURS_PER_DAY)
}

/// Returns the number of _whole_ hours contained by this `Duration`.
///
/// The returned value does not include any fractional component
/// corresponding to units less than an hour of the duration.
///
/// For this method, one hour is defined as 60 minutes, or 3,600 seconds.
///
/// # Examples
///
/// ```
/// #![feature(duration_extractors_lite)]
/// use std::time::Duration;
///
/// let duration = Duration::from_mins(320);
/// assert_eq!(duration.as_hours(), 5);
/// ```
#[unstable(feature = "duration_extractors_lite", issue = "165784")]
#[must_use]
#[inline]
pub const fn as_hours(&self) -> u64 {
self.as_secs() / (SECS_PER_MINUTE * MINS_PER_HOUR)
}

/// Returns the number of _whole_ minutes contained by this `Duration`.
///
/// The returned value does not include any fractional component
/// corresponding to units less than a minute of the duration.
///
/// For this method, one minute is defined as 60 seconds.
///
/// # Examples
///
/// ```
/// #![feature(duration_extractors_lite)]
/// use std::time::Duration;
///
/// let duration = Duration::from_secs(320);
/// assert_eq!(duration.as_mins(), 5);
/// ```
#[unstable(feature = "duration_extractors_lite", issue = "165784")]
#[must_use]
#[inline]
pub const fn as_mins(&self) -> u64 {
self.as_secs() / SECS_PER_MINUTE
}

/// Computes the absolute difference between `self` and `other`.
///
/// # Examples
Expand Down
2 changes: 2 additions & 0 deletions library/coretests/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
#![feature(duration_constants)]
#![feature(duration_constructors)]
#![feature(duration_display_seconds)]
#![feature(duration_extractors)]
#![feature(duration_extractors_lite)]
#![feature(exact_div)]
#![feature(exact_size_is_empty)]
#![feature(extend_one)]
Expand Down
24 changes: 24 additions & 0 deletions library/coretests/tests/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,30 @@ fn duration_const() {
const FROM_NANOS_U128: Duration = Duration::from_nanos_u128(NANOS);
assert_eq!(FROM_NANOS_U128, Duration::SECOND);

const WEEKS: u64 = Duration::WEEK.as_weeks();
assert_eq!(WEEKS, 1);

const FROM_WEEKS: Duration = Duration::from_weeks(1);
assert_eq!(FROM_WEEKS, 604_800 * Duration::SECOND);

const DAYS: u64 = Duration::DAY.as_days();
assert_eq!(DAYS, 1);

const FROM_DAYS: Duration = Duration::from_days(1);
assert_eq!(FROM_DAYS, 86400 * Duration::SECOND);

const HOURS: u64 = Duration::HOUR.as_hours();
assert_eq!(HOURS, 1);

const FROM_HOURS: Duration = Duration::from_hours(1);
assert_eq!(FROM_HOURS, 3600 * Duration::SECOND);

const MINUTES: u64 = Duration::MINUTE.as_mins();
assert_eq!(MINUTES, 1);

const FROM_MINUTES: Duration = Duration::from_mins(1);
assert_eq!(FROM_MINUTES, 60 * Duration::SECOND);

const MAX: Duration = Duration::new(u64::MAX, 999_999_999);

const CHECKED_ADD: Option<Duration> = MAX.checked_add(Duration::SECOND);
Expand Down
5 changes: 4 additions & 1 deletion library/std/src/sys/process/unix/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,10 @@ impl Process {
pub(crate) fn send_process_group_signal(&self, signal: i32) -> io::Result<()> {
// See note in `send_signal` regarding recycled PIDs.
if self.status.is_some() {
return Ok(());
return Err(io::Error::new(
io::ErrorKind::Other,
"process group leader has already been awaited",
));
}
#[cfg(target_os = "linux")]
if let Some(pid_fd) = self.pidfd.as_ref() {
Expand Down
13 changes: 9 additions & 4 deletions src/bootstrap/src/core/build_steps/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,12 +1071,17 @@ pub struct IntrinsicTest {
host: TargetSelection,
}

impl IntrinsicTest {
const ALIAS: &'static str = "stdarch-intrinsic-test";
}

impl CommandLineStep for IntrinsicTest {
type Output = ();
const IS_HOST: bool = true;

fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
run.alias("intrinsic-test")
// Not using a path since we don't want this to be part of `./x test library`.
run.alias(Self::ALIAS)
}

fn is_default_step(_builder: &Builder<'_>) -> bool {
Expand All @@ -1087,12 +1092,12 @@ impl CommandLineStep for IntrinsicTest {
let target = run.target;
let builder = run.builder;

let is_explicit =
builder.config.paths.iter().any(|p| p.to_string_lossy() == "intrinsic-test");
let is_explicit = builder.config.paths.iter().any(|p| p.to_string_lossy() == Self::ALIAS);

if target.contains("x86_64-unknown-linux") && builder.config.sde.is_none() && is_explicit {
panic!(
"SDE is required to run intrinsic-test. Please configure `build.sde` in config.toml."
"SDE is required to run {}. Please configure `build.sde` in config.toml.",
Self::ALIAS
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ expression: test
- Suite(tests/run-make-cargo)
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,4 @@ expression: test --skip=coverage
- Suite(tests/run-make-cargo)
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ expression: test --skip=coverage-map
- Suite(tests/run-make-cargo)
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ expression: test --skip=coverage-run
- Suite(tests/run-make-cargo)
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ expression: test --skip=tests
- Set({compiler-builtins})
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,4 @@ expression: test --skip=tests/coverage
- Suite(tests/run-make-cargo)
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ expression: test --skip=tests --skip=library --skip=tidyselftest
- Set({compiler-builtins})
[Test] test::IntrinsicTest
targets: [x86_64-unknown-linux-gnu]
- Set({intrinsic-test})
- Set({stdarch-intrinsic-test})
2 changes: 2 additions & 0 deletions src/doc/rustc-dev-guide/josh-sync.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
org = "rust-lang"
repo = "rustc-dev-guide"
path = "src/doc/rustc-dev-guide"
push-pr.suffix = "r? @ghost"
pull-pr.suffix = "r? @ghost"
2 changes: 1 addition & 1 deletion src/doc/rustc-dev-guide/rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c55b900aa3e4d23bb5628a00718304b31077d619
5debe6a1244452beced762385f88a51857a915fc
4 changes: 2 additions & 2 deletions src/doc/rustc-dev-guide/src/appendix/code-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Item | Kind | Short description | Chapter |
`ast::Crate` | struct | A syntax-level representation of a parsed crate | [The parser] | [compiler/rustc_ast/src/ast.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_ast/ast/struct.Crate.html)
`hir::Crate` | struct | A more abstract, compiler-friendly form of a crate's AST | [The Hir] | [compiler/rustc_middle/src/hir/mod.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/struct.Crate.html)
`DefId` | struct | One of four types of HIR node identifiers | [Identifiers in the HIR] | [compiler/rustc_hir/src/def_id.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/def_id/struct.DefId.html)
`Diag` | struct | A struct for a compiler diagnostic, such as an error or lint | [Emitting Diagnostics] | [compiler/rustc_errors/src/diagnostic.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diag.html)
`Diag` | struct | A struct for a compiler diagnostic, such as an error or lint | [Emitting Diagnostics] | [compiler/rustc_errors/src/diagnostic.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/diagnostic/struct.Diag.html)
`DocContext` | struct | A state container used by rustdoc when crawling through a crate to gather its documentation | [Rustdoc] | [src/librustdoc/core.rs](https://github.com/rust-lang/rust/blob/HEAD/src/librustdoc/core.rs)
`HirId` | struct | One of four types of HIR node identifiers | [Identifiers in the HIR] | [compiler/rustc_hir_id/src/lib.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/struct.HirId.html)
`Lexer` | struct | This is the lexer used during parsing. It consumes characters from the raw source code being compiled and produces a series of tokens for use by the rest of the parser | [The parser] | [compiler/rustc_parse/src/lexer/mod.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_parse/lexer/struct.Lexer.html)
Expand All @@ -27,7 +27,7 @@ Item | Kind | Short description | Chapter |
`TraitDef` | struct | This struct contains a trait's definition with type information | [The `ty` modules] | [compiler/rustc_middle/src/ty/trait_def.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/trait_def/struct.TraitDef.html)
`TraitRef` | struct | The combination of a trait and its input types (e.g. `P0: Trait<P1...Pn>`) | [Trait Solving: Goals and Clauses] | [compiler/rustc_middle/src/ty/sty.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.TraitRef.html)
`Ty<'tcx>` | struct | This is the internal representation of a type used for type checking | [Type checking] | [compiler/rustc_middle/src/ty/mod.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Ty.html)
`TyCtxt<'tcx>` | struct | The "typing context". This is the central data structure in the compiler. It is the context that you use to perform all manner of queries | [The `ty` modules] | [compiler/rustc_middle/src/ty/context.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html)
`TyCtxt<'tcx>` | struct | The "typing context". This is the central data structure in the compiler. It is the context that you use to perform all manner of queries | [The `ty` modules] | [compiler/rustc_middle/src/ty/context.rs](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html)

[The HIR]: ../hir.md
[Identifiers in the HIR]: ../hir.md#hir-id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ to the author and reviewers.
[requires-location]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/instance/enum.InstanceKind.html#method.requires_caller_location
[alloc-location]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/struct.InterpCx.html#method.alloc_caller_location
[fcx-location]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_ssa/mir/struct.FunctionCx.html#structfield.caller_location
[const-location-query]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.const_caller_location
[const-location-query]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.const_caller_location
[location-memory-kind]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/enum.MemoryKind.html#variant.CallerLocation
[const-frame]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/struct.Frame.html
[const-stack]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/struct.InterpCx.html#structfield.stack
Expand Down
6 changes: 3 additions & 3 deletions src/doc/rustc-dev-guide/src/const-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ Looking at the above example, this corresponds to `[u8; ANON]` being a well form
[`ConstKind::Value`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/consts/type.ConstKind.html#variant.Value
[const_arg_has_type]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.ClauseKind.html#variant.ConstArgHasType
[`ParamEnv`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.ParamEnv.html
[`generics_of`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#impl-TyCtxt%3C'tcx%3E/method.generics_of
[`type_of`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.type_of
[`generics_of`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.generics_of
[`type_of`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.type_of
[`DefKind::AnonConst`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/def/enum.DefKind.html#variant.AnonConst
[`hir::Node::AnonConst`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/hir/enum.Node.html#variant.AnonConst#
[cec_fcw]: https://github.com/rust-lang/rust/issues/76200
[`const_eval_resolve_for_typeck`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.const_eval_resolve_for_typeck
[`const_eval_resolve_for_typeck`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.const_eval_resolve_for_typeck
10 changes: 5 additions & 5 deletions src/doc/rustc-dev-guide/src/diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ before emitting it by calling the [`emit`] method.

[spanerr]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.DiagCtxt.html#method.span_err
[strspanerr]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.DiagCtxt.html#method.struct_span_err
[`emit`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diag.html#method.emit
[cancel]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diag.html#method.cancel
[`emit`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/diagnostic/struct.Diag.html#method.emit
[cancel]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/diagnostic/struct.Diag.html#method.cancel

```rust,ignore
// Get a `Diag`. This does _not_ emit an error yet.
Expand Down Expand Up @@ -412,7 +412,7 @@ some heuristics for verbosity are met)
suggestion is obvious from the text, but we still want to let tools to apply them)
- not shown (used for _very_ obvious cases, but we still want to allow tools to apply them)

[span_suggestion]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diag.html#method.span_suggestion
[span_suggestion]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/diagnostic/struct.Diag.html#method.span_suggestion

For example, to make our `qux` suggestion machine-applicable, we would do:

Expand Down Expand Up @@ -860,7 +860,7 @@ The JSON emitter defines [its own `Diagnostic`
struct](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/json/struct.Diagnostic.html)
(and sub-structs) for the JSON serialization.
Don't confuse this with
[`errors::Diag`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diag.html)!
[`errors::Diag`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/diagnostic/struct.Diag.html)!

## Diagnostic attributes

Expand All @@ -879,4 +879,4 @@ If possible, consider improving or implementing such an attribute rather than ad
reporting code.

[`rustc_on_unimplemented`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_attr_ir/attribute.rustc_on_unimplemented.html
[diag]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.Diag.html
[diag]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/diagnostic/struct.Diag.html
6 changes: 3 additions & 3 deletions src/doc/rustc-dev-guide/src/effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ therefore they will result in `HostEffect(T: Tr, const)` being added to `clauses
and not `const_conditions`.

[`HostEffectPredicate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_type_ir/predicate/struct.HostEffectPredicate.html
[`clauses_of`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.clauses_of
[`const_conditions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.const_conditions
[`clauses_of`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.clauses_of
[`const_conditions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.const_conditions

## The `const_conditions` query

Expand Down Expand Up @@ -137,7 +137,7 @@ These bounds are checked in [`compare_impl_item::check_type_bounds`] for HIR typ
[`evaluate_host_effect_from_item_bounds`] in the old solver and
[`consider_additional_alias_assumptions`] in the new solver.

[`explicit_item_bounds`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.explicit_item_bounds
[`explicit_item_bounds`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.explicit_item_bounds
[`compare_impl_item::check_type_bounds`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_analysis/check/compare_impl_item/fn.check_type_bounds.html
[`evaluate_host_effect_from_item_bounds`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/traits/effects/fn.evaluate_host_effect_from_item_bounds.html
[`consider_additional_alias_assumptions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_next_trait_solver/solve/assembly/trait.GoalKind.html#tymethod.consider_additional_alias_assumptions
Expand Down
1 change: 1 addition & 0 deletions src/doc/rustc-dev-guide/src/external-repos.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ As a general rule:
The following external projects are managed using a Josh `subtree`:

* [clippy](https://github.com/rust-lang/rust-clippy)
* [hashbrown](https://github.com/rust-lang/hashbrown)
* [miri](https://github.com/rust-lang/miri)
* [portable-simd](https://github.com/rust-lang/portable-simd)
* [rustfmt](https://github.com/rust-lang/rustfmt)
Expand Down
2 changes: 1 addition & 1 deletion src/doc/rustc-dev-guide/src/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -687,4 +687,4 @@ easily figure out *why* a commit is ignored.

[Git submodules]: https://git-scm.com/book/en/v2/Git-Tools-Submodules
[`rust-lang/llvm-project`]: https://github.com/rust-lang/llvm-project
[llvm-update]: https://github.com/rust-lang/rust/pull/99464/files
[llvm-update]: https://github.com/rust-lang/rust/pull/99464/changes
Loading
Loading