Skip to content

Commit d03c7b8

Browse files
Lee-JanggunJohnTitornhamovitz
authored
Fix rustc_mir related links (rust-lang#1228)
Co-authored-by: Yuki Okushi <[email protected]> Co-authored-by: nhamovitz <[email protected]>
1 parent 0d3af84 commit d03c7b8

18 files changed

+122
-115
lines changed

src/backend/implicit-caller-location.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,13 @@ to the author and reviewers.
269269
[attrs-flags]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/middle/codegen_fn_attrs/struct.CodegenFnAttrFlags.html#associatedconstant.TRACK_CALLER
270270
[`ReifyShim`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.InstanceDef.html#variant.ReifyShim
271271
[`Location`]: https://doc.rust-lang.org/core/panic/struct.Location.html
272-
[const-find-closest]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/struct.InterpCx.html#method.find_closest_untracked_caller_location
272+
[const-find-closest]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/struct.InterpCx.html#method.find_closest_untracked_caller_location
273273
[requires-location]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/enum.InstanceDef.html#method.requires_caller_location
274-
[alloc-location]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/struct.InterpCx.html#method.alloc_caller_location
274+
[alloc-location]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/struct.InterpCx.html#method.alloc_caller_location
275275
[fcx-location]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_ssa/mir/struct.FunctionCx.html#structfield.caller_location
276276
[const-location-query]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt.html#method.const_caller_location
277-
[location-memory-kind]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/enum.MemoryKind.html#variant.CallerLocation
278-
[const-frame]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/struct.Frame.html
279-
[const-stack]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/struct.InterpCx.html#structfield.stack
277+
[location-memory-kind]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/enum.MemoryKind.html#variant.CallerLocation
278+
[const-frame]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/struct.Frame.html
279+
[const-stack]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/struct.InterpCx.html#structfield.stack
280280
[fcx-get]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_ssa/mir/struct.FunctionCx.html#method.get_caller_location
281-
[frame-instance]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/struct.Frame.html#structfield.instance
281+
[frame-instance]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/struct.Frame.html#structfield.instance

src/backend/monomorph.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ for them. Collector will also add things like statics to that list.
4949

5050
See [the collector rustdocs][collect] for more info.
5151

52-
[collect]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/monomorphize/collector/index.html
52+
[collect]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_monomorphize/collector/index.html
5353

5454
The monomorphization collector is run just before MIR lowering and codegen.
5555
[`rustc_codegen_ssa::base::codegen_crate`][codegen1] calls the
@@ -76,9 +76,9 @@ or more modules in Crate B.
7676

7777
For more details about the partitioner read the module level [documentation].
7878

79-
[mono]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/monomorphize/partitioning/fn.collect_and_partition_mono_items.html
79+
[mono]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_monomorphize/partitioning/fn.collect_and_partition_mono_items.html
8080
[codegen1]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_ssa/base/fn.codegen_crate.html
81-
[documentation]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/monomorphize/partitioning/index.html
81+
[documentation]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_monomorphize/partitioning/index.html
8282

8383
## Polymorphization
8484

@@ -90,7 +90,7 @@ In addition to MIR optimizations, rustc attempts to determine when fewer
9090
copies of functions are necessary and avoid making those copies - known
9191
as "polymorphization". When a function-like item is found during
9292
monomorphization collection, the
93-
[`rustc_mir::monomorphize::polymorphize::unused_generic_params`][polymorph]
93+
[`rustc_mir_monomorphize::polymorphize::unused_generic_params`][polymorph]
9494
query is invoked, which traverses the MIR of the item to determine on which
9595
generic parameters the item might not need duplicated.
9696

@@ -149,7 +149,7 @@ More details on polymorphization are available in the
149149
implementation.
150150

151151
[miropt]: ../mir/optimizations.md
152-
[polymorph]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/monomorphize/polymorphize/fn.unused_generic_params.html
152+
[polymorph]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_monomorphize/polymorphize/fn.unused_generic_params.html
153153
[inst]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/instance/struct.Instance.html
154154
[inst_polymorph]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/instance/struct.Instance.html#method.polymorphize
155155
[thesis]: https://davidtw.co/media/masters_dissertation.pdf

src/borrow_check.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ HIR. Doing borrow checking on MIR has several advantages:
2727
### Major phases of the borrow checker
2828

2929
The borrow checker source is found in
30-
[the `rustc_mir::borrow_check` module][b_c]. The main entry point is
30+
[the `rustc_borrow_ck` crate][b_c]. The main entry point is
3131
the [`mir_borrowck`] query.
3232

33-
[b_c]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/index.html
34-
[`mir_borrowck`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/fn.mir_borrowck.html
33+
[b_c]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/index.html
34+
[`mir_borrowck`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/fn.mir_borrowck.html
3535

3636
- We first create a **local copy** of the MIR. In the coming steps,
3737
we will modify this copy in place to modify the types and things to
@@ -56,4 +56,4 @@ the [`mir_borrowck`] query.
5656
require an error to be reported. Doing this check requires the results of all
5757
the previous analyses.
5858

59-
[`replace_regions_in_mir`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/nll/fn.replace_regions_in_mir.html
59+
[`replace_regions_in_mir`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/nll/fn.replace_regions_in_mir.html

src/borrow_check/moves_and_initialization/move_paths.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ paths roughly correspond to the concept of a [`Place`] from MIR, but
2929
they are indexed in ways that enable us to do move analysis more
3030
efficiently.
3131

32-
[`MovePath`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MovePath.html
32+
[`MovePath`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MovePath.html
3333
[`Place`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Place.html
3434

3535
## Move path indices
@@ -45,9 +45,9 @@ access the [`MovePath::place`] field like so:
4545
move_data.move_paths[mpi].place
4646
```
4747

48-
[move_paths]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MoveData.html#structfield.move_paths
49-
[`MovePath::place`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MovePath.html#structfield.place
50-
[`MovePathIndex`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MovePathIndex.html
48+
[move_paths]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MoveData.html#structfield.move_paths
49+
[`MovePath::place`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MovePath.html#structfield.place
50+
[`MovePathIndex`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MovePathIndex.html
5151

5252
## Building move paths
5353

@@ -60,8 +60,8 @@ corresponding [`MovePathIndex`]. It also records when/where that
6060
particular move path is moved/initialized, but we'll get to that in a
6161
later section.
6262

63-
[`Gatherer`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/builder/struct.Gatherer.html
64-
[`MoveData::gather_moves`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MoveData.html#method.gather_moves
63+
[`Gatherer`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/builder/struct.Gatherer.html
64+
[`MoveData::gather_moves`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MoveData.html#method.gather_moves
6565

6666
### Illegal move paths
6767

@@ -82,17 +82,17 @@ those just discussed, the function returns an `Err`. This in turn
8282
means we don't have to bother tracking whether those places are
8383
initialized (which lowers overhead).
8484

85-
[`move_path_for`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/builder/struct.Gatherer.html#method.move_path_for
85+
[`move_path_for`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/builder/struct.Gatherer.html#method.move_path_for
8686

8787
## Looking up a move-path
8888

8989
If you have a [`Place`] and you would like to convert it to a [`MovePathIndex`], you
9090
can do that using the [`MovePathLookup`] structure found in the [`rev_lookup`] field
9191
of [`MoveData`]. There are two different methods:
9292

93-
[`MoveData`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MoveData.html
94-
[`MovePathLookup`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MovePathLookup.html
95-
[`rev_lookup`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MoveData.html#structfield.rev_lookup
93+
[`MoveData`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MoveData.html
94+
[`MovePathLookup`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MovePathLookup.html
95+
[`rev_lookup`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MoveData.html#structfield.rev_lookup
9696

9797
- [`find_local`], which takes a [`mir::Local`] representing a local
9898
variable. This is the easier method, because we **always** create a
@@ -105,10 +105,10 @@ of [`MoveData`]. There are two different methods:
105105
that exists (e.g., for `foo[1]`, it might return just the path for
106106
`foo`).
107107

108-
[`find`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MovePathLookup.html#method.find
109-
[`find_local`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MovePathLookup.html#method.find_local
108+
[`find`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MovePathLookup.html#method.find
109+
[`find_local`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MovePathLookup.html#method.find_local
110110
[`mir::Local`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Local.html
111-
[`LookupResult`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/enum.LookupResult.html
111+
[`LookupResult`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/enum.LookupResult.html
112112

113113
## Cross-references
114114

@@ -126,4 +126,4 @@ whether a move-path (e.g., `a.b`) or any child of that move-path
126126
(e.g.,`a.b.c`) matches a given predicate.
127127

128128
[`Place`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/struct.Place.html
129-
[`find_in_move_path_or_its_descendants`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/dataflow/move_paths/struct.MoveData.html#method.find_in_move_path_or_its_descendants
129+
[`find_in_move_path_or_its_descendants`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_dataflow/move_paths/struct.MoveData.html#method.find_in_move_path_or_its_descendants

src/borrow_check/region_inference/constraint_propagation.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on one at a time (each of them is fairly independent from the others):
1212
- outlives constraints (`R1: R2`), which arise from subtyping;
1313
- [member constraints][m_c] (`member R_m of [R_c...]`), which arise from impl Trait.
1414

15-
[`propagate_constraints`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#method.propagate_constraints
15+
[`propagate_constraints`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/region_infer/struct.RegionInferenceContext.html#method.propagate_constraints
1616
[m_c]: ./member_constraints.md
1717

1818
In this chapter, we'll explain the "heart" of constraint propagation,
@@ -70,8 +70,8 @@ though; instead, we store a (sparse) bitset per region variable (of
7070
type [`LivenessValues`]). This way we only need a single bit for each
7171
liveness constraint.
7272

73-
[`liveness_constraints`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#structfield.liveness_constraints
74-
[`LivenessValues`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/values/struct.LivenessValues.html
73+
[`liveness_constraints`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/region_infer/struct.RegionInferenceContext.html#structfield.liveness_constraints
74+
[`LivenessValues`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/region_infer/values/struct.LivenessValues.html
7575

7676
One thing that is worth mentioning: All lifetime parameters are always
7777
considered to be live over the entire function body. This is because
@@ -114,9 +114,9 @@ induces an edge `'a -> 'b`. This conversion happens in the
114114
[`RegionInferenceContext::new`] function that creates the inference
115115
context.
116116

117-
[`OutlivesConstraintSet`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/constraints/struct.OutlivesConstraintSet.html
118-
[graph-fn]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/constraints/struct.OutlivesConstraintSet.html#method.graph
119-
[`RegionInferenceContext::new`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#method.new
117+
[`OutlivesConstraintSet`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/constraints/struct.OutlivesConstraintSet.html
118+
[graph-fn]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/constraints/struct.OutlivesConstraintSet.html#method.graph
119+
[`RegionInferenceContext::new`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/region_infer/struct.RegionInferenceContext.html#method.new
120120

121121
When using a graph representation, we can detect regions that must be equal
122122
by looking for cycles. That is, if you have a constraint like
@@ -148,8 +148,8 @@ of fields are defined in terms of SCCs. For example, the
148148
of a specific region `'a` then, we first figure out the SCC that the
149149
region is a part of, and then find the value of that SCC.
150150

151-
[`constraint_sccs`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#structfield.constraint_sccs
152-
[`scc_values`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#structfield.scc_values
151+
[`constraint_sccs`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/region_infer/struct.RegionInferenceContext.html#structfield.constraint_sccs
152+
[`scc_values`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/region_infer/struct.RegionInferenceContext.html#structfield.scc_values
153153

154154
When we compute SCCs, we not only figure out which regions are a
155155
member of each SCC, we also figure out the edges between them. So for example

src/borrow_check/region_inference/lifetime_parameters.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ relationships to one another. So if you have e.g. `where 'a: 'b`, then
3131
the [`UniversalRegionRelations`] struct would track that `'a: 'b` is
3232
known to hold (which could be tested with the [`outlives`] function.
3333

34-
[`UniversalRegions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/universal_regions/struct.UniversalRegions.html
35-
[`UniversalRegionRelations`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/type_check/free_region_relations/struct.UniversalRegionRelations.html
36-
[`outlives`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/type_check/free_region_relations/struct.UniversalRegionRelations.html#method.outlives
34+
[`UniversalRegions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_borrowck/universal_regions/struct.UniversalRegions.html
35+
[`UniversalRegionRelations`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_borrowck/type_check/free_region_relations/struct.UniversalRegionRelations.html
36+
[`outlives`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_borrowck/type_check/free_region_relations/struct.UniversalRegionRelations.html#method.outlives
3737

3838
## Everything is a region variable
3939

@@ -58,7 +58,7 @@ type). These subdivisions are not important for the topics discussed
5858
here, but become important when we consider [closure constraint
5959
propagation](./closure_constraints.html), so we discuss them there.
6060

61-
[`RegionClassification`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/universal_regions/enum.RegionClassification.html#variant.Local
61+
[`RegionClassification`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_borrowck/universal_regions/enum.RegionClassification.html#variant.Local
6262

6363
## Universal lifetimes as the elements of a region's value
6464

@@ -88,7 +88,7 @@ liveness constraint (i.e., `'a` must extend until the end of
8888
itself). In the code, these liveness constraints are setup in
8989
[`init_free_and_bound_regions`].
9090

91-
[`init_free_and_bound_regions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#method.init_free_and_bound_regions
91+
[`init_free_and_bound_regions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_borrowck/region_infer/struct.RegionInferenceContext.html#method.init_free_and_bound_regions
9292

9393
## Propagating outlives constraints for universal regions
9494

@@ -124,4 +124,4 @@ not, as in our example, that is an error. This check is done in the
124124
universal regions, inspects their final value, and tests against the
125125
declared [`UniversalRegionRelations`].
126126

127-
[`check_universal_regions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/region_infer/struct.RegionInferenceContext.html#method.check_universal_regions
127+
[`check_universal_regions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_borrowck/region_infer/struct.RegionInferenceContext.html#method.check_universal_regions

src/borrow_check/type_check.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The MIR type-check
22

33
A key component of the borrow check is the
4-
[MIR type-check](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/type_check/index.html).
4+
[MIR type-check](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_borrowck/type_check/index.html).
55
This check walks the MIR and does a complete "type check" -- the same
66
kind you might find in any other language. In the process of doing
77
this type-check, we also uncover the region constraints that apply to

src/const-eval.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ Other constants get represented as [`ConstValue::Scalar`]
3535
or [`ConstValue::Slice`] if possible. This means that the `const_eval_*`
3636
functions cannot be used to create miri-pointers to the evaluated constant.
3737
If you need the value of a constant inside Miri, you need to directly work with
38-
[`eval_const_to_op`].
38+
[`const_to_op`].
3939

4040
[`GlobalId`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/struct.GlobalId.html
4141
[`ConstValue::Scalar`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.Scalar
4242
[`ConstValue::Slice`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.Slice
4343
[`ConstValue::ByRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/value/enum.ConstValue.html#variant.ByRef
4444
[`EvalToConstValueResult`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/mir/interpret/error/type.EvalToConstValueResult.html
45-
[`eval_const_to_op`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/struct.InterpCx.html#method.eval_const_to_op
45+
[`const_to_op`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_const_eval/interpret/struct.InterpCx.html#method.const_to_op

0 commit comments

Comments
 (0)