Skip to content

Commit 0265aac

Browse files
committed
corner case
1 parent 306686d commit 0265aac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ci/sembr/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ fn display(header: &str, paths: &[PathBuf]) {
7979
fn ignore(line: &str, in_code_block: bool) -> bool {
8080
in_code_block
8181
|| line.to_lowercase().contains("e.g.")
82+
|| line.to_lowercase().contains("n.b.")
8283
|| line.contains("i.e.")
8384
|| line.contains("et. al")
8485
|| line.contains('|')

src/query.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ fn provider<'tcx>(
104104
Providers take two arguments: the `tcx` and the query key.
105105
They return the result of the query.
106106

107-
N.B.
108-
Most of the `rustc_*` crates only provide **local
107+
N.B. Most of the `rustc_*` crates only provide **local
109108
providers**. Almost all **extern providers** wind up going through the
110109
[`rustc_metadata` crate][rustc_metadata], which loads the information from the crate metadata.
111110
But in some cases there are crates that
@@ -158,10 +157,10 @@ If more than the `queries` field of `util::Providers` is being updated then `ut
158157
pub fn provide(providers: &mut rustc_middle::util::Providers) {
159158
providers.queries.type_of = type_of;
160159
// ... add more local providers here
161-
160+
162161
providers.extern_queries.type_of = extern_type_of;
163162
// ... add more external providers here
164-
163+
165164
providers.hooks.some_hook = some_hook;
166165
// ... add more hooks here
167166
}
@@ -205,7 +204,7 @@ In practice you usually:
205204
206205
### How queries interact with external crate metadata
207206
208-
When a query is made for an external crate (i.e., a dependency), the query system needs to load the information from that crate's metadata.
207+
When a query is made for an external crate (i.e., a dependency), the query system needs to load the information from that crate's metadata.
209208
This is handled by the [`rustc_metadata` crate][rustc_metadata], which is responsible for decoding and providing the information stored in the `.rmeta` files.
210209
211210
The process works like this:

0 commit comments

Comments
 (0)