2,420 matches across 25 files for error lang:Markdown lang:Markdown lang:Markdown
snippet_mode: grep · sorted by relevance
.github/ISSUE_TEMPLATE/ice.md MARKDOWN 4 matches view file →
1---
2name: Internal Compiler Error
3about: Create a report for an internal compiler error in rustc.
4labels: C-bug, I-ICE, T-compiler
· · ·
3about: Create a report for an internal compiler error in rustc.
4labels: C-bug, I-ICE, T-compiler
5title: "[ICE]: "
· · ·
6---
7<!--
8Thank you for finding an Internal Compiler Error! 🧊 If possible, try to provide
9a minimal verifiable example. You can read "Rust Bug Minimization Patterns" for
10how to create smaller examples.
· · ·
30```
31
32### Error output
33
34```
.github/ISSUE_TEMPLATE/tracking_issue_future.md MARKDOWN 3 matches view file →
15-->
16
17This is the **tracking issue** for the `YOUR_LINT_NAME_HERE` future-compatibility warning and other related errors. The goal of this page is to describe why this change was made and how you can fix code that is affected by it. It also provides a place to ask questions or register a complaint if you feel the change should not be made. For more information on the policy around future-compatibility warnings, see our [breaking change policy guidelines][guidelines].
18
19[guidelines]: https://rustc-dev-guide.rust-lang.org/bug-fix-procedure.html
· · ·
37*Give some recommendations on how a user can avoid the lint.*
38
39### When will this warning become a hard error?
40
41*If known, describe the future plans. For example, how long you anticipate this being a warning, or if there are other factors that will influence the anticipated closure.*
· · ·
46- [ ] Raise lint level to deny
47- [ ] Change the lint to report in dependencies
48- [ ] Switch to a hard error
49
50### Implementation history
CONTRIBUTING.md MARKDOWN 1 matches view file →
40## Bug reports
41
42Did a compiler error message tell you to come here? If you want to create an ICE report,
43refer to [this section][contributing-bug-reports] and [open an issue][issue template].
44
INSTALL.md MARKDOWN 1 matches view file →
226the instructions in step 2 to get them on PATH.
227
228Using Windows native Python can be helpful if you get errors when building LLVM.
229You may also want to use Git for Windows, as it is often *much* faster. Turning
230off real-time protection in the Windows Virus & Threat protections settings can
RELEASES.md MARKDOWN 369 matches · showing 5 view file →
110-------------------
111- [Array coercions may now result in less inference constraints than before](https://github.com/rust-lang/rust/pull/140283)
112- Importing `$crate` without renaming, i.e. `use $crate::{self};`, is now no longer permitted due to stricter error checking for `self` imports.
113- [const-eval: be more consistent in the behavior of padding during typed copies.](https://github.com/rust-lang/rust/pull/148967)
114 In very rare cases, this may cause compilation errors due to bytes from parts of a pointer ending up in the padding bytes of a `const` or `static`.
· · ·
114 In very rare cases, this may cause compilation errors due to bytes from parts of a pointer ending up in the padding bytes of a `const` or `static`.
115- [A future-incompatibility warning lint `ambiguous_glob_imported_traits` is now reported when using an ambiguously glob imported trait](https://github.com/rust-lang/rust/pull/149058)
116- [Check lifetime bounds of types mentioning only type parameters](https://github.com/rust-lang/rust/pull/149389)
· · ·
117- [Report more visibility-related ambiguous import errors](https://github.com/rust-lang/rust/pull/149596)
118- [Deprecate `Eq::assert_receiver_is_total_eq` and emit future compatibility warnings on manual impls](https://github.com/rust-lang/rust/pull/149978)
119- [powerpc64: Use the ELF ABI version set in target spec instead of guessing](https://github.com/rust-lang/rust/pull/150468) (fixes the ELF ABI used by the OpenBSD target)
· · ·
161- [Add warn-by-default `unused_visibilities` lint for visibility on `const _` declarations](https://github.com/rust-lang/rust/pull/147136)
162- [Update to Unicode 17](https://github.com/rust-lang/rust/pull/148321)
163- [Avoid incorrect lifetime errors for closures](https://github.com/rust-lang/rust/pull/148329)
164
165<a id="1.94.0-Platform-Support"></a>
· · ·
232 Some finer details of how precise closure captures get affected by pattern matching have been changed. In some cases, this can cause a non-move closure that was previously capturing an entire variable by move, to now capture only part of that variable by move, and other parts by borrow. This can cause the borrow checker to complain where it previously didn't, or cause `Drop` to run at a different point in time.
233- [Standard library macros are now imported via prelude, not via injected `#[macro_use]`](https://github.com/rust-lang/rust/pull/139493)
234 This will raise an error if macros of the same name are glob imported.
235 For example if a crate defines their own `matches` macro and then glob imports that,
236 it's now ambiguous whether the custom or standard library `matches` is meant and
+ 364 more matches in this file
compiler/rustc_codegen_cranelift/docs/dwarf.md MARKDOWN 1 matches view file →
112(15:53:08) bjorn3: already using DW_AT_ranges for DW_TAG_compilation_unit
113(15:53:19) bjorn3: for individual functions, there are no gaps
114(15:57:07) bjorn3: still the same error with DW_AT_low_pc and DW_AT_high_pc
115(15:57:24) bjorn3: tromey: ^
116(15:58:08) tromey: hmmm
compiler/rustc_codegen_gcc/CONTRIBUTING.md MARKDOWN 1 matches view file →
121- [GCC Internals Documentation](https://gcc.gnu.org/onlinedocs/gccint/)
122- Project-specific documentation in the `doc/` directory:
123 - [Common errors](doc/errors.md)
124 - [Debugging](doc/debugging.md)
125 - [Debugging libgccjit](doc/debugging-libgccjit.md)
compiler/rustc_codegen_gcc/Readme.md MARKDOWN 1 matches view file →
176More specific documentation is available in the [`doc`](./doc) folder:
177
178 * [Common errors](./doc/errors.md)
179 * [Debugging GCC LTO](./doc/debugging-gcc-lto.md)
180 * [Debugging libgccjit](./doc/debugging-libgccjit.md)
compiler/rustc_codegen_gcc/doc/debugging-libgccjit.md MARKDOWN 5 matches view file →
1# Debugging libgccjit
2
3Sometimes, libgccjit will crash and output an error like this:
4
5```
· · ·
6during RTL pass: expand
7libgccjit.so: error: in expmed_mode_index, at expmed.h:249
80x7f0da2e61a35 expmed_mode_index
9 ../../../gcc/gcc/expmed.h:249
· · ·
28```
29
30To see the code which causes this error, call the following function:
31
32```c
· · ·
38
39```
40libgccjit.so: /tmp/something.c:61322:0: error: in expmed_mode_index, at expmed.h:249
41```
42
· · ·
43Or add a breakpoint to `add_error` in gdb and print the line number using:
44
45```
compiler/rustc_codegen_gcc/doc/errors.md MARKDOWN 7 matches · showing 5 view file →
1# Common errors
2
3This file lists errors that were encountered and how to fix them.
· · ·
3This file lists errors that were encountered and how to fix them.
4
5### `failed to build archive` error
· · ·
5### `failed to build archive` error
6
7When you get this error:
· · ·
7When you get this error:
8
9```
· · ·
10error: failed to build archive: failed to open object file: No such file or directory (os error 2)
11```
12
+ 2 more matches in this file
compiler/rustc_codegen_gcc/doc/sending-gcc-patch.md MARKDOWN 2 matches view file →
25```
26
27When there is no more errors, generate the git patch:
28
29```bash
· · ·
37```
38
39When you have no more errors, you can send the `.patch` file to GCC by sending an
40email to `gcc-patches@gcc.gnu.org` and to the relevant GCC mailing lists
41depending on what your patch changes. You can find the list of the mailing lists
compiler/rustc_codegen_gcc/doc/tips.md MARKDOWN 1 matches view file →
80 * Build your project by specifying the target specification file: `../y.sh cargo build --target path/to/m68k-unknown-linux-gnu.json`.
81
82If you get the following error:
83
84```
compiler/rustc_error_codes/src/error_codes/E0001.md MARKDOWN 2 matches view file →
1#### Note: this error code is no longer emitted by the compiler.
2
3This error suggests that the expression arm corresponding to the noted pattern
· · ·
3This error suggests that the expression arm corresponding to the noted pattern
4will never be reached as for all possible values of the expression being
5matched, one of the preceding patterns will match.
compiler/rustc_error_codes/src/error_codes/E0002.md MARKDOWN 3 matches view file →
1#### Note: this error code is no longer emitted by the compiler.
2
3This error indicates that an empty match expression is invalid because the type
· · ·
3This error indicates that an empty match expression is invalid because the type
4it is matching on is non-empty (there exist values of this type). In safe code
5it is impossible to create an instance of an empty type, so empty match
· · ·
6expressions are almost never desired. This error is typically fixed by adding
7one or more cases to the match expression.
8
compiler/rustc_error_codes/src/error_codes/E0004.md MARKDOWN 3 matches view file →
1This error indicates that the compiler cannot guarantee a matching pattern for
2one or more possible inputs to a match expression. Guaranteed matches are
3required in order to assign values to match expressions, or alternatively,
· · ·
14let x = Terminator::HastaLaVistaBaby;
15
16match x { // error: non-exhaustive patterns: `HastaLaVistaBaby` not covered
17 Terminator::TalkToMyHand => {}
18}
· · ·
19```
20
21If you encounter this error you must alter your patterns so that every possible
22value of the input type is matched. For types with a small number of variants
23(like enums) you should probably cover all cases explicitly. Alternatively, the
compiler/rustc_error_codes/src/error_codes/E0005.md MARKDOWN 2 matches view file →
7let x = Some(1);
8let Some(y) = x;
9// error: refutable pattern in local binding: `None` not covered
10```
11
· · ·
12If you encounter this error you probably need to use a `match` or `if let` to
13deal with the possibility of failure. Example:
14
compiler/rustc_error_codes/src/error_codes/E0007.md MARKDOWN 4 matches view file →
1#### Note: this error code is no longer emitted by the compiler.
2
3This error indicates that the bindings in a match arm would require a value to
· · ·
3This error indicates that the bindings in a match arm would require a value to
4be moved into more than one location, thus violating unique ownership. Code
5like the following is invalid as it requires the entire `Option<String>` to be
· · ·
15
16match x {
17 op_string @ Some(s) => {}, // error: use of moved value
18 None => {},
19}
· · ·
20```
21
22See also the error E0303.
23
compiler/rustc_error_codes/src/error_codes/E0009.md MARKDOWN 2 matches view file →
1#### Note: this error code is no longer emitted by the compiler.
2
3In a pattern, all values that don't implement the `Copy` trait have to be bound
· · ·
16let x = Some((X { x: () }, X { x: () }));
17match x {
18 Some((y, ref z)) => {}, // error: cannot bind by-move and by-ref in the
19 // same pattern
20 None => panic!()
compiler/rustc_error_codes/src/error_codes/E0010.md MARKDOWN 1 matches view file →
1#### Note: this error code is no longer emitted by the compiler.
2
3The value of statics and constants must be known at compile time, and they live
compiler/rustc_error_codes/src/error_codes/E0013.md MARKDOWN 1 matches view file →
1#### Note: this error code is no longer emitted by the compiler
2
3Static and const variables can refer to other const variables. But a const
compiler/rustc_error_codes/src/error_codes/E0014.md MARKDOWN 2 matches view file →
1#### Note: this error code is no longer emitted by the compiler.
2
3Constants can only be initialized by a constant value or, in a future
· · ·
4version of Rust, a call to a const function. This error indicates the use
5of a path (like a::b, or x) denoting something other than one of these
6allowed items.
compiler/rustc_error_codes/src/error_codes/E0015.md MARKDOWN 3 matches view file →
8}
9
10// error: cannot call non-const function `create_some` in constants
11const FOO: Option<u8> = create_some();
12```
· · ·
15be marked `const`.
16
17To fix this error, you can declare `create_some` as a constant function:
18
19```
· · ·
23}
24
25const FOO: Option<u8> = create_some(); // no error!
26```
27
compiler/rustc_error_codes/src/error_codes/E0023.md MARKDOWN 1 matches view file →
12
13match x {
14 Fruit::Apple(a) => {}, // error!
15 _ => {}
16}
compiler/rustc_error_codes/src/error_codes/E0025.md MARKDOWN 2 matches view file →
13
14 let Foo { a: x, a: y } = x;
15 // error: field `a` bound multiple times in the pattern
16}
17```
· · ·
18
19Each occurrence of a field name binds the value of that field, so to fix this
20error you will have to remove or alter the duplicate uses of the field name.
21Perhaps you misspelled another field name? Example:
22
compiler/rustc_error_codes/src/error_codes/E0026.md MARKDOWN 1 matches view file →
12
13match thing {
14 Thing { x, z } => {} // error: `Thing::z` field doesn't exist
15}
16```
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.