Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
7f79153
write substs for lang item paths
lcnr Oct 5, 2021
80fe0bb
add a `rustc::query_stability` lint
lcnr Oct 5, 2021
00e5abe
allow `potential_query_instability` everywhere
lcnr Oct 13, 2021
2fa9b11
Normalize MIR with RevealAll before optimizations.
cjgillot May 13, 2021
a7ccf22
Fix remove_unneeded_drops pass.
cjgillot Sep 26, 2021
70aeced
Ignore wasm32 in test.
cjgillot Oct 17, 2021
9a3c024
Skip documentation for tier 2 targets
Mark-Simulacrum Oct 20, 2021
5503dd9
[do not merge] try build
Mark-Simulacrum Oct 20, 2021
9296efe
Print step timings for try builds
Mark-Simulacrum Oct 21, 2021
22e1798
ignore `potential_query_instability` in rustdoc
lcnr Oct 21, 2021
a288bf6
Mark {array,slice}::{from_ref,from_mut} as const fn
WaffleLapkin Oct 22, 2021
a076f2b
Repace use of `static_nobundle` with `native_link_modifiers`
mati865 Oct 23, 2021
27d6961
Fill tracking issue for `const_slice_from_ref` and `const_array_from_…
WaffleLapkin Oct 23, 2021
542ab2d
Outdent method headings so they stand out
jsha Oct 22, 2021
5f390cf
Add tests for `const_slice_from_ref` and `const_array_from_ref`
WaffleLapkin Oct 23, 2021
433ecd1
Rollup merge of #85254 - cjgillot:reveal-mir, r=lcnr
matthiaskrgr Oct 24, 2021
a5ddd8b
Rollup merge of #89558 - lcnr:query-stable-lint, r=estebank
matthiaskrgr Oct 24, 2021
13ae7e9
Rollup merge of #90100 - Mark-Simulacrum:speed-macos-ci, r=pietroalbini
matthiaskrgr Oct 24, 2021
50e23bc
Rollup merge of #90155 - jsha:outdent-methods, r=GuillaumeGomez,camelid
matthiaskrgr Oct 24, 2021
e39edda
Rollup merge of #90162 - WaffleLapkin:const_array_slice_from_ref_mut,…
matthiaskrgr Oct 24, 2021
0ffdb63
Rollup merge of #90205 - mati865:link-modifiers-in-rustc, r=petrochenkov
matthiaskrgr Oct 24, 2021
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
Prev Previous commit
Next Next commit
ignore potential_query_instability in rustdoc
  • Loading branch information
lcnr committed Oct 21, 2021
commit 22e17989751427625f6187a0b7ec27d621ce8164
15 changes: 15 additions & 0 deletions compiler/rustc_lint/src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,21 @@ declare_lint_pass!(QueryStability => [POTENTIAL_QUERY_INSTABILITY]);

impl LateLintPass<'_> for QueryStability {
fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) {
// FIXME(rustdoc): This lint uses typecheck results, causing rustdoc to
// error if there are resolution failures.
//
// As internal lints are currently always run if there are `unstable_options`,
// they are added to the lint store of rustdoc. Internal lints are also
// not used via the `lint_mod` query. Crate lints run outside of a query
// so rustdoc currently doesn't disable them.
//
// Instead of relying on this, either change crate lints to a query disabled by
// rustdoc, only run internal lints if the user is explicitly opting in
// or figure out a different way to avoid running lints for rustdoc.
if cx.tcx.sess.opts.actually_rustdoc {
return;
}

let (def_id, span) = match expr.kind {
ExprKind::Path(ref path) if let Some(def_id) = cx.qpath_res(path, expr.hir_id).opt_def_id() => {
(def_id, expr.span)
Expand Down