You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/diagnostics.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -602,7 +602,7 @@ as the linter walks the AST. You can then choose to emit lints in a
602
602
very similar way to compile errors.
603
603
604
604
You also declare the metadata of a particular lint via the `declare_lint!`
605
-
macro. This includes the name, the default level, a short description, and some
605
+
macro. [This macro](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/macro.declare_lint.html) includes the name, the default level, a short description, and some
606
606
more details.
607
607
608
608
Note that the lint and the lint pass must be registered with the compiler.
Copy file name to clipboardExpand all lines: src/early_late_parameters.md
+32-32
Original file line number
Diff line number
Diff line change
@@ -126,9 +126,9 @@ In this example we call `foo`'s function item type twice, each time with a borro
126
126
If the lifetime parameter on `foo` was late bound this would be able to compile as each caller could provide a different lifetime argument for its borrow. See the following example which demonstrates this using the `bar` function defined above:
127
127
128
128
```rust
129
-
#fnfoo<'a: 'a>(b:&'aString) ->&'aString { b }
130
-
#fnbar<'a>(b:&'aString) ->&'aString { b }
131
-
129
+
#fnfoo<'a: 'a>(b:&'aString) ->&'aString { b }
130
+
#fnbar<'a>(b:&'aString) ->&'aString { b }
131
+
#
132
132
// Early bound parameters are instantiated here, however as `'a` is
133
133
// late bound it is not provided here.
134
134
letb=bar;
@@ -220,24 +220,24 @@ Then, for the first case, we can call each function with a single lifetime argum
For the second case we call each function with more lifetime arguments than there are lifetime parameters (be it early or late bound) and note that method calls result in a FCW as opposed to the free/associated functions which result in a hard error:
Issues that have been resolved but do not have a regression test are marked with the `E-needs-test` label. Writing unit tests is a low-risk, lower-priority task that offers new contributors a great opportunity to familiarize themselves with the testing infrastructure and contribution workflow.
143
+
140
144
### Contributing to std (standard library)
141
145
142
146
See [std-dev-guide](https://std-dev-guide.rust-lang.org/).
0 commit comments