We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d2b84b commit 45bad64Copy full SHA for 45bad64
compiler/rustc_lint/src/late.rs
@@ -33,7 +33,6 @@ use std::cell::Cell;
33
/// Extract the `LintStore` from the query context.
34
/// This function exists because we've erased `LintStore` as `dyn Any` in the session.
35
pub fn unerased_lint_store(sess: &Session) -> &LintStore {
36
- assert!(sess.lint_store.is_some());
37
let store: &Lrc<_> = sess.lint_store.as_ref().unwrap();
38
let store: &dyn Any = &**store;
39
store.downcast_ref().unwrap()
0 commit comments